From cbfccec92a07f01b99132414dae5ad95c954709f Mon Sep 17 00:00:00 2001 From: Valerij Maljulin Date: Fri, 3 Nov 2023 15:51:31 +0100 Subject: [PATCH] fixup! Moving js to a separate file, refactoring templates to use a common layout --- waiverdb/templates/new_waiver.html | 2 +- waiverdb/templates/new_waiver.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/waiverdb/templates/new_waiver.html b/waiverdb/templates/new_waiver.html index 0503f120..46cb51a8 100644 --- a/waiverdb/templates/new_waiver.html +++ b/waiverdb/templates/new_waiver.html @@ -18,7 +18,7 @@ Unable to create a waiver:
- New waiver created. + New waiver created. ID:
diff --git a/waiverdb/templates/new_waiver.js b/waiverdb/templates/new_waiver.js index fe23877b..da639edf 100644 --- a/waiverdb/templates/new_waiver.js +++ b/waiverdb/templates/new_waiver.js @@ -20,6 +20,7 @@ $(document).ready(function () { $("#result-text-error").addClass("d-none"); $("#result-text-success").removeClass("d-none"); $("#result-link").attr("href", `${WAIVERS_URL}${data.id}`); + $("#new-waiver-id").text(data.id); $("#waiver-result").removeClass("alert-danger d-none").addClass("alert-success"); }, error: function (jqXHR, textStatus) {