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 | <label for="semester" i18n:translate=""> |
---|
120 | Course Ticket Semester |
---|
121 | </label> |
---|
122 | <select name="ct_semester" class="form-control half"> |
---|
123 | <option tal:repeat="item view/semesters" |
---|
124 | tal:attributes="value python:item[1]"> |
---|
125 | <span tal:replace="python: item[0]">1st Semester</span> |
---|
126 | </option> |
---|
127 | </select> |
---|
128 | <br /> |
---|
129 | </span> |
---|
130 | |
---|
131 | <br /> |
---|
132 | |
---|
133 | <input type="submit" name="START" i18n:translate="" |
---|
134 | value="Create CSV file" |
---|
135 | class="btn btn-primary" /> |
---|
136 | </form> |
---|
137 | |
---|
138 | <script type="text/javascript"> |
---|
139 | function test() { |
---|
140 | if (document.getElementById('exporter').value == 'bursary' || |
---|
141 | document.getElementById('exporter').value == 'studentpayments' || |
---|
142 | document.getElementById('exporter').value == 'accommodationpayments' || |
---|
143 | document.getElementById('exporter').value == 'studentunpaidpayments') { |
---|
144 | document.getElementById('payment_dates').style.display = 'block'; |
---|
145 | document.getElementById('paycat').style.display = 'block'; |
---|
146 | document.getElementById('ct_data').style.display = 'none'; |
---|
147 | document.getElementById('paysession').style.display = 'block'; |
---|
148 | |
---|
149 | } else if (document.getElementById('exporter').value == 'coursetickets') { |
---|
150 | document.getElementById('ct_data').style.display = 'block'; |
---|
151 | document.getElementById('payment_dates').style.display = 'none'; |
---|
152 | document.getElementById('paycat').style.display = 'none'; |
---|
153 | document.getElementById('paysession').style.display = 'none'; |
---|
154 | |
---|
155 | } else { |
---|
156 | document.getElementById('ct_data').style.display = 'none'; |
---|
157 | document.getElementById('payment_dates').style.display = 'none'; |
---|
158 | document.getElementById('paycat').style.display = 'none'; |
---|
159 | document.getElementById('paysession').style.display = 'none'; |
---|
160 | } |
---|
161 | } |
---|
162 | </script> |
---|
163 | |
---|