1 | <form action="." tal:attributes="action request/URL" method="POST"
|
---|
2 | enctype="multipart/form-data">
|
---|
3 |
|
---|
4 | <ul class="tabs" data-tabs="tabs">
|
---|
5 | <li tal:attributes="class view/tab1"><a href="#tab-1"><span>Study Course Data</span></a></li>
|
---|
6 | <li tal:attributes="class view/tab2"><a href="#tab-2"><span>Study Levels</span></a></li>
|
---|
7 | </ul>
|
---|
8 |
|
---|
9 | <div class="tab-content">
|
---|
10 | <div id="tab-1" tal:attributes="class view/tab1">
|
---|
11 | <table class="form-table">
|
---|
12 | <tbody>
|
---|
13 | <tal:block repeat="widget view/widgets">
|
---|
14 | <tr>
|
---|
15 | <td class="fieldname">
|
---|
16 | <span class="required" tal:condition="widget/required">*</span>
|
---|
17 | <span tal:content="widget/label">label</span>:
|
---|
18 | </td>
|
---|
19 | <td>
|
---|
20 | <span tal:content="structure widget">
|
---|
21 | <input type="text" />
|
---|
22 | </span>
|
---|
23 | <tal:error tal:condition="widget/error">
|
---|
24 | <span tal:replace="structure widget/error">error</span>
|
---|
25 | </tal:error>
|
---|
26 | <tal:hint tal:condition="widget/hint">
|
---|
27 | <span tal:content="structure widget/hint">hint</span>
|
---|
28 | </tal:hint>
|
---|
29 | </td>
|
---|
30 | </tr>
|
---|
31 | </tal:block>
|
---|
32 | </tbody>
|
---|
33 | </table>
|
---|
34 | <div tal:condition="view/availableActions">
|
---|
35 | <span tal:repeat="action view/actions"
|
---|
36 | tal:omit-tag="">
|
---|
37 | <input tal:condition="python:action.label in view.taboneactions"
|
---|
38 | tal:replace="structure action/render"/>
|
---|
39 | </span>
|
---|
40 | </div>
|
---|
41 | </div>
|
---|
42 |
|
---|
43 | <div id="tab-2" tal:attributes="class view/tab2">
|
---|
44 | <h3>Study Levels (Course Lists)</h3>
|
---|
45 | <table class="display dataTableManage">
|
---|
46 | <thead>
|
---|
47 | <tr>
|
---|
48 | <th> </th><th>Level Code</th><th>Level Title</th>
|
---|
49 | </tr>
|
---|
50 | </thead>
|
---|
51 | <tbody>
|
---|
52 | <tr tal:repeat="cl context/values">
|
---|
53 | <td>
|
---|
54 | <input type="checkbox"
|
---|
55 | name="val_id"
|
---|
56 | tal:attributes="value cl/__name__" />
|
---|
57 | </td>
|
---|
58 | <td> <a tal:attributes="href cl/__name__">
|
---|
59 | <span tal:content="cl/level">CODE</span></a>
|
---|
60 | </td>
|
---|
61 | <td>
|
---|
62 | <span tal:content="cl/level_title">TITLE</span>
|
---|
63 | </td>
|
---|
64 | </tr>
|
---|
65 | </tbody>
|
---|
66 | </table>
|
---|
67 |
|
---|
68 | <div tal:condition="view/availableActions">
|
---|
69 | <span tal:repeat="action view/actions"
|
---|
70 | tal:omit-tag="">
|
---|
71 | <input tal:condition="python:action.label in view.tabtwoactions"
|
---|
72 | tal:replace="structure action/render"/>
|
---|
73 | </span>
|
---|
74 | </div>
|
---|
75 | <br /><br /><br />
|
---|
76 | <div>
|
---|
77 | <span tal:condition="view/availableActions">
|
---|
78 | <span tal:repeat="action view/actions"
|
---|
79 | tal:omit-tag="">
|
---|
80 | <input tal:condition="python:action.label in view.tabthreeactions"
|
---|
81 | tal:replace="structure action/render"/>
|
---|
82 | </span>
|
---|
83 | </span>
|
---|
84 | <select id="addlevel" name="addlevel">
|
---|
85 | <option tal:attributes="value level/code" tal:repeat="level view/level_dict">
|
---|
86 | <span tal:replace="level/title">LEVELTITLE
|
---|
87 | </span>
|
---|
88 | </option>
|
---|
89 | </select>
|
---|
90 | </div>
|
---|
91 | </div>
|
---|
92 | </div>
|
---|
93 | </form>
|
---|
94 |
|
---|
95 |
|
---|
96 |
|
---|