[#4178] Skinned Contracts#list.
This commit is contained in:
1 parent
ea00b89af5
commit
fe2c058def
1 file changed
+49
-26
@@ -1,26 +1,49 @@
|
|||||||
<% if collection.empty? %>
|
<div id="contract_list">
|
||||||
<p class="nodata"><%= l(:label_no_data) %></p>
|
|
||||||
<% else %>
|
<div class="title-bar">
|
||||||
<table class="list" cellspacing="0" border="0" cellpadding="0" id="contracts">
|
|
||||||
<thead>
|
<div class="contextual">
|
||||||
<th><%= l(:field_id) %></th>
|
<div class="new-issue button-large">
|
||||||
<th><%= l(:field_name) %></th>
|
<%= link_to(l(:text_new_contract), new_contract_path) %>
|
||||||
<%# TODO: Status %>
|
</div>
|
||||||
<%# TODO: Type %>
|
</div>
|
||||||
<th><%= l(:field_account_executive_short) %></th>
|
|
||||||
<th><%= l(:field_total_budget) %></th>
|
<h2>Active Contacts</h2>
|
||||||
<th><%= l(:field_end_date) %></th>
|
|
||||||
</thead>
|
</div>
|
||||||
<tbody>
|
|
||||||
<% collection.each do |contract| %>
|
<% if collection.empty? %>
|
||||||
<% content_tag_for(:tr, contract) do %>
|
<p class="nodata"><%= l(:label_no_data) %></p>
|
||||||
<td class="id"><%= link_to(h(contract.id), contract_path(@project, contract)) %></td>
|
<% else %>
|
||||||
<td class="name"><%= link_to(h(contract.name), contract_path(@project, contract)) %></td>
|
<table class="list" cellspacing="0" border="0" cellpadding="0" id="contracts">
|
||||||
<td class="account-executive"><%= h contract.account_executive.name %></td>
|
<thead>
|
||||||
<td class="total-budget"><%= h(number_to_currency(contract.total_budget)) %></td>
|
<th><%= l(:field_id) %></th>
|
||||||
<td class="end-date"><%= h format_date(contract.end_date) %></td>
|
<th><%= l(:field_name) %></th>
|
||||||
<% end %>
|
<%# TODO: Status %>
|
||||||
<% end %>
|
<%# TODO: Type %>
|
||||||
</tbody>
|
<th><%= l(:field_account_executive_short) %></th>
|
||||||
</table>
|
<th><%= l(:field_total_budget) %></th>
|
||||||
<% end %>
|
<th><%= l(:field_end_date) %></th>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<% collection.each do |contract| %>
|
||||||
|
<% content_tag_for(:tr, contract) do %>
|
||||||
|
<td class="id"><%= link_to(h(contract.id), contract_path(@project, contract)) %></td>
|
||||||
|
<td class="name"><%= link_to(h(contract.name), contract_path(@project, contract)) %></td>
|
||||||
|
<td class="account-executive"><%= h contract.account_executive.name %></td>
|
||||||
|
<td class="total-budget"><%= h(number_to_currency(contract.total_budget)) %></td>
|
||||||
|
<td class="end-date"><%= h format_date(contract.end_date) %></td>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
<div class="title-bar">
|
||||||
|
<h2>Inactive Contracts</h2>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<%# TODO: split contracts by active and inactive %>
|
||||||
|
<p class="nodata"><%= l(:label_no_data) %></p>
|
||||||
|
|
||||||
|
</div>
|
||||||
Reference in new issue
Block a user