summaryrefslogtreecommitdiff
path: root/app/templates
diff options
context:
space:
mode:
authorFivePixels <o5pxels@gmail.com>2022-04-06 19:13:02 -0500
committerFivePixels <o5pxels@gmail.com>2022-04-06 19:13:02 -0500
commitb16c2b562dc17748e5ab9423ef0f364662287eab (patch)
treedb389408203aa6447e02645673bd9d4b4d1b4097 /app/templates
parent0ff4b0d4fdbadef3d1dcc5320e28d2026fd68a65 (diff)
downloadStrengthy-b16c2b562dc17748e5ab9423ef0f364662287eab.tar.xz
Strengthy-b16c2b562dc17748e5ab9423ef0f364662287eab.zip
Update homepage welcome div for formatting and color, update create/edit
workout page
Diffstat (limited to 'app/templates')
-rw-r--r--app/templates/home.html4
-rw-r--r--app/templates/workout/create.html36
2 files changed, 20 insertions, 20 deletions
diff --git a/app/templates/home.html b/app/templates/home.html
index d90ef6a..9f8dfe9 100644
--- a/app/templates/home.html
+++ b/app/templates/home.html
@@ -7,10 +7,10 @@
<div class="hero-body">
<div class="container">
<h1 class="title">
- Hello, {{ current_user.username }}.
+ Hello {{ current_user.username }}
</h1>
<h2 class="subtitle">
- Welcome Back
+ Welcome to your home.
</h2>
</div>
</div>
diff --git a/app/templates/workout/create.html b/app/templates/workout/create.html
index 72a056f..7446ec6 100644
--- a/app/templates/workout/create.html
+++ b/app/templates/workout/create.html
@@ -50,22 +50,20 @@
</div>
{% endfor %}
</div>
-<div class="field is-grouped is-grouped-right">
- <p class="buttons">
- <p id="add" class="button is-primary">
- <span class="icon is-small">
- <i class="fa fa-plus"></i>
- </span>
- <span>Add Exercise</span>
- </p>
-
- <button class="button is-success ">
- <span class="icon is-small">
- <i class="fa fa-check"></i>
- </span>
- <span>Create Workout</span>
- </button>
- </p>
+<div class="field is-horizontal is-grouped is-grouped-right">
+ <p id="add" class="button is-primary">
+ <span class="icon is-small">
+ <i class="fa fa-plus"></i>
+ </span>
+ </p>
+</div>
+<div class="field is-horizontal is-grouped is-grouped-right">
+ <button class="button is-success ">
+ <span class="icon is-small">
+ <i class="fa fa-check"></i>
+ </span>
+ <span>Create Workout</span>
+ </button>
</div>
<script>
@@ -92,8 +90,10 @@
}
function handleDel(elem) {
- // TODO: Make sure this isn't the last row
- elem.parentNode.parentNode.remove();
+ if (elem.parentNode.parentNode.parentNode.children.length > 1) {
+ console.log(elem.parentNode.parentNode.parentNode);
+ elem.parentNode.parentNode.remove();
+ }
}
document.getElementById("add").onclick = handleAdd;
</script>