git-svn-id: https://192.168.0.254/svn/Rodax.redmine_rodax_crm/trunk@4 ff88604e-da85-c949-a72f-fc3aa3ba3724
28 lines
987 B
Plaintext
28 lines
987 B
Plaintext
<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> |