Last change
on this file since 15253 was
13577,
checked in by Henrik Bettermann, 9 years ago
|
Add form pages should contain tables.
|
File size:
1.5 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="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> |
---|
22 | |
---|
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> |
---|
37 | </span> |
---|
38 | |
---|
39 | <br /> |
---|
40 | |
---|
41 | <div tal:condition="view/availableActions"> |
---|
42 | <input tal:repeat="action view/actions" |
---|
43 | tal:replace="structure action/render" |
---|
44 | /> |
---|
45 | </div> |
---|
46 | </form> |
---|
47 | |
---|
48 | <script type="text/javascript"> |
---|
49 | function test() { |
---|
50 | if (document.getElementById('form.p_category').value == 'transfer') { |
---|
51 | document.getElementById('p_item').style.display = 'block'; |
---|
52 | } else { |
---|
53 | document.getElementById('p_item').style.display = 'none'; |
---|
54 | } |
---|
55 | } |
---|
56 | </script> |
---|
Note: See
TracBrowser for help on using the repository browser.