From 8d728a01fc4e39707ece333481736e0f09e01c41 Mon Sep 17 00:00:00 2001 From: tr4ck3ur Date: Sat, 14 Feb 2015 12:17:12 +0100 Subject: added New Staff feature --- jm2l/templates/Staff/pole.mako | 44 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 jm2l/templates/Staff/pole.mako diff --git a/jm2l/templates/Staff/pole.mako b/jm2l/templates/Staff/pole.mako new file mode 100644 index 0000000..c8cfb1a --- /dev/null +++ b/jm2l/templates/Staff/pole.mako @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +<%inherit file="jm2l:templates/layout.mako"/> +<%namespace name="helpers" file="jm2l:templates/helpers.mako"/> +<%def name="jsAddOn()"> + + + + +<%def name="cssAddOn()"> + + + + + + + + +% if 'uid' in form._fields.keys(): +

Editer un Pôle

+% else: +

Ajouter un Pôle

+%endif +<% +DicForm = { + 'name': {'PlaceHolder':u"Nom du Pôle", "FieldStyle":"width:90%;" }, + 'description': {'PlaceHolder':u"Description", "FieldStyle":"width:95%;min-height:150px;", "ckeditor":"1" }, + } +%> + +% if 'uid' in form._fields.keys(): +
+ ${form.uid()} +%else: + +%endif + ${helpers.DisplayForm(form, DicForm)} + +
+% if 'uid' in form._fields.keys(): + ${helpers.uploader("poles", form.uid.data, u"Attachement" )} +%endif + \ No newline at end of file -- cgit v1.2.3-70-g09d2