diff options
| author | FivePixels <o5pxels@gmail.com> | 2022-04-06 19:13:02 -0500 |
|---|---|---|
| committer | FivePixels <o5pxels@gmail.com> | 2022-04-06 19:13:02 -0500 |
| commit | b16c2b562dc17748e5ab9423ef0f364662287eab (patch) | |
| tree | db389408203aa6447e02645673bd9d4b4d1b4097 /app/templates/workout | |
| parent | 0ff4b0d4fdbadef3d1dcc5320e28d2026fd68a65 (diff) | |
| download | Strengthy-b16c2b562dc17748e5ab9423ef0f364662287eab.tar.xz Strengthy-b16c2b562dc17748e5ab9423ef0f364662287eab.zip | |
Update homepage welcome div for formatting and color, update create/edit
workout page
Diffstat (limited to 'app/templates/workout')
| -rw-r--r-- | app/templates/workout/create.html | 36 |
1 files changed, 18 insertions, 18 deletions
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> |
