Changeset 6168 for main/waeup.sirp/trunk/src/waeup/sirp
- Timestamp:
- 20 May 2011, 12:14:25 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/facultymanagepage.pt
r6161 r6168 1 1 <h2 i18n:translate="" 2 tal:condition="view/label"3 tal:content="view/label">Label</h2>2 tal:condition="view/label" 3 tal:content="view/label">Label</h2> 4 4 5 5 <div class="form-status" 6 tal:define="status view/status"7 tal:condition="status">6 tal:define="status view/status" 7 tal:condition="status"> 8 8 9 <div i18n:translate="" tal:content="view/status">10 Form status summary11 </div>9 <div i18n:translate="" tal:content="view/status"> 10 Form status summary 11 </div> 12 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>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 18 </div> 19 19 20 20 21 21 <form action="." tal:attributes="action request/URL" method="POST" 22 class="edit-form" enctype="multipart/form-data"> 22 class="edit-form" enctype="multipart/form-data"> 23 23 24 <div id="tabs"> 25 <ul> 26 <li><a href="#tab-1"><span>Settings</span></a></li> 27 <li><a href="#tab-2"><span tal:content="view/subunits">Contents</span></a></li> 28 <li><a href="#tab-3"><span>Local Roles</span></a></li> 29 </ul> 30 31 <div id="tab-1"> 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> 24 <div id="tabs"> 25 <ul> 26 <li><a href="#tab-1"><span>Settings</span></a></li> 27 <li><a href="#tab-2"> 28 <span tal:content="view/subunits">Contents</span> 29 </a></li> 30 <li><a href="#tab-3"><span>Local Roles</span></a></li> 31 </ul> 62 32 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"/> 68 </span> 33 <div id="tab-1"> 34 <table class="zebra"> 35 <tbody> 36 <tal:block repeat="widget view/widgets"> 37 <tr> 38 <td class="label" tal:define="hint widget/hint"> 39 <label tal:condition="python:hint" 40 tal:attributes="for widget/name"> 41 <span class="required" tal:condition="widget/required" 42 >*</span><span i18n:translate="" 43 tal:content="widget/label">label</span> 44 </label> 45 <label tal:condition="python:not hint" 46 tal:attributes="for widget/name"> 47 <span class="required" tal:condition="widget/required" 48 >*</span><span i18n:translate="" 49 tal:content="widget/label">label</span> 50 </label>: 51 </td> 52 <td class="field"> 53 <div class="widget" tal:content="structure widget"> 54 <input type="text" /> 55 </div> 56 <div class="error" tal:condition="widget/error"> 57 <span tal:replace="structure widget/error">error</span> 58 </div> 59 </td> 60 </tr> 61 </tal:block> 62 </tbody> 63 </table> 64 65 <div 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 </div> 72 69 73 </div> 70 74 71 </div> 72 73 <div id="tab-2"> 74 <h3 tal:content="view/subunits">Departments</h3> 75 <table class="zebra"> 76 <thead> 77 <tr> 78 <th> </th><th>Code</th><th>Title</th> 79 </tr> 80 </thead> 81 <tbody> 82 <tr tal:repeat="dep context/values"> 83 <td> 84 <input type="checkbox" 85 name="val_id" 86 tal:attributes="value dep/code" /> 87 </td> 88 <td> 89 <a tal:attributes="href python: view.url(dep)" 90 tal:content="dep/__name__"> 91 ID 92 </a> 93 </td> 94 <td> 95 <span tal:content="dep/title"> 96 ID 97 </span> 98 </td> 99 </tr> 100 </tbody> 101 </table> 102 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"/> 108 </span> 75 <div id="tab-2"> 76 <h3 tal:content="view/subunits">Departments</h3> 77 <table class="zebra"> 78 <thead> 79 <tr> 80 <th> </th><th>Code</th><th>Title</th> 81 </tr> 82 </thead> 83 <tbody> 84 <tr tal:repeat="dep context/values"> 85 <td> 86 <input type="checkbox" 87 name="val_id" 88 tal:attributes="value dep/code" /> 89 </td> 90 <td> 91 <a tal:attributes="href python: view.url(dep)" 92 tal:content="dep/__name__"> 93 ID 94 </a> 95 </td> 96 <td> 97 <span tal:content="dep/title"> 98 ID 99 </span> 100 </td> 101 </tr> 102 </tbody> 103 </table> 104 105 <div class="actionButtons" tal:condition="view/availableActions"> 106 <span tal:repeat="action view/actions" 107 tal:omit-tag=""> 108 <input tal:condition="python:action.label in view.tabtwoactions" 109 tal:replace="structure action/render"/> 110 </span> 111 </div> 109 112 </div> 110 </div>111 113 112 <div id="tab-3"> 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> 114 <div id="tab-3"> 115 <br /> 116 <table class="display dataTableManage"> 117 <thead> 118 <tr> 119 <th> </th><th>User</th><th>Local Role</th> 120 </tr> 121 </thead> 122 <tbody> 123 <tr tal:repeat="entry view/getUsersWithLocalRoles" 124 class="gradeB"> 125 <td> 126 <input type="checkbox" name="role_id" 127 tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> 128 </td> 129 <td tal:content="entry/user_title">User 130 </td> 131 <td tal:content="entry/local_role_title"> 132 Local Role 133 </td> 134 </tr> 135 </tbody> 136 </table> 137 <div class="actionButtons" tal:condition="view/availableActions"> 138 <span tal:repeat="action view/actions" 139 tal:omit-tag=""> 140 <input tal:condition="python:action.label in view.tabthreeactions1" 141 tal:replace="structure action/render"/> 142 </span> 143 </div> 144 <br /><br /> 145 <table class="zebra"> 146 <tr> 147 <td> 148 <select id="user" name="user" tal:repeat="user view/getUsers"> 149 <option tal:attributes="value user/name"> 150 <span tal:replace="user/val/description">USERTITLE</span> 151 </option> 152 </select> 153 </td> 154 <td> 155 <select id="local_role" name="local_role" 156 tal:repeat="localrole view/getLocalRoles"> 157 <option tal:attributes="value localrole/name"> 158 <span tal:replace="localrole/title">LOCALROLETITLE</span> 159 </option> 160 </select> 161 </td> 162 <td> 163 <div class="actionButtons" tal:condition="view/availableActions"> 164 <span tal:repeat="action view/actions" 165 tal:omit-tag=""> 166 <input tal:condition="python:action.label in view.tabthreeactions2" 167 tal:replace="structure action/render"/> 168 </span> 169 </div> 170 </td> 171 </tr> 172 </table> 141 173 </div> 142 <br /><br />143 <table class="zebra">144 <tr>145 <td>146 <select id="user" name="user" tal:repeat="user view/getUsers">147 <option tal:attributes="value user/name">148 <span tal:replace="user/val/description">USERTITLE</span>149 </option>150 </select>151 </td>152 <td>153 <select id="local_role" name="local_role" tal:repeat="localrole view/getLocalRoles">154 <option tal:attributes="value localrole/name">155 <span tal:replace="localrole/title">LOCALROLETITLE</span>156 </option>157 </select>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>168 </tr>169 </table>170 </div>171 174 172 </div>173 </form> 175 </div> 176 </form> 174 177 175 178
Note: See TracChangeset for help on using the changeset viewer.