From fe2c058def3a4c430a96a12041aa2cac31e7bef3 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Tue, 3 Aug 2010 13:23:51 -0700 Subject: [PATCH] [#4178] Skinned Contracts#list. --- app/views/contracts/index.html.erb | 75 +++++++++++++++++++----------- 1 file changed, 49 insertions(+), 26 deletions(-) diff --git a/app/views/contracts/index.html.erb b/app/views/contracts/index.html.erb index e5818ba..406e124 100644 --- a/app/views/contracts/index.html.erb +++ b/app/views/contracts/index.html.erb @@ -1,26 +1,49 @@ -<% if collection.empty? %> -

<%= l(:label_no_data) %>

-<% else %> - - - - - <%# TODO: Status %> - <%# TODO: Type %> - - - - - - <% collection.each do |contract| %> - <% content_tag_for(:tr, contract) do %> - - - - - - <% end %> - <% end %> - -
<%= l(:field_id) %><%= l(:field_name) %><%= l(:field_account_executive_short) %><%= l(:field_total_budget) %><%= l(:field_end_date) %>
<%= link_to(h(contract.id), contract_path(@project, contract)) %><%= link_to(h(contract.name), contract_path(@project, contract)) %><%= h(number_to_currency(contract.total_budget)) %><%= h format_date(contract.end_date) %>
-<% end %> +
+ +
+ +
+
+ <%= link_to(l(:text_new_contract), new_contract_path) %> +
+
+ +

Active Contacts

+ +
+ + <% if collection.empty? %> +

<%= l(:label_no_data) %>

+ <% else %> + + + + + <%# TODO: Status %> + <%# TODO: Type %> + + + + + + <% collection.each do |contract| %> + <% content_tag_for(:tr, contract) do %> + + + + + + <% end %> + <% end %> + +
<%= l(:field_id) %><%= l(:field_name) %><%= l(:field_account_executive_short) %><%= l(:field_total_budget) %><%= l(:field_end_date) %>
<%= link_to(h(contract.id), contract_path(@project, contract)) %><%= link_to(h(contract.name), contract_path(@project, contract)) %><%= h(number_to_currency(contract.total_budget)) %><%= h format_date(contract.end_date) %>
+ <% end %> + +
+

Inactive Contracts

+
+ + <%# TODO: split contracts by active and inactive %> +

<%= l(:label_no_data) %>

+ +