28 lines
1.0 KiB
Plaintext
28 lines
1.0 KiB
Plaintext
|
|
<h3><%= l(:label_contract_category_plural) %></h3>
|
||
|
|
|
||
|
|
<% if @project.contract_categories.any? %>
|
||
|
|
<table class="list">
|
||
|
|
<thead><tr>
|
||
|
|
<th><%= l(:field_name) %></th>
|
||
|
|
<th></th>
|
||
|
|
</tr></thead>
|
||
|
|
<tbody>
|
||
|
|
<% for category in @project.contract_categories %>
|
||
|
|
<% unless category.new_record? %>
|
||
|
|
<tr class="<%= cycle 'odd', 'even' %>">
|
||
|
|
<td><%= link_to_if_authorized h(category.name), { :controller => 'contract_categories', :action => 'edit', :id => category } %></td>
|
||
|
|
<td class="buttons">
|
||
|
|
<%= link_to_if_authorized l(:button_delete), {:controller => 'contract_categories', :action => 'destroy', :id => category}, :method => :post, :confirm => l(:text_are_you_sure), :class => 'icon icon-del' %>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<% end %>
|
||
|
|
<% end %>
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
<% else %>
|
||
|
|
<p class="nodata"><%= l(:label_no_data) %></p>
|
||
|
|
<% end %>
|
||
|
|
|
||
|
|
<p><%= link_to_if_authorized l(:label_contract_category_new), :controller => 'contract_categories', :action => 'new', :project_id => @project %></p>
|
||
|
|
|
||
|
|
<%= render :partial => "projects/contract_statuses" %>
|