Changeset 13577 for main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/onlinepaymentaddform.pt
- Timestamp:
- 10 Jan 2016, 09:56:50 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/onlinepaymentaddform.pt
r13574 r13577 2 2 enctype="multipart/form-data"> 3 3 4 <label for="p_cat" i18n:translate=""> 5 Payment Category: 6 </label> 7 <select id="form.p_category" name="form.p_category" size="1" 8 class="form-control half" onclick="test()"> 9 <option tal:repeat="item view/selectable_categories" 10 tal:attributes="value python:item[0]"> 11 <span tal:replace="python:item[1]">FEE CATEGORY</span> 12 </option> 13 </select> 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="test()"> 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> 14 22 15 <span id="new_programme" style="display: none;"> 16 <br /> 17 <label for="new_programme" i18n:translate=""> 18 Desired Course of Study: 19 </label> 20 <input class="textType" id="new_programme" name="new_programme" 21 type="text"> 23 <span id="p_item" style="display: none;"> 24 <table class="form-table"> 25 <tbody> 26 <tr> 27 <td class="fieldname"> 28 Desired Course of Study: 29 </td> 30 <td> 31 <input class="textType" id="new_programme" name="new_programme" 32 type="text"> 33 </td> 34 </tr> 35 </tbody> 36 </table> 22 37 </span> 38 23 39 <br /> 40 24 41 <div tal:condition="view/availableActions"> 25 42 <input tal:repeat="action view/actions" … … 32 49 function test() { 33 50 if (document.getElementById('form.p_category').value == 'transfer') { 34 document.getElementById(' new_programme').style.display = 'block';51 document.getElementById('p_item').style.display = 'block'; 35 52 } else { 36 document.getElementById(' new_programme').style.display = 'none';53 document.getElementById('p_item').style.display = 'none'; 37 54 } 38 55 }
Note: See TracChangeset for help on using the changeset viewer.