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

Last change on this file since 15021 was 14984, checked in by Henrik Bettermann, 7 years ago

Add ticket level and session filter to CourseTicketExporter.

File size: 3.8 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
53  <span id="payment_dates" style="display: none;">
54    <br />
55    <label for="mode" i18n:translate="">
56      Payment Date
57    </label>
58    <br />
59    from
60    <input class="datepicker-le-year datepicker-short textType"
61           id="payments_start"
62           name="payments_start" type="text" value="" />
63    to <input class="datepicker-le-year datepicker-short textType"
64           id="payments_end"
65           name="payments_end" type="text" value="" />
66    <br />
67  </span>
68
69
70  <span id="ct_data" style="display: none;">
71    <br />
72    <label for="mode" i18n:translate="">
73      Course Ticket Level
74    </label>
75    <select name="ct_level" class="form-control half">
76      <option tal:repeat="item view/levels"
77              tal:attributes="value python:item[1]">
78        <span tal:replace="python: item[0]">200</span>
79      </option>
80    </select>
81    <br />
82    <label for="mode" i18n:translate="">
83      Course Ticket Session
84    </label>
85    <select name="ct_session" class="form-control half">
86      <option tal:repeat="item view/sessions"
87              tal:attributes="value python:item[1]">
88        <span tal:replace="python: item[0]">2012/2013</span>
89      </option>
90    </select>
91    <br />
92  </span>
93  <br />
94
95  <input type="submit" name="START"  i18n:translate=""
96    value="Create CSV file"
97    class="btn btn-primary" />
98</form>
99
100<script type="text/javascript">
101  function test() {
102      if (document.getElementById('exporter').value == 'bursary' ||
103          document.getElementById('exporter').value == 'studentpayments' ||
104          document.getElementById('exporter').value == 'studentunpaidpayments') {
105          document.getElementById('payment_dates').style.display = 'block';
106          document.getElementById('ct_data').style.display = 'none';
107      } else if (document.getElementById('exporter').value == 'coursetickets')  {
108          document.getElementById('ct_data').style.display = 'block';
109          document.getElementById('payment_dates').style.display = 'none';
110      } else {
111          document.getElementById('ct_data').style.display = 'none';
112          document.getElementById('payment_dates').style.display = 'none';
113      }
114  }
115</script>
116
Note: See TracBrowser for help on using the repository browser.