diff options
Diffstat (limited to 'jm2l/templates/Staff')
-rw-r--r-- | jm2l/templates/Staff/list.mako | 2 | ||||
-rw-r--r-- | jm2l/templates/Staff/tasks.mako | 19 |
2 files changed, 18 insertions, 3 deletions
diff --git a/jm2l/templates/Staff/list.mako b/jm2l/templates/Staff/list.mako index 6746bea..712e488 100644 --- a/jm2l/templates/Staff/list.mako +++ b/jm2l/templates/Staff/list.mako @@ -32,7 +32,7 @@ from slugify import slugify <thead> <tr> <th colspan="2" style="text-align:center;"> - <a style="float:right;" class="btn btn-mini btn-info" role="button" href="/Staff/tasks"> + <a style="float:right;" class="btn btn-mini btn-info" role="button" href="${request.route_path('handle_task', sep="", task_id="", _query={"pole_id":Entity.uid})}"> <i class="icon-plus-sign icon-white"></i> Ajouter une tâche </a> Liste des tâches diff --git a/jm2l/templates/Staff/tasks.mako b/jm2l/templates/Staff/tasks.mako index 375d241..30da49d 100644 --- a/jm2l/templates/Staff/tasks.mako +++ b/jm2l/templates/Staff/tasks.mako @@ -5,6 +5,21 @@ <script src="/js/jm2l.js"></script> <script src="/vendor/ckeditor/ckeditor.js"></script> <script src="/vendor/select2/js/select2.js"></script> + + <script src="//cdn.jsdelivr.net/webshim/1.15.7/polyfiller.js"></script> + <script type="text/javascript"> + webshim.setOptions('forms-ext', { + replaceUI: 'auto', + types: 'date', + date: { + startView: 2, + classes: 'hide-spinbtns', + } + }); + + //start polyfilling + webshim.polyfill('forms-ext'); + </script> </%def> <%def name="cssAddOn()"> <link rel="stylesheet" href="/vendor/fileupload/css/jquery.fileupload.css"> @@ -15,7 +30,7 @@ <noscript><link rel="stylesheet" href="/vendor/fileupload/css/jquery.fileupload-noscript.css"></noscript> <noscript><link rel="stylesheet" href="/vendor/fileupload/css/jquery.fileupload-ui-noscript.css"></noscript> </%def> -<a style="float:right;" href="/Staff">Retour à la liste</a> +<a style="float:right;" href="${request.route_path('list_task', _anchor=area)}">Retour à la liste</a> % if 'uid' in form._fields.keys(): <h3>Editer une tâche</h3> % else: @@ -42,4 +57,4 @@ DicForm = { </form> % if 'uid' in form._fields.keys(): ${helpers.uploader("tasks", form.uid.data, u"une pièce jointe" )} -%endif
\ No newline at end of file +%endif |