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

Last change on this file since 15545 was 15315, checked in by Henrik Bettermann, 6 years ago

Allow selecting p_session and other payment ticket parameters before exporting accommodation payments.

File size: 5.1 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  <span id="paycat" style="display: none;">
70    <br />
71    <label for="paycat" i18n:translate="">
72      Payment Categories
73    </label>
74    <select name="paycat" class="form-control half">
75      <option tal:repeat="item view/paycats"
76              tal:attributes="value python:item[1]">
77        <span tal:replace="python: item[0]">schoolfee</span>
78      </option>
79    </select>
80    <br />
81  </span>
82
83  <span id="paysession" style="display: none;">
84    <br />
85    <label for="paysession" i18n:translate="">
86      Payment Session
87    </label>
88    <select name="paysession" class="form-control half">
89      <option tal:repeat="item view/sessions"
90              tal:attributes="value python:item[1]">
91        <span tal:replace="python: item[0]">2018/2019</span>
92      </option>
93    </select>
94    <br />
95  </span>
96
97  <span id="ct_data" style="display: none;">
98    <br />
99    <label for="mode" i18n:translate="">
100      Course Ticket Level
101    </label>
102    <select name="ct_level" class="form-control half">
103      <option tal:repeat="item view/levels"
104              tal:attributes="value python:item[1]">
105        <span tal:replace="python: item[0]">200</span>
106      </option>
107    </select>
108    <br />
109    <label for="mode" i18n:translate="">
110      Course Ticket Session
111    </label>
112    <select name="ct_session" class="form-control half">
113      <option tal:repeat="item view/sessions"
114              tal:attributes="value python:item[1]">
115        <span tal:replace="python: item[0]">2012/2013</span>
116      </option>
117    </select>
118    <br />
119  </span>
120
121  <br />
122
123  <input type="submit" name="START"  i18n:translate=""
124    value="Create CSV file"
125    class="btn btn-primary" />
126</form>
127
128<script type="text/javascript">
129  function test() {
130      if (document.getElementById('exporter').value == 'bursary' ||
131          document.getElementById('exporter').value == 'studentpayments' ||
132          document.getElementById('exporter').value == 'accommodationpayments' ||
133          document.getElementById('exporter').value == 'studentunpaidpayments') {
134          document.getElementById('payment_dates').style.display = 'block';
135          document.getElementById('paycat').style.display = 'block';
136          document.getElementById('ct_data').style.display = 'none';
137          document.getElementById('paysession').style.display = 'block';
138
139      } else if (document.getElementById('exporter').value == 'coursetickets')  {
140          document.getElementById('ct_data').style.display = 'block';
141          document.getElementById('payment_dates').style.display = 'none';
142          document.getElementById('paycat').style.display = 'none';
143          document.getElementById('paysession').style.display = 'none';
144
145      } else {
146          document.getElementById('ct_data').style.display = 'none';
147          document.getElementById('payment_dates').style.display = 'none';
148          document.getElementById('paycat').style.display = 'none';
149          document.getElementById('paysession').style.display = 'none';
150      }
151  }
152</script>
153
Note: See TracBrowser for help on using the repository browser.