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/contracts/_related_contracts.html.erb

28 lines
987 B
Plaintext
Raw Normal View History

<div id="contracts">
<div class="contextual">
<%= link_to_if_authorized l(:label_contract_new), {:controller => 'contracts', :action => 'new', :project_id => @project, :contact_id => @contact} %>
</div>
<h3><%= "#{l(:label_contract_plural)}" %> <%= " - #{h number_to_currency(related_contracts.sum{|d| d.price || 0})}" if false %></h3>
<% if related_contracts.any? %>
<table class="related_contracts">
<% related_contracts.each do |contract| %>
<tr>
<td class="name" style="vertical-align: top;">
<h4>
<%= link_to contract.name, {:controller => 'contracts', :action => 'show', :id => contract.id } %>
</h4>
<!-- %= contract_price(contract) % -->
<% if contract.status %>
<span class="contract-status" style = <%= "background-color:#{contract.status.color_name};color:white;" %> >
<%= h contract.status %>
</span>
<% end %>
</td>
</tr>
<% end %>
</table>
<% end %>
</div>