[#4178] Skinned Contracts#list.

This commit is contained in:
Eric Davis committed 2010-08-03 13:23:51 -07:00
1 parent ea00b89af5
commit fe2c058def
1 file changed
+29 -6
+29 -6
View File
@@ -1,7 +1,21 @@
<% if collection.empty? %> <div id="contract_list">
<p class="nodata"><%= l(:label_no_data) %></p>
<% else %> <div class="title-bar">
<table class="list" cellspacing="0" border="0" cellpadding="0" id="contracts">
<div class="contextual">
<div class="new-issue button-large">
<%= link_to(l(:text_new_contract), new_contract_path) %>
</div>
</div>
<h2>Active Contacts</h2>
</div>
<% if collection.empty? %>
<p class="nodata"><%= l(:label_no_data) %></p>
<% else %>
<table class="list" cellspacing="0" border="0" cellpadding="0" id="contracts">
<thead> <thead>
<th><%= l(:field_id) %></th> <th><%= l(:field_id) %></th>
<th><%= l(:field_name) %></th> <th><%= l(:field_name) %></th>
@@ -22,5 +36,14 @@
<% end %> <% end %>
<% end %> <% end %>
</tbody> </tbody>
</table> </table>
<% end %> <% end %>
<div class="title-bar">
<h2>Inactive Contracts</h2>
</div>
<%# TODO: split contracts by active and inactive %>
<p class="nodata"><%= l(:label_no_data) %></p>
</div>