From 650a3879a2e1eb03a77c7fd8a4103dcd8ad1565d Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Mon, 24 Jul 2023 09:45:33 +1000 Subject: [PATCH] Clear form and display temporary notification when adding users/exercises on settings page --- templates/base.html | 71 ++++++++++++++++++++++++++++- templates/partials/people_link.html | 2 +- templates/settings.html | 13 +++++- 3 files changed, 81 insertions(+), 5 deletions(-) diff --git a/templates/base.html b/templates/base.html index adfb430..baf60c9 100644 --- a/templates/base.html +++ b/templates/base.html @@ -102,7 +102,7 @@
+
+ +
+ +
+ +
+ + diff --git a/templates/partials/people_link.html b/templates/partials/people_link.html index d1b326c..c0c69ed 100644 --- a/templates/partials/people_link.html +++ b/templates/partials/people_link.html @@ -1,7 +1,7 @@ {% for p in people %}
  • + class="text-base text-gray-900 font-normal rounded-lg hover:bg-gray-100 flex items-center p-2 group cursor-pointer page-link"> diff --git a/templates/settings.html b/templates/settings.html index a5712fd..3fa5d30 100644 --- a/templates/settings.html +++ b/templates/settings.html @@ -75,7 +75,12 @@
  • -
    +
    + hx-target="#new-exercise" _="on htmx:afterRequest + js + displayNotification('Exercise added') + end + then reset() me">