This repository has been archived on 2024-12-01. You can view files and clone it, but cannot push or open issues or pull requests.
redmine_rodax_crm/app/views/projects/_contracts_settings.html.erb

28 lines
1.0 KiB
Plaintext
Raw Normal View History

<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" %>