source: main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/applicantscontainermanagepage.pt @ 6344

Last change on this file since 6344 was 6344, checked in by Henrik Bettermann, 13 years ago

Adjust form status summary throughout the portal. Do not display errors in status summary. These errors can be found the form too.

File size: 5.9 KB
Line 
1<form action="." tal:attributes="action request/URL" method="POST"
2      class="edit-form" enctype="multipart/form-data">
3  <h2 i18n:translate="" tal:condition="view/label" tal:content="view/label">Label</h2>
4  <div class="form-status"
5    tal:define="status view/status"
6    tal:condition="status">
7    Form Status:
8    <span i18n:translate="" tal:content="view/status">
9      Form status summary
10    </span>
11  </div>
12  <div id="tabs">
13    <ul>
14      <li>
15      <a href="#tab-1">
16        <span>Settings
17        </span></a>
18      </li>
19      <li>
20      <a href="#tab-2">
21        <span>Applicants
22        </span></a>
23      </li>
24      <li>
25      <a href="#tab-3">
26        <span>Local Roles
27        </span></a>
28      </li>
29    </ul>
30    <div id="tab-1">
31      <table class="zebra">
32        <tbody>
33          <tal:block repeat="widget view/widgets">
34            <tr>
35              <td class="label" tal:define="hint widget/hint">
36                <label tal:condition="python:hint" tal:attributes="for widget/name">
37                  <span class="required" tal:condition="widget/required" >*
38                  </span>
39                  <span i18n:translate="" tal:content="widget/label">label
40                  </span>:
41                </label>
42                <label tal:condition="python:not hint" tal:attributes="for widget/name">
43                  <span class="required" tal:condition="widget/required" >*
44                  </span>
45                  <span i18n:translate="" tal:content="widget/label">label
46                  </span>:
47                </label> </td>
48              <td class="field">
49                <div class="widget" tal:content="structure widget">
50                  <input type="text" />
51                </div>
52                <div class="error" tal:condition="widget/error">
53                  <span tal:replace="structure widget/error">error
54                  </span>
55                </div> </td>
56            </tr>
57          </tal:block>
58        </tbody>
59      </table>
60      <div id="actionsView">
61        <span class="actionButtons" tal:condition="view/availableActions">
62          <span tal:repeat="action view/actions" tal:omit-tag="">
63            <input tal:condition="python:action.label in view.taboneactions"
64                   tal:replace="structure action/render"/>
65          </span>
66        </span>
67      </div>
68    </div>
69    <div id="tab-2"> <h3>Applicants</h3>
70      <table class="display dataTableManage">
71        <thead>
72          <tr>
73            <th>&nbsp;
74            </th>
75            <th>ID
76            </th>
77            <th>status
78            </th>
79          </tr>
80        </thead>
81        <tbody>
82          <tr tal:repeat="appl context/values">
83            <td>
84              <input type="checkbox" name="val_id" tal:attributes="value appl/__name__" />
85            </td>
86            <td>
87              <a tal:attributes="href python: view.url(appl)"
88                 tal:content="appl/__name__"> ID </a>
89            </td>
90            <td>
91              <span tal:replace="appl/state">state</span>
92            </td>
93          </tr>
94        </tbody>
95      </table>
96      <div id="actionsView">
97        <span class="actionButtons" tal:condition="view/availableActions">
98          <span tal:repeat="action view/actions" tal:omit-tag="">
99            <input tal:condition="python:action.label in view.tabtwoactions"
100                   tal:replace="structure action/render"/>
101          </span>
102        </span>
103      </div>
104    </div>
105    <div id="tab-3"> <br />
106        <table class="display dataTableManage">
107            <thead>
108                <tr>
109                    <th>&nbsp;
110                    </th>
111                    <th>User Id
112                    </th>
113                    <th>Name
114                    </th>
115                    <th>Local Role
116                    </th>
117                </tr>
118            </thead>
119            <tbody>
120                <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeB">
121                    <td>
122                        <input type="checkbox" name="role_id" tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" />
123                    </td>
124                    <td tal:content="entry/user_name"> USERNAME
125                    </td>
126                    <td tal:content="entry/user_title"> USERTITLE
127                    </td>
128                    <td tal:content="entry/local_role_title"> LOCAL ROLE
129                    </td>
130                </tr>
131            </tbody>
132        </table> <br /><br />
133        <div class="actionButtons" tal:condition="view/availableActions">
134            <span tal:repeat="action view/actions" tal:omit-tag="">
135                <input tal:condition="python:action.label in view.tabthreeactions1" tal:replace="structure action/render"/>
136            </span>
137        </div> <br /><br />
138        <table class="zebra">
139            <tr>
140                <td>
141                    <select id="user" name="user">
142                        <option tal:repeat="user view/getUsers" tal:attributes="value user/name">
143                        <span tal:replace="user/val/description">USERTITLE
144                        </span>
145                        </option>
146                    </select>
147                </td>
148                <td>
149                    <select id="local_role" name="local_role">
150                        <option tal:repeat="localrole view/getLocalRoles" tal:attributes="value localrole/name">
151                        <span tal:replace="localrole/title">LOCALROLETITLE
152                        </span>
153                        </option>
154                    </select>
155                </td>
156                <td>
157                    <div class="actionButtons" tal:condition="view/availableActions">
158                        <span tal:repeat="action view/actions" tal:omit-tag="">
159                            <input tal:condition="python:action.label in view.tabthreeactions2" tal:replace="structure action/render"/>
160                        </span>
161                    </div>
162                </td>
163            </tr>
164        </table>
165    </div>
166  </div>
167</form>
Note: See TracBrowser for help on using the repository browser.