source: main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/onlinepaymentaddform.pt @ 16045

Last change on this file since 16045 was 15664, checked in by Henrik Bettermann, 5 years ago

Implement combi payments (tests will follow).

File size: 1.9 KB
Line 
1<form action="." tal:attributes="action request/URL" method="post"
2      enctype="multipart/form-data">
3
4  <table class="form-table">
5    <tbody>
6      <tr>
7        <td class="fieldname">
8          Payment Category:
9        </td>
10        <td>
11          <select id="form.p_category" name="form.p_category" size="1"
12                  class="form-control half" onclick="further()">
13            <option tal:repeat="item view/selectable_categories"
14                    tal:attributes="value python:item[0]">
15              <span tal:replace="python:item[1]">FEE CATEGORY</span>
16            </option>
17          </select>
18        </td>
19      </tr>
20    </tbody>
21  </table>
22
23  <table id="widgets" class="form-table" style="display: none;">
24    <tbody>
25      <tal:widgets content="structure provider:widgets" />
26    </tbody>
27  </table>
28
29  <span id="p_item" style="display: none;">
30  <table class="form-table">
31    <tbody>
32      <tr>
33        <td class="fieldname">
34          Desired Course of Study:
35        </td>
36        <td>
37          <input class="textType" id="new_programme" name="new_programme"
38            type="text">
39        </td>
40      </tr>
41    </tbody>
42  </table>
43  </span>
44
45  <br />
46
47  <div tal:condition="view/availableActions">
48    <input tal:repeat="action view/actions"
49           tal:replace="structure action/render"
50           />
51  </div>
52</form>
53
54<script type="text/javascript">
55  function further() {
56      if (document.getElementById('form.p_category').value == 'transfer') {
57          document.getElementById('p_item').style.display = 'block';
58      } else {
59          document.getElementById('p_item').style.display = 'none';
60      }
61      if (document.getElementById('form.p_category').value == 'combi') {
62          document.getElementById('widgets').style.display = 'block';
63      } else {
64          document.getElementById('widgets').style.display = 'none';
65      }
66  }
67</script>
Note: See TracBrowser for help on using the repository browser.