Le repo des sources pour le site web des JM2L
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

64 lines
2.2 KiB

  1. # -*- coding: utf-8 -*-
  2. <%inherit file="jm2l:templates/layout.mako"/>
  3. <%namespace name="helpers" file="jm2l:templates/helpers.mako"/>
  4. <%def name="jsAddOn()">
  5. <script src="/js/jm2l.js"></script>
  6. <script src="/vendor/ckeditor/ckeditor.js"></script>
  7. <script src="/vendor/select2/js/select2.js"></script>
  8. </%def>
  9. <%def name="cssAddOn()">
  10. <link rel="stylesheet" href="/vendor/fileupload/css/jquery.fileupload.css">
  11. <link rel="stylesheet" href="/vendor/fileupload/css/jquery.fileupload-ui.css">
  12. <link rel="stylesheet" href="/css/jm2l.css" />
  13. <link rel="stylesheet" href="/vendor/select2/css/select2.css" type="text/css" media="screen" />
  14. <!-- CSS adjustments for browsers with JavaScript disabled -->
  15. <noscript><link rel="stylesheet" href="/vendor/fileupload/css/jquery.fileupload-noscript.css"></noscript>
  16. <noscript><link rel="stylesheet" href="/vendor/fileupload/css/jquery.fileupload-ui-noscript.css"></noscript>
  17. </%def>
  18. <div class="row-fluid">
  19. <div class="span10 offset1">
  20. <a class="btn" href="${request.route_path('list_task', year=year, _anchor=form.name.data)}">
  21. <i class="icon-arrow-left"></i> Retour à la liste
  22. </a>
  23. % if 'uid' in form._fields.keys():
  24. <a class="btn btn-danger btn-mini pull-right" onclick="return confirm_click();" href="${request.route_path('action_task_area', year=year, action='delete', pole_id=form.uid.data)}">
  25. <i class="icon-remove icon-white"></i> Supprimer ce pôle
  26. </a>
  27. <h3>Editer un Pôle</h3>
  28. % else:
  29. <h3>Ajouter un Pôle</h3>
  30. %endif
  31. <%
  32. DicForm = {
  33. 'name': {'PlaceHolder':u"Nom du Pôle", "FieldStyle":"width:90%;" },
  34. 'description': {'PlaceHolder':u"Description", "FieldStyle":"width:95%;min-height:150px;", "ckeditor":"1" },
  35. }
  36. %>
  37. % if 'uid' in form._fields.keys():
  38. <form action="/${year}/Staff/poles/${form.uid.data}" method="post">
  39. ${form.uid()}
  40. %else:
  41. <form action="/${year}/Staff/poles" method="post">
  42. %endif
  43. ${helpers.DisplayForm(form, DicForm)}
  44. <br>
  45. <div class="center">
  46. <button type="submit" class="btn btn-large btn-primary" />
  47. <i class="icon-ok icon-white"></i> Enregistrer
  48. </button>
  49. </div>
  50. </form>
  51. % if 'uid' in form._fields.keys():
  52. <div class="center">
  53. ${helpers.uploader("poles", form.uid.data, u"Attachement" )}
  54. </div>
  55. %endif
  56. </div>
  57. </div>