Skip to content

Commit

Permalink
changed homepage layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Deli authored and Dennis Deli committed Nov 14, 2024
1 parent c9aabf1 commit 78ba1d6
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions app/views/home/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -30,32 +30,32 @@

<% if @processing_fees.count > 0 %>
<hr class="mt-5"/>
<h5 class="mt-5">Processing Fees</h5>
<% @processing_fees.each do |fee| %>
<div class="row mb-4">
<div class="col-12 col-md-2 text-center pb-2 ">
<span class="text-muted text-sm">Fee Date</span><br/>
<span class="text-monospace text-sm text-muted"><%= format_date fee.creation_time %></span>
<div class="badge badge-secondary badge-pill d-block"><%= fee.fee_description %></div>
PROCESSING
<div class="row mb-2">
<div class="col-6 pb-2">
<div class="col-12 pb-2">
<span class="h6"><%= fee.fee_description %></span><br/>
<span class="h6"><%= fee.item_title %></span>
</div>
</div>
<div class="col-12 col-md-6 pb-2">
<span class="text-muted text-sm">Item</span><br/>
<span class="h6 font-weight-light"><%= fee.item_title %></span>
</div>
<div class="col-6 col-md-2 text-center">
<span class="text-muted text-sm">Balance</span><br/>
<span class="h4"><%= number_to_currency fee.balance %></span>
</div>

<div class="col-6 col-md-2 text-center">
<span class="text-muted text-sm">Owner</span><br/>
<%= fee.owner_description %>
<div class="col-6 pb-2">
<span class="text-muted text-sm">Debit</span>
<span class="text-sm"><%= number_to_currency fee.balance %></span><br/>
<span class="text-muted text-sm">Fine date:</span>
<span class="text-monospace text-sm"><%= format_date fee.creation_time %></span><br/>
<span class="text-muted text-sm">Fine Type: </span>
<span class="text-sm"><%= fee.fee_status %></span><br/>
<span class="text-muted text-sm">Fine Main Location: </span>
<span class="text-sm"><%= fee.owner_description %></span><br/>
<span class="text-muted text-sm">Fine ID:</span>
<span class="text-sm"><%= fee.fee_id %></span><br/>
</div>
</div>
<hr class="mt-2"/>
<% end %>
<% end %>


<% if Rails.env.development? %>
<p class="mt-5">
<%= link_to "Reload Fees", load_alma_fees_path, data: { disable_with: "Loading Fees, Please wait..." }%>
Expand Down

0 comments on commit 78ba1d6

Please sign in to comment.