60 lines
2.5 KiB
Plaintext
60 lines
2.5 KiB
Plaintext
<div class="line-content">
|
|
<span class="header-line"><%= f.label :receipt_number, "Receipt Number:" %></span>
|
|
<span class="content-line"><%= f.text_field :receipt_number %></span>
|
|
</div>
|
|
|
|
<div class="line-content">
|
|
<span class="header-line"><%= f.label :amount, "Amount:" %></span>
|
|
<span class="content-line"><%= f.number_field :amount, :min => "0", :max => @purchase.total_amount %></span>
|
|
</div>
|
|
|
|
<% if !@receipt.receipt_file.url.nil? %>
|
|
<div class="line-content">
|
|
<span class="header-line">Receipt File:</span>
|
|
<span class="content-line"><a href="<%= @receipt.receipt_file.url %>">Download File</a></span>
|
|
</div>
|
|
<% end %>
|
|
|
|
<div class="line-content">
|
|
<span class="header-line"><%= f.label :receipt_file, "Receipt File:" %></span>
|
|
<span class="content-line"><%= f.file_field :receipt_file %></span>
|
|
</div>
|
|
|
|
<% if !@receipt.new_record? %>
|
|
<div class="line-content">
|
|
<span class="header-line"><%= f.label :amount_received, "Amount Received:" %></span>
|
|
<span class="content-line"><%= f.number_field :amount_received, :min => "0", :max => @receipt.amount %></span>
|
|
</div>
|
|
<div class="line-content">
|
|
<span class="header-line"><%= f.label :adjustable_amount, "Adjustable Amount:" %></span>
|
|
<span class="content-line"><%= f.number_field :adjustable_amount, :min => "0" %></span>
|
|
</div>
|
|
<div class="line-content">
|
|
<span class="header-line"><%= f.label :adjustable_amount_detail, "Adjustable Amount Detail:" %></span>
|
|
<span class="content-line"><%= f.text_field :adjustable_amount_detail %></span>
|
|
</div>
|
|
<div class="line-content">
|
|
<span class="header-line"><%= f.label :amount_received_on, "Amount Received On:" %></span>
|
|
<span class="content-line"><%= f.datetime_picker :amount_received_on, :no_label => true, :new_record => @receipt.new_record? %></span>
|
|
</div>
|
|
<% if !@receipt.received_receipt_file.url.nil? %>
|
|
<div class="line-content">
|
|
<span class="header-line">Signed Receipt File:</span>
|
|
<span class="content-line"><a href="<%= @receipt.received_receipt_file.url %>">Download File</a></span>
|
|
</div>
|
|
<% end %>
|
|
|
|
<div class="line-content">
|
|
<span class="header-line"><%= f.label :received_receipt_file, "Signed Receipt File:" %></span>
|
|
<span class="content-line"><%= f.file_field :received_receipt_file %></span>
|
|
</div>
|
|
<% end %>
|
|
<% if @receipt.new_record? %>
|
|
<%= f.hidden_field :contract_purchase_id, :value => @purchase.id.to_s %>
|
|
<% end %>
|
|
|
|
<div class="line-content">
|
|
<span class="header-line">
|
|
<%= f.submit "Submit", :class => "btn btn-primary" %>
|
|
</span>
|
|
</div> |