Changeset 6161 for main/waeup.sirp/trunk/src/waeup/sirp/browser/templates
- Timestamp:
- 20 May 2011, 09:39:59 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/browser/templates
- Files:
-
- 2 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> -
main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/facultymanagepage.pt
r6130 r6161 30 30 31 31 <div id="tab-1"> 32 33 <tbody>34 <tal:block repeat="widget view/widgets">35 <tr>36 <td class="label" tal:define="hint widget/hint">37 38 39 40 41 42 43 44 45 46 47 48 49 </td>50 <td class="field">51 52 53 54 55 56 57 </td>58 </tr>59 </tal:block>60 </tbody>61 32 <table class="zebra"> 33 <tbody> 34 <tal:block repeat="widget view/widgets"> 35 <tr> 36 <td class="label" tal:define="hint widget/hint"> 37 <label tal:condition="python:hint" 38 tal:attributes="for widget/name"> 39 <span class="required" tal:condition="widget/required" 40 >*</span><span i18n:translate="" 41 tal:content="widget/label">label</span> 42 </label> 43 <label tal:condition="python:not hint" 44 tal:attributes="for widget/name"> 45 <span class="required" tal:condition="widget/required" 46 >*</span><span i18n:translate="" 47 tal:content="widget/label">label</span> 48 </label>: 49 </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</span> 56 </div> 57 </td> 58 </tr> 59 </tal:block> 60 </tbody> 61 </table> 62 62 63 <div id="actionsView"> 64 <span 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> 63 <div class="actionButtons" tal:condition="view/availableActions"> 64 <span tal:repeat="action view/actions" 65 tal:omit-tag=""> 66 <input tal:condition="python:action.label in view.taboneactions" 67 tal:replace="structure action/render"/> 70 68 </span> 71 </div> 69 </div> 72 70 73 71 </div> … … 75 73 <div id="tab-2"> 76 74 <h3 tal:content="view/subunits">Departments</h3> 77 <table class="zebra">75 <table class="zebra"> 78 76 <thead> 79 77 <tr> … … 101 99 </tr> 102 100 </tbody> 103 </table>101 </table> 104 102 105 <div id="actionsView"> 106 <span class="actionButtons" tal:condition="view/availableActions"> 107 <span tal:repeat="action view/actions" 108 tal:omit-tag=""> 109 <input tal:condition="python:action.label in view.tabtwoactions" 110 tal:replace="structure action/render"/> 111 </span> 103 <div 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"/> 112 108 </span> 113 </div> 109 </div> 114 110 </div> 115 111 116 112 <div id="tab-3"> 117 <h3>Manage local roles</h3> 113 <br /> 114 <table class="display dataTableManage"> 115 <thead> 116 <tr> 117 <th> </th><th>User</th><th>Local Role</th> 118 </tr> 119 </thead> 120 <tbody> 121 <tr tal:repeat="entry view/getUsersWithLocalRoles" 122 class="gradeB"> 123 <td> 124 <input type="checkbox" name="role_id" 125 tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> 126 </td> 127 <td tal:content="entry/user_title">User 128 </td> 129 <td tal:content="entry/local_role_title"> 130 Local Role 131 </td> 132 </tr> 133 </tbody> 134 </table> 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.tabthreeactions1" 139 tal:replace="structure action/render"/> 140 </span> 141 </div> 142 <br /><br /> 118 143 <table class="zebra"> 119 144 <tr> 120 <td>121 <label>User:</label>122 </td>123 145 <td> 124 146 <select id="user" name="user" tal:repeat="user view/getUsers"> … … 127 149 </option> 128 150 </select> 129 </td>130 </tr>131 <tr>132 <td>133 <label>Local Role:</label>134 151 </td> 135 152 <td> … … 140 157 </select> 141 158 </td> 159 <td> 160 <div class="actionButtons" tal:condition="view/availableActions"> 161 <span tal:repeat="action view/actions" 162 tal:omit-tag=""> 163 <input tal:condition="python:action.label in view.tabthreeactions2" 164 tal:replace="structure action/render"/> 165 </span> 166 </div> 167 </td> 142 168 </tr> 143 169 </table> 144 145 <div id="actionsView">146 <span class="actionButtons" tal:condition="view/availableActions">147 <span tal:repeat="action view/actions"148 tal:omit-tag="">149 <input tal:condition="python:action.label in view.tabthreeactions"150 tal:replace="structure action/render"/>151 </span>152 </span>153 </div>154 170 </div> 155 171
Note: See TracChangeset for help on using the changeset viewer.