- Timestamp:
- 20 May 2011, 09:39:59 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/departmentmanagepage.pt
r6152 r6161 31 31 32 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" 39 tal:attributes="for widget/name"> 40 <span class="required" tal:condition="widget/required" 41 >*</span><span i18n:translate="" 42 tal:content="widget/label">label</span> 43 </label> 44 <label tal:condition="python:not hint" 45 tal:attributes="for widget/name"> 46 <span class="required" tal:condition="widget/required" 47 >*</span><span i18n:translate="" 48 tal:content="widget/label">label</span> 49 </label>: 50 </td> 51 <td class="field"> 52 <div class="widget" tal:content="structure widget"> 53 <input type="text" /> 54 </div> 55 <div class="error" tal:condition="widget/error"> 56 <span tal:replace="structure widget/error">error</span> 57 </div> 58 </td> 59 </tr> 60 </tal:block> 61 </tbody> 62 </table> 63 64 <div id="actionsView"> 65 <span class="actionButtons" tal:condition="view/availableActions"> 66 <span tal:repeat="action view/actions" 67 tal:omit-tag=""> 68 <input tal:condition="python:action.label in view.taboneactions" 69 tal:replace="structure action/render"/> 70 </span> 71 </span> 72 </div> 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" 39 tal:attributes="for widget/name"> 40 <span class="required" tal:condition="widget/required" 41 >*</span><span i18n:translate="" 42 tal:content="widget/label">label</span> 43 </label> 44 <label tal:condition="python:not hint" 45 tal:attributes="for widget/name"> 46 <span class="required" tal:condition="widget/required" 47 >*</span><span i18n:translate="" 48 tal:content="widget/label">label</span> 49 </label>: 50 </td> 51 <td class="field"> 52 <div class="widget" tal:content="structure widget"> 53 <input type="text" /> 54 </div> 55 <div class="error" tal:condition="widget/error"> 56 <span tal:replace="structure widget/error">error</span> 57 </div> 58 </td> 59 </tr> 60 </tal:block> 61 </tbody> 62 </table> 63 64 <div class="actionButtons" tal:condition="view/availableActions"> 65 <span tal:repeat="action view/actions" 66 tal:omit-tag=""> 67 <input tal:condition="python:action.label in view.taboneactions" 68 tal:replace="structure action/render"/> 69 </span> 70 </div> 73 71 74 72 </div> … … 100 98 </table> 101 99 <br /><br /> 102 <div id="actionsView"> 103 <span class="actionButtons" tal:condition="view/availableActions"> 104 <span tal:repeat="action view/actions" 105 tal:omit-tag=""> 106 <input tal:condition="python:action.label in view.tabtwoactions" 107 tal:replace="structure action/render"/> 108 </span> 109 </span> 110 </div> 100 <div class="actionButtons" tal:condition="view/availableActions"> 101 <span tal:repeat="action view/actions" 102 tal:omit-tag=""> 103 <input tal:condition="python:action.label in view.tabtwoactions" 104 tal:replace="structure action/render"/> 105 </span> 106 </div> 111 107 </div> 112 108 … … 137 133 </table> 138 134 <br /><br /> 139 <div id="actionsView"> 140 <span class="actionButtons" tal:condition="view/availableActions"> 141 <span tal:repeat="action view/actions" 142 tal:omit-tag=""> 143 <input tal:condition="python:action.label in view.tabthreeactions" 144 tal:replace="structure action/render"/> 145 </span> 146 </span> 147 </div> 135 <div class="actionButtons" tal:condition="view/availableActions"> 136 <span tal:repeat="action view/actions" 137 tal:omit-tag=""> 138 <input tal:condition="python:action.label in view.tabthreeactions" 139 tal:replace="structure action/render"/> 140 </span> 141 </div> 148 142 </div> 149 143 150 144 <div id="tab-4"> 151 <h3>Manage local roles</h3> 145 <br /> 146 <table class="display dataTableManage"> 147 <thead> 148 <tr> 149 <th> </th><th>User</th><th>Local Role</th> 150 </tr> 151 </thead> 152 <tbody> 153 <tr tal:repeat="entry view/getUsersWithLocalRoles" 154 class="gradeB"> 155 <td> 156 <input type="checkbox" name="role_id" 157 tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> 158 </td> 159 <td tal:content="entry/user_title">User 160 </td> 161 <td tal:content="entry/local_role_title"> 162 Local Role 163 </td> 164 </tr> 165 </tbody> 166 </table> 167 <div class="actionButtons" tal:condition="view/availableActions"> 168 <span tal:repeat="action view/actions" 169 tal:omit-tag=""> 170 <input tal:condition="python:action.label in view.tabfouractions1" 171 tal:replace="structure action/render"/> 172 </span> 173 </div> 174 <br /><br /> 152 175 <table class="zebra"> 153 176 <tr> 154 <td>155 <label>User:</label>156 </td>157 177 <td> 158 178 <select id="user" name="user" tal:repeat="user view/getUsers"> … … 161 181 </option> 162 182 </select> 163 </td>164 </tr>165 <tr>166 <td>167 <label>Local Role:</label>168 183 </td> 169 184 <td> … … 174 189 </select> 175 190 </td> 191 <td> 192 <div class="actionButtons" tal:condition="view/availableActions"> 193 <span tal:repeat="action view/actions" 194 tal:omit-tag=""> 195 <input tal:condition="python:action.label in view.tabfouractions2" 196 tal:replace="structure action/render"/> 197 </span> 198 </div> 199 </td> 200 176 201 </tr> 177 202 </table> 178 179 <div id="actionsView"> 180 <span class="actionButtons" tal:condition="view/availableActions"> 181 <span tal:repeat="action view/actions" 182 tal:omit-tag=""> 183 <input tal:condition="python:action.label in view.tabfouractions" 184 tal:replace="structure action/render"/> 185 </span> 186 </span> 187 </div> 188 </div> 189 203 </div> 190 204 </div> 191 205 </form>
Note: See TracChangeset for help on using the changeset viewer.