git-svn-id: https://192.168.0.254/svn/Rodax.redmine_rodax_crm/trunk@4 ff88604e-da85-c949-a72f-fc3aa3ba3724
28 lines
1.2 KiB
Plaintext
28 lines
1.2 KiB
Plaintext
<h3><%= l(:label_contract_status_plural) %></h3>
|
|
|
|
<% if ContractStatus.all.any? %>
|
|
<% form_tag({:controller => "contract_statuses", :action => "assing_to_project", :project_id => @project}, :method => :put, :class => "tabular") do %>
|
|
<table class="list">
|
|
<thead><tr>
|
|
<th><%= l(:field_name) %></th>
|
|
<th><%=l(:field_is_default)%></th>
|
|
<th><%=l(:field_contract_status_is_closed)%></th>
|
|
<th style="width:15%;"><%= l(:field_active) %></th>
|
|
</tr></thead>
|
|
<tbody>
|
|
<% ContractStatus.all.each do |status| %>
|
|
|
|
<tr class="<%= cycle 'odd', 'even' %>">
|
|
<td><span class="color" style="border: 1px solid #D7D7D7;background-color: <%= status.color_name %>;"> </span> <%= h(status.name) %></td>
|
|
<td align="center" style="width:15%;"><%= checked_image status.is_default? %></td>
|
|
<td align="center" style="width:15%;"><%= checked_image status.is_closed? %></td>
|
|
<td align="center" style="width:15%;">
|
|
<%= check_box_tag "contract_statuses[]", status.id , @project.contract_statuses.include?(status) %>
|
|
</td>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
<%= submit_tag l(:button_save) %>
|
|
<% end %>
|
|
<% end %> |