-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bcbad93
commit e045b4f
Showing
7 changed files
with
95 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<section class="transaction_header"> | ||
<div class="container t-d"> | ||
<div class="button"> | ||
<%= link_to root_path do %> | ||
<i class="fa fa-bars" aria-hidden="true"></i> | ||
<% end %> | ||
</div> | ||
<div class="title"> | ||
Extra transactions | ||
</div> | ||
|
||
<div class="search"> | ||
<i class="fa fa-search" aria-hidden="true"></i> | ||
</div> | ||
</div> | ||
|
||
<h3 class ="text-center">most recent</h3> | ||
|
||
</section> | ||
|
||
<section class="transaction_body"> | ||
<div class="total_amount_sec"> | ||
<div class="amount_title"> | ||
total amount | ||
</div> | ||
|
||
<div class="actual_total_amount"> | ||
$ <%= @external_total %> | ||
</div> | ||
</div> | ||
<div class="container t-c"> | ||
|
||
<% @external_user_transactions.each do |t| %> | ||
|
||
<div class="card mb-3"> | ||
<div class="row no-gutters"> | ||
<div class="col-md-4 grp-icn"> | ||
|
||
<i class="fa fa-file-o" aria-hidden="true"></i> | ||
|
||
</div> | ||
<div class="col-md-8"> | ||
<div class="card-body"> | ||
<h5 class="card-title trns"> <%= t.name %> </h5> | ||
<p class="card-text style-up"> <span>$</span> <%= t.amount %></p> | ||
<p class="card-text"><small class="text-muted"><%= t.created_at %></small></p> | ||
|
||
<%= link_to "edit", edit_transaction_path(t), :class => "btn btn-primary edit_btn" %> | ||
|
||
<%= link_to "delete", transaction_path(t), :class => "btn btn-danger delete_grp_btn", data: {confirm: "Are you sure?"}, :method => :delete %> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<% end %> | ||
</div> | ||
|
||
<br> | ||
|
||
|
||
<br> | ||
<%= link_to "Add new", new_transaction_path , :class => "btn btn-success new_trans" %> | ||
</section> | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters