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

+ +