diff options
| author | stilbruch <stilbruch@protonmail.com> | 2022-04-06 14:17:40 -0500 |
|---|---|---|
| committer | stilbruch <stilbruch@protonmail.com> | 2022-04-06 14:17:40 -0500 |
| commit | ed1823168fb6f3256bcd7397b4d4de462a3f1781 (patch) | |
| tree | efc29ae330c9f16db3d27cae9210b9075276adbb /app/templates/home.html | |
| parent | 45bf2ad8707b67b2f756c80edb877a6bfe3897fb (diff) | |
| download | Strengthy-ed1823168fb6f3256bcd7397b4d4de462a3f1781.tar.xz Strengthy-ed1823168fb6f3256bcd7397b4d4de462a3f1781.zip | |
Exercises are now properly stored in the database
Diffstat (limited to 'app/templates/home.html')
| -rw-r--r-- | app/templates/home.html | 78 |
1 files changed, 25 insertions, 53 deletions
diff --git a/app/templates/home.html b/app/templates/home.html index fb47a68..693e03b 100644 --- a/app/templates/home.html +++ b/app/templates/home.html @@ -10,7 +10,7 @@ Hello, {{ current_user.username }}. </h1> <h2 class="subtitle"> - %subtitle% + Welcome Back </h2> </div> </div> @@ -49,6 +49,30 @@ <div class="card events-card"> <header class="card-header"> <p class="card-header-title"> + My Workouts + </p> + </header> + <div class="card-table"> + <div class="content"> + <table class="table is-fullwidth is-striped"> + <tbody> + {% for workout in current_user.workouts %} + <tr> + <td>{{ workout.name }}</td> + <td>{{ workout.exercises.count() }} exercises</td> + <td class="level-right"><a class="button is-small is-primary" href="#">Edit</a></td> + </tr> + {% endfor %} + </tbody> + </table> + </div> + </div> + </div> + </div> + <div class="column is-6"> + <div class="card events-card"> + <header class="card-header"> + <p class="card-header-title"> Recent Workouts </p> </header> @@ -80,58 +104,6 @@ </footer> </div> </div> - <div class="column is-6"> - <div class="card"> - <header class="card-header"> - <p class="card-header-title"> - Inventory Search - </p> - <a href="#" class="card-header-icon" aria-label="more options"> - <span class="icon"> - <i class="fa fa-angle-down" aria-hidden="true"></i> - </span> - </a> - </header> - <div class="card-content"> - <div class="content"> - <div class="control has-icons-left has-icons-right"> - <input class="input is-large" type="text" placeholder=""> - <span class="icon is-medium is-left"> - <i class="fa fa-search"></i> - </span> - <span class="icon is-medium is-right"> - <i class="fa fa-check"></i> - </span> - </div> - </div> - </div> - </div> - <div class="card"> - <header class="card-header"> - <p class="card-header-title"> - User Search - </p> - <a href="#" class="card-header-icon" aria-label="more options"> - <span class="icon"> - <i class="fa fa-angle-down" aria-hidden="true"></i> - </span> - </a> - </header> - <div class="card-content"> - <div class="content"> - <div class="control has-icons-left has-icons-right"> - <input class="input is-large" type="text" placeholder=""> - <span class="icon is-medium is-left"> - <i class="fa fa-search"></i> - </span> - <span class="icon is-medium is-right"> - <i class="fa fa-check"></i> - </span> - </div> - </div> - </div> - </div> - </div> </div> </div> |
