|
|
|
@ -20,26 +20,26 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
|
|
|
|
|
|
|
|
<%= render :partial => 'shared/costs_header' %> |
|
|
|
|
|
|
|
|
|
<% html_title "#{l(:label_cost_object_id, id: @cost_object.id)}: #{@cost_object.subject}" %> |
|
|
|
|
<%= toolbar title: l(:label_cost_object_id, id: @cost_object.id) do %> |
|
|
|
|
<% html_title "#{t(:label_cost_object_id, id: @cost_object.id)}: #{@cost_object.subject}" %> |
|
|
|
|
<%= toolbar title: t(:label_cost_object_id, id: @cost_object.id) do %> |
|
|
|
|
<% 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> <%= l(:button_update) %> |
|
|
|
|
<i class="button--icon icon-edit"></i> <%= 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> <%= l(:button_copy) %> |
|
|
|
|
<i class="button--icon icon-copy"></i> <%= 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: l(:text_are_you_sure)}) do %> |
|
|
|
|
<i class="button--icon icon-delete"></i> <%= l(:button_delete) %> |
|
|
|
|
<%= 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) %> |
|
|
|
|
<% end %> |
|
|
|
|
</li> |
|
|
|
|
<% end %> |
|
|
|
@ -49,7 +49,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
|
|
|
<h3><%=h @cost_object.subject %></h3> |
|
|
|
|
<p class="author"> |
|
|
|
|
<%= authoring @cost_object.created_on, @cost_object.author %>. |
|
|
|
|
<%= l(:label_updated_time, distance_of_time_in_words(Time.now, @cost_object.updated_on)) + '.' if @cost_object.created_on != @cost_object.updated_on %> |
|
|
|
|
<%= t(:label_updated_time, distance_of_time_in_words(Time.now, @cost_object.updated_on)) + '.' if @cost_object.created_on != @cost_object.updated_on %> |
|
|
|
|
</p> |
|
|
|
|
|
|
|
|
|
<table class="attributes"> |
|
|
|
@ -81,7 +81,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
|
|
|
|
|
|
|
|
<% if authorize_for('cost_objects', 'edit') %> |
|
|
|
|
<div id="update" style="display:none;"> |
|
|
|
|
<h3><%= l(:button_update) %></h3> |
|
|
|
|
<h3><%= t(:button_update) %></h3> |
|
|
|
|
<%= render :partial => 'edit' %> |
|
|
|
|
</div> |
|
|
|
|
<% end %> |
|
|
|
|