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

Last change on this file was 16433, checked in by Henrik Bettermann, 3 years ago

Set i18n domain.

File size: 2.5 KB
RevLine 
[9729]1<form action="." tal:attributes="action request/URL" method="post"
[16433]2      enctype="multipart/form-data" i18n:domain="waeup.kofa">
[13574]3
[13577]4  <table class="form-table">
5    <tbody>
6      <tr>
[16432]7        <td i18n:translate="" class="fieldname">
[13577]8          Payment Category:
9        </td>
10        <td>
11          <select id="form.p_category" name="form.p_category" size="1"
[15664]12                  class="form-control half" onclick="further()">
[13577]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>
[16431]20      <tr tal:condition="view/selectable_payment_options">
[16432]21        <td i18n:translate="" class="fieldname">
[16431]22          Payment Option:
23        </td>
24        <td>
25          <select id="form.p_option" name="form.p_option" size="1"
26                  class="form-control half" onclick="further()">
27            <option tal:repeat="item view/selectable_payment_options"
28                    tal:attributes="value python:item[0]">
29              <span tal:replace="python:item[1]">PAYMENT OPTION</span>
30            </option>
31          </select>
32        </td>
33      </tr>
[13577]34    </tbody>
35  </table>
[13574]36
[15664]37  <table id="widgets" class="form-table" style="display: none;">
38    <tbody>
39      <tal:widgets content="structure provider:widgets" />
40    </tbody>
41  </table>
42
[13577]43  <span id="p_item" style="display: none;">
44  <table class="form-table">
45    <tbody>
46      <tr>
[16432]47        <td i18n:translate="" class="fieldname">
[13577]48          Desired Course of Study:
49        </td>
50        <td>
51          <input class="textType" id="new_programme" name="new_programme"
52            type="text">
53        </td>
54      </tr>
55    </tbody>
56  </table>
[13574]57  </span>
[13577]58
[13574]59  <br />
[13577]60
[9729]61  <div tal:condition="view/availableActions">
62    <input tal:repeat="action view/actions"
63           tal:replace="structure action/render"
64           />
65  </div>
66</form>
[13574]67
68<script type="text/javascript">
[15664]69  function further() {
[13574]70      if (document.getElementById('form.p_category').value == 'transfer') {
[13577]71          document.getElementById('p_item').style.display = 'block';
[13574]72      } else {
[13577]73          document.getElementById('p_item').style.display = 'none';
[13574]74      }
[15664]75      if (document.getElementById('form.p_category').value == 'combi') {
76          document.getElementById('widgets').style.display = 'block';
77      } else {
78          document.getElementById('widgets').style.display = 'none';
79      }
[13574]80  }
81</script>
Note: See TracBrowser for help on using the repository browser.