Missing command icons

This commit is contained in:
Karel Pičman 2019-08-22 15:01:45 +02:00
parent d35102b88c
commit a3d3544191
7 changed files with 15 additions and 9 deletions

View File

@ -27,7 +27,7 @@ def custom_workflows_init
# Administration menu extension # Administration menu extension
Redmine::MenuManager.map :admin_menu do |menu| Redmine::MenuManager.map :admin_menu do |menu|
menu.push :custom_workflows, { controller: 'custom_workflows', action: 'index'}, menu.push :custom_workflows, { controller: 'custom_workflows', action: 'index'},
caption: :label_custom_workflow_plural, html: { class: 'icon icon-workflow workflows'} caption: :label_custom_workflow_plural, html: { class: 'icon icon-workflows workflows'}
end end
end end

View File

@ -42,13 +42,16 @@
<%= reorder_handle(workflow, url: url_for(action: 'reorder', id: workflow) ) %> <%= reorder_handle(workflow, url: url_for(action: 'reorder', id: workflow) ) %>
</td> </td>
<td class="buttons"> <td class="buttons">
<div class="icon"></div>
<% if workflow.active? %> <% if workflow.active? %>
<%= link_to(l(:button_custom_workflow_deactivate), custom_workflow_status_path(workflow, :active => false), :class => 'icon icon-inactive', :method => :post) %> <%= link_to(l(:button_custom_workflow_deactivate), custom_workflow_status_path(workflow, active: false), class: 'icon icon-lock', method: :post) %>
<% else %> <% else %>
<%= link_to(l(:button_custom_workflow_activate), custom_workflow_status_path(workflow, :active => true), :class => 'icon icon-active', :method => :post) %> <%= link_to(l(:button_custom_workflow_activate), custom_workflow_status_path(workflow, active: true), class: 'icon icon-unlock', method: :post) %>
<% end %> <% end %>
<%= link_to(l(:label_custom_workflow_export), export_custom_workflow_path(workflow), :class => 'icon icon-export', :method => :get) %> <br/>
<%= link_to(l(:button_delete), workflow, :class => 'icon icon-del', :data => {:confirm => l(:text_are_you_sure)}, :confirm => l(:text_are_you_sure), :method => :delete) %> <%= link_to(l(:label_custom_workflow_export), export_custom_workflow_path(workflow), class: 'icon icon-export', method: :get) %>
<br/>
<%= link_to(l(:button_delete), workflow, class: 'icon icon-del', data: { confirm: l(:text_are_you_sure) }, confirm: l(:text_are_you_sure), method: :delete) %>
</td> </td>
</tr> </tr>
<% end %> <% end %>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 316 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 265 B

After

Width:  |  Height:  |  Size: 247 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 279 B

After

Width:  |  Height:  |  Size: 259 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 330 B

View File

@ -57,7 +57,10 @@ table.list.custom-workflows tr.disabled {
} }
/* Icons */ /* Icons */
.icon-export { background-image: url(../images/export.png); } .icon-import {
.icon-import { background-image: url(../images/import.png); } background-image: url(../images/export.png);
.icon-active { background-image: url(../images/active.png); } }
.icon-inactive { background-image: url(../images/inactive.png); }
.icon-export {
background-image: url(../images/import.png);
}