<commit_before><% provide( :page_header, "Rental ##{@rental.id} --- #{@rental.dates}" ) if params[:action] = 'invoice' %>
<br><br>
<div class="col-xs-12">
  <div class="col-xs-offset-2 col-xs-6">
    <div class="panel panel-primary">
      <div class="panel-heading">
        Rental Information
      </div>
      <div class="panel-body no-gutter" style="max-height: 10;overflow-y: scroll;">
        <p>Car Type: <%= @rental.item_type.name %></p>
        <p>Period:   <%= @rental.times%></p>
        <p>Status:   <%= @rental.rental_status %></p>
      </div>
    </div>
  </div>
</div>

<div class="container">
  <h2>Payment Summary</h2>
  <table class="table table-sm">
    <thead>
      <tr>
        <th>Create Date</th>
        <th>Transaction Type</th>
        <th>Transaction Amount</th>
        <th>Transaction Adjustment</th>
      </tr>
    </thead>
    <tbody>
      <% @financial_transactions.each do |ft|%>
        <tr>
          <td><%= ft.created_at %></td>
          <td><%= ft.transactable_type %></td>
          <td><%= number_to_currency (ft.amount || 0) %></td>
          <td><%= number_to_currency (ft.adjustment || 0) %></td>
        </tr>
      <% end %>
    </tbody>
  </table>
</div>

<div class="row">
  <div class="col-xs-12">
    <div class="text-right">
      <h2><label>Total Amount:</label>
      <%= number_to_currency @rental.sum_amount %></h2>
    </div>
  </div>
</div>
<%= link_to('Print Invoice', @rental, :onclick => 'window.print();return false;', class: "btn btn-primary") if params[:action] = 'invoice' %><commit_msg>consistant button placement<commit_after><% provide( :page_header, "Rental ##{@rental.id} --- #{@rental.dates}" ) if params[:action] = 'invoice' %>
<br><br>
<div class="col-xs-12">
  <div class="col-xs-offset-2 col-xs-6">
    <div class="panel panel-primary">
      <div class="panel-heading">
        Rental Information
      </div>
      <div class="panel-body no-gutter" style="max-height: 10;overflow-y: scroll;">
        <p>Car Type: <%= @rental.item_type.name %></p>
        <p>Period:   <%= @rental.times%></p>
        <p>Status:   <%= @rental.rental_status %></p>
      </div>
    </div>
  </div>
</div>

<div class="container">
  <h2>Payment Summary</h2>
  <table class="table table-sm">
    <thead>
      <tr>
        <th>Create Date</th>
        <th>Transaction Type</th>
        <th>Transaction Amount</th>
        <th>Transaction Adjustment</th>
      </tr>
    </thead>
    <tbody>
      <% @financial_transactions.each do |ft|%>
        <tr>
          <td><%= ft.created_at %></td>
          <td><%= ft.transactable_type %></td>
          <td><%= number_to_currency (ft.amount || 0) %></td>
          <td><%= number_to_currency (ft.adjustment || 0) %></td>
        </tr>
      <% end %>
    </tbody>
  </table>
</div>

<div class="row">
  <div class="col-xs-12">
    <div class="text-right">
      <h2><label>Total Amount:</label>
      <%= number_to_currency @rental.sum_amount %></h2>
    </div>
  </div>
</div>

<div class="form-group col-xs-12">
  <div class="col-xs-offset-2 col-xs-10">
    <%= link_to('Print Invoice', @rental, :onclick => 'window.print();return false;', class: "btn btn-primary") if params[:action] = 'invoice' %>
  </div>
</div>
{'fraction_non_alphanumeric': 0.21898263027295287, 'fraction_numerical': 0.010235732009925558, 'mean_word_length': 2.6815068493150687, 'pattern_counts': {'":': 0, '<': 147, '<?xml version=': 0, '>': 149, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5099182', 'n_tokens_mistral': 1241, 'n_tokens_neox': 1187, 'n_words': 236}