diff options
| author | stilbruch <stilbruch@protonail.com> | 2022-05-02 18:16:37 -0500 |
|---|---|---|
| committer | stilbruch <stilbruch@protonail.com> | 2022-05-02 18:16:37 -0500 |
| commit | 0bedae79d04f10dc5c662b2218bf8324c04e5192 (patch) | |
| tree | cf966b7d4c9b607955475519c518bece2334dd81 | |
| parent | 1c67242cd8a48c3138e3cec9ddfe8430d51b036b (diff) | |
| parent | b34c9825fad0bc8a5a480dcfabd5a058d2b3222a (diff) | |
| download | Strengthy-0bedae79d04f10dc5c662b2218bf8324c04e5192.tar.xz Strengthy-0bedae79d04f10dc5c662b2218bf8324c04e5192.zip | |
Merge branch 'master' of stilbruch.xyz:strengthy
| -rw-r--r-- | app/templates/base/layout.html | 2 | ||||
| -rw-r--r-- | app/templates/workout/record_select.html | 23 |
2 files changed, 22 insertions, 3 deletions
diff --git a/app/templates/base/layout.html b/app/templates/base/layout.html index 69b470d..a738cec 100644 --- a/app/templates/base/layout.html +++ b/app/templates/base/layout.html @@ -58,7 +58,7 @@ <span class="navbar-item"> <a class="button is-white is-outlined" href="/workout/create"> <span class="icon"> - <i class="fa fa-archive"></i> + <i class="fa fa-plus"></i> </span> <span>Create a Workout</span> </a> diff --git a/app/templates/workout/record_select.html b/app/templates/workout/record_select.html index aeee3e2..8366cf3 100644 --- a/app/templates/workout/record_select.html +++ b/app/templates/workout/record_select.html @@ -1,16 +1,17 @@ {% extends 'base/layout.html' %} {% block content %} -<div class="continer"> +<div class="container"> <div class="columns is-centered"> {% for workout in current_user.workouts %} <div class="column"> <div class="card"> <header class="card-header"> - <p class="card-header-title"> {{ workout.name }}</p> + <p class="card-header-title"> Workout: {{ workout.name }}</p> </header> <div class="card-content"> <div class="content"> + Exercises: {% for exercise in workout.exercises %} <p>{{ exercise.sets }} x {{ exercise.units }} x {{ exercise.name }}</p> {% endfor %} @@ -19,8 +20,26 @@ </div> </div> </div> + {% else %} + <div class="card"> + <div class="card-content"> + <div class="content"> + <p style="text-align: center;">You have no workouts.</p> + <div class="buttons is-centered"> + <a class="button is-primary" href="../workout/create"> + <span class="icon is-small"> + <i class="fa fa-plus"></i> + </span> + <span>Create Workout</span> + </a> + </div> + </div> + </div> + </div> {% endfor %} </div> </div> +</div> +</div> {% endblock %} |
