source: main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/exportconfig.pt @ 12953

Last change on this file since 12953 was 11730, checked in by Henrik Bettermann, 10 years ago

Filter payment ticket data exports by specifying the payment_date period.

File size: 2.6 KB
Line 
1<p class="alert alert-warning"  i18n:domain="waeup.kofa"
2   i18n:translate="student_export_warning">
3  <strong>NOTICE:</strong>
4  Student data exports are very computation intensive.
5  Depending on the filter selected and the portal traffic load, exports may take
6  longer than 15 minutes. You are advised to export data outside high-traffic
7  time periods.
8</p>
9
10<br />
11
12<form i18n:domain="waeup.kofa" method="POST">
13  <label for="mode" i18n:translate="">
14    Exporter (Data Type)
15  </label>
16  <select id="exporter" name="exporter" class="form-control half" onclick="test()">
17    <option tal:repeat="item view/exporters"
18            tal:attributes="value python:item[1]">
19      <span tal:replace="python: item[0]">Students</span>
20    </option>
21  </select>
22  <br />
23  <label for="session" i18n:translate="">
24    Current Session
25  </label>
26  <select name="session" class="form-control half">
27    <option tal:repeat="item view/sessions"
28            tal:attributes="value python:item[1]">
29      <span tal:replace="python: item[0]">2012/2013</span>
30    </option>
31  </select>
32  <br />
33  <label for="level" i18n:translate="">
34    Current Level
35  </label>
36  <select name="level" class="form-control half">
37    <option tal:repeat="item view/levels"
38            tal:attributes="value python:item[1]">
39      <span tal:replace="python: item[0]">200</span>
40    </option>
41  </select>
42  <br />
43  <label for="mode" i18n:translate="">
44    Current Study Mode
45  </label>
46  <select name="mode" class="form-control half">
47    <option tal:repeat="item view/modes"
48            tal:attributes="value python:item[1]">
49      <span tal:replace="python: item[0]">ug_ft</span>
50    </option>
51  </select>
52  <br />
53  <span id="payment_dates" style="display: none;">
54    <label for="mode" i18n:translate="">
55      Payment Date
56    </label>
57    <br />
58    from
59    <input class="datepicker-le-year datepicker-short textType"
60           id="payments_start"
61           name="payments_start" type="text" value="" />
62    to <input class="datepicker-le-year datepicker-short textType"
63           id="payments_end"
64           name="payments_end" type="text" value="" />
65    <br />
66  </span>
67  <br />
68  <input type="submit" name="START"  i18n:translate=""
69    value="Create CSV file"
70    class="btn btn-primary" />
71</form>
72
73<script type="text/javascript">
74  function test() {
75      if (document.getElementById('exporter').value == 'bursary' ||
76          document.getElementById('exporter').value == 'studentpayments') {
77          document.getElementById('payment_dates').style.display = 'block';
78      } else {
79          document.getElementById('payment_dates').style.display = 'none';
80      }
81  }
82</script>
Note: See TracBrowser for help on using the repository browser.