amended user info view to accordion

This commit is contained in:
Finn 2018-03-15 13:28:31 +00:00
parent 3ceb926cd4
commit cea9e62073
2 changed files with 138 additions and 105 deletions

View file

@ -2,6 +2,11 @@
# Next Release # Next Release
# v0.10.5
* **Admin Feature** Removed generic Transaction List
* **Admin Feature** Amended user view to have accordion
# v0.10.4 # v0.10.4
* Added API for category budget * Added API for category budget

View file

@ -11,7 +11,18 @@
<strong>Success!</strong> <%= $success %> <strong>Success!</strong> <%= $success %>
</div> </div>
% } % }
<form action="<%= url_for %>" method="post" autocomplete="off"> <div id="accordion">
<div class="card">
<div class="card-header" id="headingOne">
<h5 class="mb-0">
<button class="btn btn-link collapsed" data-toggle="collapse" data-target="#collapseOne" aria-expanded="false" aria-controls="collapseOne">
Edit User Details
</button>
</h5>
</div>
<div id="collapseOne" class="collapse" aria-labelledby="headingOne" data-parent="#accordion">
<div class="card-body">
<form action="<%= url_for %>" method="post" autocomplete="off">
<div class="card mb-3"> <div class="card mb-3">
<h3 class="card-header"> <h3 class="card-header">
User Details User Details
@ -99,8 +110,21 @@
<div class="form-group"> <div class="form-group">
<button class="btn btn-primary form-control" type="submit">Edit Account</button> <button class="btn btn-primary form-control" type="submit">Edit Account</button>
</div> </div>
</form> </form>
<div class="card mb-3"> </div>
</div>
</div>
<div class="card">
<div class="card-header" id="headingTwo">
<h5 class="mb-0">
<button class="btn btn-link collapsed" data-toggle="collapse" data-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
View User Transaction List
</button>
</h5>
</div>
<div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordion">
<div class="card-body">
<div class="card mb-3">
<h3 class="card-header"> <h3 class="card-header">
Transactions Transactions
</h3> </h3>
@ -120,4 +144,8 @@
%= bootstrap_pagination( $c->param('page') || 1, $transactions->pager->last_page, { class => 'justify-content-center' } ); %= bootstrap_pagination( $c->param('page') || 1, $transactions->pager->last_page, { class => 'justify-content-center' } );
</div> </div>
</div> </div>
</div>
</div>
</div>
</div>
</div> </div>