aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortr4ck3ur <tr4ck3ur@style-python.fr>2015-02-14 12:17:12 +0100
committertr4ck3ur <tr4ck3ur@style-python.fr>2015-02-14 12:17:12 +0100
commit8d728a01fc4e39707ece333481736e0f09e01c41 (patch)
tree4f938f0a63cb23752d6d1bb116128ed468ca376b
parent0f4c8a2994ceaa3072374c938353fde0d5af9118 (diff)
downloadjm2l-8d728a01fc4e39707ece333481736e0f09e01c41.tar.gz
jm2l-8d728a01fc4e39707ece333481736e0f09e01c41.tar.bz2
jm2l-8d728a01fc4e39707ece333481736e0f09e01c41.tar.xz
jm2l-8d728a01fc4e39707ece333481736e0f09e01c41.zip
added New Staff feature
-rw-r--r--jm2l/templates/Staff/pole.mako44
1 files changed, 44 insertions, 0 deletions
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()">
+ <script src="/js/jm2l.js"></script>
+ <script src="/vendor/ckeditor/ckeditor.js"></script>
+ <script src="/vendor/select2/js/select2.js"></script>
+</%def>
+<%def name="cssAddOn()">
+ <link rel="stylesheet" href="/vendor/fileupload/css/jquery.fileupload.css">
+ <link rel="stylesheet" href="/vendor/fileupload/css/jquery.fileupload-ui.css">
+ <link rel="stylesheet" href="/css/jm2l.css" />
+ <link rel="stylesheet" href="/vendor/select2/css/select2.css" type="text/css" media="screen" />
+ <!-- CSS adjustments for browsers with JavaScript disabled -->
+ <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>
+% if 'uid' in form._fields.keys():
+ <h3>Editer un Pôle</h3>
+% else:
+ <h3>Ajouter un Pôle</h3>
+%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 action="/Staff/poles/${form.uid.data}" method="post">
+ ${form.uid()}
+%else:
+ <form action="/Staff/poles" method="post">
+%endif
+ ${helpers.DisplayForm(form, DicForm)}
+<input type="submit" />
+</form>
+% if 'uid' in form._fields.keys():
+ ${helpers.uploader("poles", form.uid.data, u"Attachement" )}
+%endif
+<script>
+ var editor = CKEDITOR.replace( 'description', { autoGrow_onStartup: true, language: 'fr' } );
+</script> \ No newline at end of file