diff --git a/jm2l/__init__.py b/jm2l/__init__.py index a55bdb8..3dfb885 100644 --- a/jm2l/__init__.py +++ b/jm2l/__init__.py @@ -168,6 +168,7 @@ def main(global_config, **settings): # HTML Routes - Logged #config.add_route('profil', 'MesJM2L') config.add_route('jm2l', '/MesJM2L') + config.add_route('drop_sejour', '/DropSejour') config.add_route('miam', '/MonMiam') config.add_route('sejour', '/MonSejour') config.add_route('orga', '/MonOrga') diff --git a/jm2l/static/img/warn.png b/jm2l/static/img/warn.png new file mode 100644 index 0000000..57b503e Binary files /dev/null and b/jm2l/static/img/warn.png differ 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/Profil/Sejour.mako b/jm2l/templates/Profil/Sejour.mako index 18d0d90..67520ed 100644 --- a/jm2l/templates/Profil/Sejour.mako +++ b/jm2l/templates/Profil/Sejour.mako @@ -4,6 +4,21 @@ fieldset:disabled { color:#CCC; } + % if mytrip.Sejour: +
    + Ooops !! J'ai rendez-vous pour un poney-piscine...
    + + J'annule ma venue en ${CurrentYear}. + +
    + % else: + + Attention ! + Vous n'avez pas confirmé votre venue aux JM2L ${CurrentYear} + +

    Complétez et validez vite ce formulaire !

    + % endif +
    Arrivée 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