From 084ac8d13efc26fc7894425bb07225eddcfc4ee3 Mon Sep 17 00:00:00 2001 From: tr4ck3ur Date: Sun, 24 Sep 2017 22:25:58 +0200 Subject: [PATCH] Add javascript confirmation before deletion --- jm2l/templates/Logistique/Tables.mako | 4 ++-- jm2l/templates/Profil/Profil.mako | 8 ++++---- jm2l/templates/Salles/salle.mako | 2 +- jm2l/templates/Staff/pole.mako | 2 +- jm2l/templates/Staff/tasks.mako | 2 +- jm2l/templates/edit_event.mako | 6 +++--- jm2l/templates/edit_tiers.mako | 2 +- jm2l/templates/layout.mako | 3 +++ jm2l/templates/view_tiers.mako | 2 +- 9 files changed, 17 insertions(+), 14 deletions(-) diff --git a/jm2l/templates/Logistique/Tables.mako b/jm2l/templates/Logistique/Tables.mako index dae749e..2efb9f8 100644 --- a/jm2l/templates/Logistique/Tables.mako +++ b/jm2l/templates/Logistique/Tables.mako @@ -66,7 +66,7 @@ elif Type=='M': % elif getattr(item, Me)==request.user.uid and item.exch_state==CurKind: Je ${What}
@@ -79,7 +79,7 @@ elif Type=='M':
  • Accepter
  • Refuser
  • -
  • Supprimer
  • +
  • Supprimer
  • % elif getattr(item, Me)==request.user.uid: Je ${What}
    diff --git a/jm2l/templates/Profil/Profil.mako b/jm2l/templates/Profil/Profil.mako index ace6ab1..754ab08 100644 --- a/jm2l/templates/Profil/Profil.mako +++ b/jm2l/templates/Profil/Profil.mako @@ -128,9 +128,9 @@ ${helpers.DisplayRespForm(profil_form, DicFormB)} value="" /> - + Suppr. - + % for num, dicdata in enumerate(profil_form._fields.get("tiersship").data): @@ -158,9 +158,9 @@ ${helpers.DisplayRespForm(profil_form, DicFormB)} value="${dicdata.get('role')}" /> - + Suppr. - + % endfor diff --git a/jm2l/templates/Salles/salle.mako b/jm2l/templates/Salles/salle.mako index 55679b5..cb53667 100644 --- a/jm2l/templates/Salles/salle.mako +++ b/jm2l/templates/Salles/salle.mako @@ -18,7 +18,7 @@ Retour à la liste % if 'salle_id' in form._fields.keys(): - + Supprimer cette salle %endif diff --git a/jm2l/templates/Staff/pole.mako b/jm2l/templates/Staff/pole.mako index eef53c6..6ed365d 100644 --- a/jm2l/templates/Staff/pole.mako +++ b/jm2l/templates/Staff/pole.mako @@ -23,7 +23,7 @@ Retour à la liste % if 'uid' in form._fields.keys(): - + Supprimer ce pôle

    Editer un Pôle

    diff --git a/jm2l/templates/Staff/tasks.mako b/jm2l/templates/Staff/tasks.mako index 696962d..0f89e26 100644 --- a/jm2l/templates/Staff/tasks.mako +++ b/jm2l/templates/Staff/tasks.mako @@ -33,7 +33,7 @@ Retour à la liste % if 'uid' in form._fields.keys(): - + Supprimer cette tâche %endif diff --git a/jm2l/templates/edit_event.mako b/jm2l/templates/edit_event.mako index 2e7d627..765612d 100644 --- a/jm2l/templates/edit_event.mako +++ b/jm2l/templates/edit_event.mako @@ -24,7 +24,7 @@ ${helpers.show_salles( Salles, form.salle_uid.data or form.salle_uid.choices and form.salle_uid.choices[0][0] )} % if event.for_year==CurrentYear and request.user and (request.user.Staff or request.user in event.intervenants): - + Supprimer %endif @@ -110,7 +110,7 @@ DicForm = { % endif <%def name="callback_Del_Summary(Entity)"> \ - + @@ -170,7 +170,7 @@ DicForm = { (${iterv.pseudo}) %endif % if iterv!=request.user: - + %endif diff --git a/jm2l/templates/edit_tiers.mako b/jm2l/templates/edit_tiers.mako index 481faf3..989179c 100644 --- a/jm2l/templates/edit_tiers.mako +++ b/jm2l/templates/edit_tiers.mako @@ -13,7 +13,7 @@
    % if 'uid' in form._fields.keys(): - + Supprimer cette entitée %endif diff --git a/jm2l/templates/layout.mako b/jm2l/templates/layout.mako index 0966815..f2005cb 100644 --- a/jm2l/templates/layout.mako +++ b/jm2l/templates/layout.mako @@ -214,6 +214,9 @@ ${helpers.uploader_js()} ${self.jsAddOn()} ## Then Handle Javascript