source: main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/reportscontainerpage.pt

Last change on this file was 14169, checked in by Henrik Bettermann, 8 years ago

Add report purge button.

File size: 2.0 KB
Line 
1<table i18n:domain="waeup.kofa" class="table">
2  <thead>
3    <tr>
4      <th i18n:translate="">Report Number</th>
5      <th i18n:translate="">Description</th>
6      <th i18n:translate="">Creator</th>
7      <th i18n:translate="">Creation Date</th>
8      <th i18n:translate="">Status</th>
9      <th>&nbsp;</th>
10    </tr>
11  </thead>
12  <tbody>
13    <tr tal:repeat="entry view/entries">
14      <td>
15        <span tal:replace="python: entry[0]">12</span>
16      </td>
17      <td>
18        <span tal:replace="python: entry[1]">REPORT DESCRIPTION</span>
19      </td>
20      <td>
21        <span tal:replace="python: entry[7]">CREATOR</span>
22      </td>
23      <td nowrap>
24        <span tal:replace="python: entry[6]">DATETIME</span>
25      </td>
26      <td>
27        <span tal:replace="python: entry[2]">STATUS</span>
28      </td>
29      <td nowrap>
30        <form method="POST">
31          <input type="hidden" name="job_id"
32                 tal:attributes="value python: entry[0]" />
33          <input type="submit" class="btn btn-sm btn-primary"
34                 name="DOWNLOAD" value="Download"
35                 tal:condition="python: entry[4]" />
36          <input type="submit" class="btn btn-sm btn-default"
37                 name="DISCARD" value="Discard"
38                 tal:condition="python: entry[3]" />
39          <a href="" class="btn btn-sm btn-default" i18n:translate=""
40             tal:condition="python: entry[5]">
41            <img src="/static/img/actionicon_reload.png" />
42            Reload
43          </a>
44        </form>
45      </td>
46    </tr>
47  </tbody>
48</table>
49
50<form method="POST" i18n:domain="waeup.kofa">
51  <div class="form-group">
52    <a tal:attributes="href python:view.url(context, 'create')"
53       class="btn btn-primary" i18n:translate="">
54      Create new report
55    </a>
56    <input type="submit" class="btn btn-default"
57      name="PURGE" value="Purge outdated reports"
58      data-toggle="tooltip" title="All reports older than 4 weeks will be discarded!"
59      onclick="return window.confirm('Are you really sure?')"/>
60  </div>
61</form>
62
63
64
Note: See TracBrowser for help on using the repository browser.