summaryrefslogtreecommitdiff
path: root/p/tools/todo.html.tt
blob: 285c7e8a1f9d089e6bf6c315bd4993d626999c83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
 <head>
  <meta http-equiv="Content-Type" content="application/html+xml; charset=ISO-8859-1" />
  <title>ToDo</title>
  <link rel="stylesheet" type="text/css" href="todo.css" media="screen" title="Normal" />
 </head>
 <body>
  <ul>
   [% PROCESS task tasks = tasks %]
  </ul>
 </body>
</html>

[% BLOCK leaf %]
<li class="task"><p><span id="state">[% task.state %]</span> <span class="text">[% task.text %]</span> <span class="owner">[% task.owner.join (', ') %]</span></p></li>
[% END %]

[% BLOCK task %]
 [% IF tasks.size > 0 %]
  [% FOREACH t = tasks %]
   [% IF t.exists ('text') %] 
    [% PROCESS leaf task = t %]
   [% ELSE %]
    [% IF t.key %]
     [% IF t.value.value.exists ('text') %]
      prout
     [% ELSE +%]
      <li><p>[% t.key %]</p>
       <ul>
        [% PROCESS task tasks = t.value %]
       </ul>
      </li>
     [%+ END %]
    [% ELSE %]
     [% PROCESS task tasks = t.value %]
    [% END %]
   [% END %]
  [% END %]
 [% ELSE +%]
  <li><p>Aucune Tache</p></li>
 [%+ END %]
[% END %]