From 84fc5afedb69ac53922d42d46dfebd4aa22c59d8 Mon Sep 17 00:00:00 2001 From: Son NK Date: Sat, 6 Jul 2019 17:05:06 +0200 Subject: [PATCH] prettify client listing page --- app/developer/templates/developer/index.html | 25 +++++++++++++++----- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/app/developer/templates/developer/index.html b/app/developer/templates/developer/index.html index d22d919e..a757d887 100644 --- a/app/developer/templates/developer/index.html +++ b/app/developer/templates/developer/index.html @@ -74,12 +74,12 @@ - + - + -
+ - +
@@ -137,6 +138,18 @@ overlayClickDismiss: false, }); + $(".delete-client").on("click", function (e) { + notie.confirm({ + text: "This operation is not reversible, please confirm", + cancelCallback: () => { + // nothing to do + }, + submitCallback: () => { + $(this).closest("form").submit(); + } + }); + }); + $(".custom-switch-input").change(function (e) { // Only ask for confirmation when publishing, not when un-publishing if (e.target.checked) {