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/_contract_statuses.html.erb
2012-01-03 21:11:44 +00:00

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 %>;">&nbsp;&nbsp;&nbsp;&nbsp;</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 %>