summaryrefslogtreecommitdiff
path: root/app/templates
diff options
context:
space:
mode:
authorstilbruch <stilbruch@protonmail.com>2022-04-06 14:17:40 -0500
committerstilbruch <stilbruch@protonmail.com>2022-04-06 14:17:40 -0500
commited1823168fb6f3256bcd7397b4d4de462a3f1781 (patch)
treeefc29ae330c9f16db3d27cae9210b9075276adbb /app/templates
parent45bf2ad8707b67b2f756c80edb877a6bfe3897fb (diff)
downloadStrengthy-ed1823168fb6f3256bcd7397b4d4de462a3f1781.tar.xz
Strengthy-ed1823168fb6f3256bcd7397b4d4de462a3f1781.zip
Exercises are now properly stored in the database
Diffstat (limited to 'app/templates')
-rw-r--r--app/templates/home.html78
-rw-r--r--app/templates/workout/manage.html6
2 files changed, 31 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>
diff --git a/app/templates/workout/manage.html b/app/templates/workout/manage.html
new file mode 100644
index 0000000..95f03f5
--- /dev/null
+++ b/app/templates/workout/manage.html
@@ -0,0 +1,6 @@
+{% extends 'base/layout.html' %}
+
+{% block content %}
+<div class="container">
+</div>
+{% endblock %}