- Timestamp:
- 13 Oct 2019, 19:15:33 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/onlinepaymentaddform.pt
r13577 r15664 10 10 <td> 11 11 <select id="form.p_category" name="form.p_category" size="1" 12 class="form-control half" onclick=" test()">12 class="form-control half" onclick="further()"> 13 13 <option tal:repeat="item view/selectable_categories" 14 14 tal:attributes="value python:item[0]"> … … 18 18 </td> 19 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" /> 20 26 </tbody> 21 27 </table> … … 47 53 48 54 <script type="text/javascript"> 49 function test() {55 function further() { 50 56 if (document.getElementById('form.p_category').value == 'transfer') { 51 57 document.getElementById('p_item').style.display = 'block'; … … 53 59 document.getElementById('p_item').style.display = 'none'; 54 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 } 55 66 } 56 67 </script>
Note: See TracChangeset for help on using the changeset viewer.