- Timestamp:
- 20 May 2011, 15:45:42 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/departmentmanagepage.pt
r6172 r6176 1 <h2 i18n:translate="" 2 tal:condition="view/label" 3 tal:content="view/label">Label</h2> 4 5 <div class="form-status" 6 tal:define="status view/status" 7 tal:condition="status"> 8 9 <div i18n:translate="" tal:content="view/status">10 Form status summary1 <h2 i18n:translate="" tal:condition="view/label" tal:content="view/label">Label</h2> 2 <div class="form-status" tal:define="status view/status" tal:condition="status"> 3 <div i18n:translate="" tal:content="view/status"> Form status summary 4 </div> 5 <ul class="errors" tal:condition="view/errors"> 6 <li tal:repeat="error view/error_views"> 7 <span tal:replace="structure error">Error Type 8 </span> 9 </li> 10 </ul> 11 11 </div> 12 13 <ul class="errors" tal:condition="view/errors"> 14 <li tal:repeat="error view/error_views"> 15 <span tal:replace="structure error">Error Type</span> 16 </li> 17 </ul> 18 </div> 19 20 21 <form action="." tal:attributes="action request/URL" method="POST" 22 class="edit-form" enctype="multipart/form-data"> 23 24 <div id="tabs"> 25 <ul> 26 <li><a href="#tab-1"><span>Settings</span></a></li> 27 <li><a href="#tab-2">Courses</a></li> 28 <li><a href="#tab-3">Certificates</a></li> 29 <li><a href="#tab-4">Local Roles</a></li> 30 </ul> 31 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 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> 71 72 </div> 73 74 <div id="tab-2"> 75 <br /> 76 <table class="display dataTableManage"> 77 <thead> 78 <tr> 79 <th> </th><th>Code</th><th>Title</th> 80 </tr> 81 </thead> 82 <tbody> 83 <tr tal:repeat="entry view/getCourses" 84 class="gradeB"> 85 <td> 86 <input type="checkbox" name="val_id" tal:attributes="value entry/name" /> 87 </td> 88 <td> 89 <a href="" 90 tal:attributes="href entry/url" 91 tal:content="entry/name">Name</a> 92 </td> 93 <td tal:content="entry/container/title"> 94 Title 95 </td> 96 </tr> 97 </tbody> 98 </table> 99 <br /><br /> 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> 107 </div> 108 109 <div id="tab-3"> 110 <br /> 111 <table class="display dataTableManage"> 112 <thead> 113 <tr> 114 <th> </th><th>Code</th><th>Title</th> 115 </tr> 116 </thead> 117 <tbody> 118 <tr tal:repeat="entry view/getCertificates" 119 class="gradeB"> 120 <td> 121 <input type="checkbox" name="val_id" tal:attributes="value entry/name" /> 122 </td> 123 <td> 124 <a href="" 125 tal:attributes="href entry/url" 126 tal:content="entry/name">Name</a> 127 </td> 128 <td tal:content="entry/container/title"> 129 Title 130 </td> 131 </tr> 132 </tbody> 133 </table> 134 <br /><br /> 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> 142 </div> 143 144 <div id="tab-4"> 145 <br /> 146 <table class="display dataTableManage"> 147 <thead> 148 <tr> 149 <th> </th><th>User Id</th><th>Name</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_name"> 160 USERNAME 161 </td> 162 <td tal:content="entry/user_title"> 163 USERTITLE 164 </td> 165 <td tal:content="entry/local_role_title"> 166 LOCAL ROLE 167 </td> 168 </tr> 169 </tbody> 170 </table> 171 <br /><br /> 172 <div class="actionButtons" tal:condition="view/availableActions"> 173 <span tal:repeat="action view/actions" 174 tal:omit-tag=""> 175 <input tal:condition="python:action.label in view.tabfouractions1" 176 tal:replace="structure action/render"/> 177 </span> 178 </div> 179 <br /><br /> 180 <table class="zebra"> 181 <tr> 182 <td> 183 <select id="user" name="user"> 184 <option tal:attributes="value user/name" tal:repeat="user view/getUsers"> 185 <span tal:replace="user/val/description">USERTITLE</span> 186 </option> 187 </select> 188 </td> 189 <td> 190 <select id="local_role" name="local_role"> 191 <option tal:attributes="value localrole/name" tal:repeat="localrole view/getLocalRoles"> 192 <span tal:replace="localrole/title">LOCALROLETITLE</span> 193 </option> 194 </select> 195 </td> 196 <td> 12 <form action="." tal:attributes="action request/URL" method="POST" class="edit-form" enctype="multipart/form-data"> 13 <div id="tabs"> 14 <ul> 15 <li> 16 <a href="#tab-1"> 17 <span>Settings 18 </span></a> 19 </li> 20 <li> 21 <a href="#tab-2">Courses</a></li> 22 <li> 23 <a href="#tab-3">Certificates</a> 24 </li> 25 <li> 26 <a href="#tab-4">Local Roles</a> 27 </li> 28 </ul> 29 <div id="tab-1"> 30 <table class="zebra"> 31 <tbody> 32 <tal:block repeat="widget view/widgets"> 33 <tr> 34 <td class="label" tal:define="hint widget/hint"> 35 <label tal:condition="python:hint" tal:attributes="for widget/name"> 36 <span class="required" tal:condition="widget/required">* 37 </span> 38 <span i18n:translate="" tal:content="widget/label">label 39 </span> 40 </label> 41 <label tal:condition="python:not hint" tal:attributes="for widget/name"> 42 <span class="required" tal:condition="widget/required">* 43 </span> 44 <span i18n:translate="" tal:content="widget/label">label 45 </span> 46 </label>: 47 </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> 56 </td> 57 </tr> 58 </tal:block> 59 </tbody> 60 </table> 197 61 <div class="actionButtons" tal:condition="view/availableActions"> 198 <span tal:repeat="action view/actions" 199 tal:omit-tag=""> 200 <input tal:condition="python:action.label in view.tabfouractions2" 201 tal:replace="structure action/render"/> 62 <span tal:repeat="action view/actions" tal:omit-tag=""> 63 <input tal:condition="python:action.label in view.taboneactions" tal:replace="structure action/render"/> 202 64 </span> 203 65 </div> 204 </td> 205 206 </tr> 207 </table> 208 </div> 209 </div> 210 </form> 211 212 213 66 </div> 67 <div id="tab-2"> <br /> 68 <table class="display dataTableManage"> 69 <thead> 70 <tr> 71 <th> </th> 72 <th>Code</th> 73 <th>Title</th> 74 </tr> 75 </thead> 76 <tbody> 77 <tr tal:repeat="entry view/getCourses" class="gradeB"> <td> 78 <input type="checkbox" name="val_id" tal:attributes="value entry/name" /> </td> <td> 79 <a href="" tal:attributes="href entry/url" tal:content="entry/name">Name</a> </td> 80 <td tal:content="entry/container/title"> Title </td> 81 </tr> 82 </tbody> 83 </table> <br /><br /> 84 <div class="actionButtons" tal:condition="view/availableActions"> 85 <span tal:repeat="action view/actions" tal:omit-tag=""> 86 <input tal:condition="python:action.label in view.tabtwoactions" tal:replace="structure action/render"/> 87 </span> 88 </div> 89 </div> 90 <div id="tab-3"> <br /> 91 <table class="display dataTableManage"> 92 <thead> 93 <tr> 94 <th> </th> 95 <th>Code</th> 96 <th>Title</th> 97 </tr> 98 </thead> 99 <tbody> 100 <tr tal:repeat="entry view/getCertificates" class="gradeB"> 101 <td> 102 <input type="checkbox" name="val_id" tal:attributes="value entry/name" /> 103 </td> 104 <td> 105 <a href="" tal:attributes="href entry/url" tal:content="entry/name">Name</a> 106 </td> 107 <td tal:content="entry/container/title"> Title 108 </td> 109 </tr> 110 </tbody> 111 </table> <br /><br /> 112 <div class="actionButtons" tal:condition="view/availableActions"> 113 <span tal:repeat="action view/actions" tal:omit-tag=""> 114 <input tal:condition="python:action.label in view.tabthreeactions" tal:replace="structure action/render"/> 115 </span> 116 </div> 117 </div> 118 <div id="tab-4"> <br /> 119 <table class="display dataTableManage"> 120 <thead> 121 <tr> 122 <th> </th> 123 <th>User Id</th> 124 <th>Name</th> 125 <th>Local Role</th> 126 </tr> 127 </thead> 128 <tbody> 129 <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeB"> 130 <td> 131 <input type="checkbox" name="role_id" tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> 132 </td> 133 <td tal:content="entry/user_name"> USERNAME </td> 134 <td tal:content="entry/user_title"> USERTITLE </td> 135 <td tal:content="entry/local_role_title"> LOCAL ROLE </td> 136 </tr> 137 </tbody> 138 </table> <br /><br /> 139 <div class="actionButtons" tal:condition="view/availableActions"> 140 <span tal:repeat="action view/actions" tal:omit-tag=""> 141 <input tal:condition="python:action.label in view.tabfouractions1" tal:replace="structure action/render"/> 142 </span> 143 </div> <br /><br /> 144 <table class="zebra"> 145 <tr> 146 <td> 147 <select id="user" name="user"> 148 <option tal:attributes="value user/name" tal:repeat="user view/getUsers"> 149 <span tal:replace="user/val/description">USERTITLE 150 </span> 151 </option> 152 </select> 153 </td> 154 <td> 155 <select id="local_role" name="local_role"> 156 <option tal:attributes="value localrole/name" tal:repeat="localrole view/getLocalRoles"> 157 <span tal:replace="localrole/title">LOCALROLETITLE 158 </span> 159 </option> 160 </select> 161 </td> 162 <td> 163 <div class="actionButtons" tal:condition="view/availableActions"> 164 <span tal:repeat="action view/actions" tal:omit-tag=""> 165 <input tal:condition="python:action.label in view.tabfouractions2" tal:replace="structure action/render"/> 166 </span> 167 </div> 168 </td> 169 </tr> 170 </table> 171 </div> 172 </div> 173 </form>
Note: See TracChangeset for help on using the changeset viewer.