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

Last change on this file since 6332 was 6332, checked in by uli, 13 years ago

Rename 'getApplicationState' to 'state'. Properties are always named like
attributes (lowe_case_with_underscores; they appear as attributes in the

interface) and not like methods (camelCase).

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