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