From d949363456687fa4cbb21a8d4413e71c52b34569 Mon Sep 17 00:00:00 2001 From: tr4ck3ur Date: Sun, 12 Apr 2015 12:18:23 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20typo=20on=20entit=C3=A9=20Added=20some=20?= =?UTF-8?q?video=20on=20Home=20page=20for=202010=20and=202011=20Added=20Ca?= =?UTF-8?q?lendar=20Mime-Type=20for=20ICS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jm2l/templates/Profil/Profil.mako | 2 +- jm2l/templates/edit_event.mako | 4 +- jm2l/templates/list_tiers.mako | 2 +- jm2l/views.py | 64 ++++++++++++++++++++++++++++--- 4 files changed, 63 insertions(+), 9 deletions(-) diff --git a/jm2l/templates/Profil/Profil.mako b/jm2l/templates/Profil/Profil.mako index 074b6bd..e342add 100644 --- a/jm2l/templates/Profil/Profil.mako +++ b/jm2l/templates/Profil/Profil.mako @@ -77,7 +77,7 @@ ${helpers.DisplayRespForm(profil_form, DicFormB)} Année - Entitée + Entité Rôle Action diff --git a/jm2l/templates/edit_event.mako b/jm2l/templates/edit_event.mako index 8c29898..ef5d1d0 100644 --- a/jm2l/templates/edit_event.mako +++ b/jm2l/templates/edit_event.mako @@ -116,7 +116,7 @@ DicForm = { class="form-control select2-offscreen" tabindex="-1"> NB : Notez que les entités séléctionnées apparaissent dans les exposants. @@ -162,7 +162,7 @@ DicForm = { jQuery(function() { $("#tiers").select2( { - placeholder: 'Entrez ici votre entitée', + placeholder: 'Entrez ici votre entité', minimumInputLength: 2, allowClear: true, ajax: { quietMillis: 250, url: "/json-tiers", dataType: 'json', diff --git a/jm2l/templates/list_tiers.mako b/jm2l/templates/list_tiers.mako index b11c81b..b8c3374 100644 --- a/jm2l/templates/list_tiers.mako +++ b/jm2l/templates/list_tiers.mako @@ -5,7 +5,7 @@ -Ajouter une entitée - +Ajouter une entité - Editer les catégories
diff --git a/jm2l/views.py b/jm2l/views.py index 9c571f2..69b2c37 100644 --- a/jm2l/views.py +++ b/jm2l/views.py @@ -36,6 +36,14 @@ def remove_accents(input_str): only_ascii = nkfd_form.encode('ASCII', 'ignore') return only_ascii +def embeed_video(mime_type, link): + Container = "