Open-Source-Access-Control-.../app/views/contracts/show.html.erb

35 lines
1010 B
Plaintext
Raw Normal View History

<div class="row">
<h1 class="col-md-8">
Contract
<%= link_to 'Back', contracts_path, :class => "btn btn-default" %>
2014-03-03 04:48:49 +00:00
<%= link_to 'Edit', edit_contract_path(@contract), :class => "btn btn-primary" %>
<%= link_to 'Delete', contract_path(@contract), {:confirm => 'Are you sure you want to delete this forever?', :method => :delete, :class => "btn btn-danger"} if can? :destroy, @contract %>
</h1>
</div>
<h2>
2014-03-03 02:41:57 +00:00
<%= @contract.first_name %>
<%= @contract.last_name %>
2014-03-03 04:48:49 +00:00
<%= "and #{@contract.cosigner}" unless @contract.cosigner.blank? %>
<%= link_to "(#{@contract.user.name})", @contract.user if @contract.user %>
<small>
signed
<%= @contract.signed_at.to_date.to_s(:long) %>
</small>
</h2>
2014-03-03 04:48:49 +00:00
<% if @contract.document.blank? %>
No document uploaded
<% else %>
<p><%= link_to "Download Contract", @contract.document.url %>
<div class="col-xs-12">
<iframe src="<%= @contract.document.url %>" width="100%" height="600"></iframe>
</div>
</p>
2014-03-03 04:48:49 +00:00
<% end %>
<br />