From 12d69abf83685d70030f06a203983f1298ae534a Mon Sep 17 00:00:00 2001 From: tr4ck3ur Date: Sat, 14 Feb 2015 12:01:04 +0100 Subject: Fix all last changes for pre-production test --- jm2l/templates/Staff/list.mako | 63 +++++++++++++++++++++-------------------- jm2l/templates/Staff/tasks.mako | 7 +++-- 2 files changed, 37 insertions(+), 33 deletions(-) (limited to 'jm2l/templates/Staff') diff --git a/jm2l/templates/Staff/list.mako b/jm2l/templates/Staff/list.mako index f8ddb4a..b2cbe5d 100644 --- a/jm2l/templates/Staff/list.mako +++ b/jm2l/templates/Staff/list.mako @@ -1,35 +1,45 @@ # -*- coding: utf-8 -*- <%inherit file="jm2l:templates/layout.mako"/> - +<% +from slugify import slugify +%> + + Ajouter un Pôle d'activité +

Liste des tâches JM2L Staff

-
-% for Num, Entity_Type in enumerate(tasks.keys()): -
+% for Num, Entity in enumerate(sorted(tasks.keys(), key=lambda x:x.name)): +
+ + Editer le pôle + +

${Entity.name}

+
${Entity.description | n}
- - % for task in tasks[Entity_Type]: + % for task in tasks[Entity]:
Nom + Ajouter une tâche + Liste des tâches
% if task.closed: @@ -63,25 +73,18 @@ % endfor -%if 0: -
    -% if tasks: - % for task in tasks: -
  • - ${task.name} -
    - [ edit - close ] -
    - %if task.description: - ${task.description | n} - %endif -
  • - % endfor -% else: -
  • Il n'y a pas de tâches ouverte.
  • -% endif -
  • - Créer une nouvelle tâche -
  • -
-%endif \ No newline at end of file + +<%def name="jsAddOn()"> + + \ No newline at end of file diff --git a/jm2l/templates/Staff/tasks.mako b/jm2l/templates/Staff/tasks.mako index df0c255..d3d9ded 100644 --- a/jm2l/templates/Staff/tasks.mako +++ b/jm2l/templates/Staff/tasks.mako @@ -15,6 +15,7 @@ +Retour à la liste % if 'uid' in form._fields.keys():

Editer une tâche

% else: @@ -24,9 +25,9 @@ DicForm = { 'name': {'PlaceHolder':u"Nom de la tâche", "FieldStyle":"width:90%;" }, 'area_uid': {'PlaceHolder':u"Pôle", "FieldStyle":"width:16em;", 'ContainerStyle':"float:left;" }, - 'due_date': {'PlaceHolder':u"27/11/2015", "FieldStyle":"width:8em;", 'ContainerStyle':"float:left;"}, - 'closed_by': {'PlaceHolder':u"Assigné à", "FieldStyle":"width:16em;" }, - 'description': {'PlaceHolder':u"Description", "FieldStyle":"width:95%;min-height:150px;" }, + 'closed_by': {'PlaceHolder':u"Assigné à", "FieldStyle":"width:16em;", 'ContainerStyle':"float:left;" }, + 'due_date': {'PlaceHolder':u"27/11/2015", "FieldStyle":"width:8em;"}, + 'description': {'PlaceHolder':u"Description", "FieldStyle":"width:95%;min-height:150px;", "ckeditor":"1" }, } %> -- cgit v1.2.3-54-g00ecf