Initial commit

This commit is contained in:
2011-09-28 03:37:39 -07:00
commit b1fbb339c2
373 changed files with 52305 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<h1>Editing signer</h1>
<% form_for(@signer) do |f| %>
<%= f.error_messages %>
<p>
<%= f.label :first_name %><br />
<%= f.text_field :first_name %>
</p>
<p>
<%= f.label :last_name %><br />
<%= f.text_field :last_name %>
</p>
<p>
<%= f.label :cosigner %><br />
<%= f.text_field :cosigner %>
</p>
<p>
<%= f.submit 'Update' %>
</p>
<% end %>
<%= link_to 'Show', @signer %> |
<%= link_to 'Back', signers_path %>

View File

@@ -0,0 +1,24 @@
<h1>Listing signers</h1>
<table>
<tr>
<th>First name</th>
<th>Last name</th>
<th>Cosigner</th>
</tr>
<% @signers.each do |signer| %>
<tr>
<td><%=h signer.first_name %></td>
<td><%=h signer.last_name %></td>
<td><%=h signer.cosigner %></td>
<td><%= link_to 'Show', signer %></td>
<td><%= link_to 'Edit', edit_signer_path(signer) %></td>
<td><%= link_to 'Destroy', signer, :confirm => 'Are you sure?', :method => :delete %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New signer', new_signer_path %>

View File

@@ -0,0 +1,23 @@
<h1>New signer</h1>
<% form_for(@signer) do |f| %>
<%= f.error_messages %>
<p>
<%= f.label :first_name %><br />
<%= f.text_field :first_name %>
</p>
<p>
<%= f.label :last_name %><br />
<%= f.text_field :last_name %>
</p>
<p>
<%= f.label :cosigner %><br />
<%= f.text_field :cosigner %>
</p>
<p>
<%= f.submit 'Create' %>
</p>
<% end %>
<%= link_to 'Back', signers_path %>

View File

@@ -0,0 +1,25 @@
<p>
<b>First name:</b>
<%=h @signer.first_name %>
</p>
<p>
<b>Last name:</b>
<%=h @signer.last_name %>
</p>
<p>
<b>Cosigner:</b>
<%=h @signer.cosigner %>
</p>
<b>Contracts:</b>
<ul>
<% @signer.contracts.each do |c| %>
<li><%= link_to c.name, contract_path(c) %> (<%= c.datesigned %>)</li>
<% end %>
</ul>
<%= link_to 'Edit', edit_signer_path(@signer) %> |
<%= link_to 'Back', signers_path %>