aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortr4ck3ur <tr4ck3ur@style-python.fr>2015-02-21 20:04:23 +0100
committertr4ck3ur <tr4ck3ur@style-python.fr>2015-02-21 20:04:23 +0100
commit8ae507b78ae3739e1c70d4e2d6249805fba8b572 (patch)
treeef11609a9a289c1bd12905af04ec5b846041ba9d
parent5c10b5d1629d5e5f480298acec5387fcd8afedad (diff)
downloadjm2l-8ae507b78ae3739e1c70d4e2d6249805fba8b572.tar.gz
jm2l-8ae507b78ae3739e1c70d4e2d6249805fba8b572.tar.bz2
jm2l-8ae507b78ae3739e1c70d4e2d6249805fba8b572.tar.xz
jm2l-8ae507b78ae3739e1c70d4e2d6249805fba8b572.zip
Fix for W3C
-rw-r--r--jm2l/templates/Staff/list.mako4
-rw-r--r--jm2l/templates/Staff/tasks.mako6
2 files changed, 5 insertions, 5 deletions
diff --git a/jm2l/templates/Staff/list.mako b/jm2l/templates/Staff/list.mako
index 682587f..cd5562b 100644
--- a/jm2l/templates/Staff/list.mako
+++ b/jm2l/templates/Staff/list.mako
@@ -28,7 +28,7 @@ from slugify import slugify
% if Entity.description:
<div>${Entity.description | n}</div>
% endif
-<table width="100%" class="table table-striped table-bordered table-hover">
+<table class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th colspan="2" style="text-align:center;">
@@ -49,7 +49,7 @@ from slugify import slugify
<a href="/Staff/tasks/${task.uid}">
<span class="name">${task.name}</span>
</a>
- <span style="float:right;">${task.due_date.strftime("%d %b").decode("utf-8")}</a>
+ <span style="float:right;">${task.due_date.strftime("%d %b").decode("utf-8")}</span>
% endif
</td>
<td style="position: relative;width:70px;">
diff --git a/jm2l/templates/Staff/tasks.mako b/jm2l/templates/Staff/tasks.mako
index b871aa2..375d241 100644
--- a/jm2l/templates/Staff/tasks.mako
+++ b/jm2l/templates/Staff/tasks.mako
@@ -24,8 +24,8 @@
<%
DicForm = {
'name': {'PlaceHolder':u"Nom de la tâche", "FieldStyle":"width:90%;" },
- 'area_uid': {'PlaceHolder':u"Pôle", "FieldStyle":"width:16em;", 'ContainerStyle':"float:left;" },
- 'closed_by': {'PlaceHolder':u"Assigné à", "FieldStyle":"width:16em;", 'ContainerStyle':"float:left;" },
+ 'area_uid': {"FieldStyle":"width:16em;", 'ContainerStyle':"float:left;" },
+ 'closed_by': {"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" },
}
@@ -38,7 +38,7 @@ DicForm = {
<form action="/Staff/tasks" method="post">
%endif
${helpers.DisplayForm(form, DicForm)}
-<input type="submit" class="btn btn-primary" value="Valider"></input>
+<input type="submit" class="btn btn-primary" value="Valider" />
</form>
% if 'uid' in form._fields.keys():
${helpers.uploader("tasks", form.uid.data, u"une pièce jointe" )}