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