|
|
|
@ -25,21 +25,21 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
|
|
|
<% if authorize_for(:cost_objects, :edit) %> |
|
|
|
|
<li class="toolbar-item"> |
|
|
|
|
<%= link_to({ controller: 'cost_objects', action: 'edit', id: @cost_object }, class: 'button', accesskey: accesskey(:edit)) do %> |
|
|
|
|
<i class="button--icon icon-edit"></i> <%= t(:button_update) %> |
|
|
|
|
<%= op_icon('button--icon icon-edit') %> <%= t(:button_update) %> |
|
|
|
|
<% end %> |
|
|
|
|
</li> |
|
|
|
|
<% end %> |
|
|
|
|
<% if authorize_for(:cost_objects, :copy) %> |
|
|
|
|
<li class="toolbar-item"> |
|
|
|
|
<%= link_to({ controller: 'cost_objects', action: 'copy', id: @cost_object }, class: 'button') do %> |
|
|
|
|
<i class="button--icon icon-copy"></i> <%= t(:button_copy) %> |
|
|
|
|
<%= op_icon('button--icon icon-copy') %> <%= t(:button_copy) %> |
|
|
|
|
<% end %> |
|
|
|
|
</li> |
|
|
|
|
<% end %> |
|
|
|
|
<% if authorize_for(:cost_objects, :copy) %> |
|
|
|
|
<li class="toolbar-item"> |
|
|
|
|
<%= link_to({ controller: 'cost_objects', action: 'destroy', id: @cost_object }, class: 'button', method: :delete, data: { confirm: t(:text_are_you_sure)}) do %> |
|
|
|
|
<i class="button--icon icon-delete"></i> <%= t(:button_delete) %> |
|
|
|
|
<%= op_icon('button--icon icon-delete') %> <%= t(:button_delete) %> |
|
|
|
|
<% end %> |
|
|
|
|
</li> |
|
|
|
|
<% end %> |
|
|
|
|