- Timestamp:
- 20 May 2011, 13:48:33 (14 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
r6161 r6172 147 147 <thead> 148 148 <tr> 149 <th> </th><th>User </th><th>Local Role</th>149 <th> </th><th>User Id</th><th>Name</th><th>Local Role</th> 150 150 </tr> 151 151 </thead> … … 157 157 tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> 158 158 </td> 159 <td tal:content="entry/user_title">User 159 <td tal:content="entry/user_name"> 160 USERNAME 161 </td> 162 <td tal:content="entry/user_title"> 163 USERTITLE 160 164 </td> 161 165 <td tal:content="entry/local_role_title"> 162 L ocal Role166 LOCAL ROLE 163 167 </td> 164 168 </tr> 165 169 </tbody> 166 170 </table> 171 <br /><br /> 167 172 <div class="actionButtons" tal:condition="view/availableActions"> 168 173 <span tal:repeat="action view/actions" … … 176 181 <tr> 177 182 <td> 178 <select id="user" name="user" tal:repeat="user view/getUsers">179 <option tal:attributes="value user/name" >183 <select id="user" name="user"> 184 <option tal:attributes="value user/name" tal:repeat="user view/getUsers"> 180 185 <span tal:replace="user/val/description">USERTITLE</span> 181 186 </option> … … 183 188 </td> 184 189 <td> 185 <select id="local_role" name="local_role" tal:repeat="localrole view/getLocalRoles">186 <option tal:attributes="value localrole/name" >190 <select id="local_role" name="local_role"> 191 <option tal:attributes="value localrole/name" tal:repeat="localrole view/getLocalRoles"> 187 192 <span tal:replace="localrole/title">LOCALROLETITLE</span> 188 193 </option> -
main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/facultymanagepage.pt
r6171 r6172 26 26 <li><a href="#tab-1"><span>Settings</span></a></li> 27 27 <li><a href="#tab-2"> 28 28 <span tal:content="view/subunits">Contents</span> 29 29 </a></li> 30 30 <li><a href="#tab-3"><span>Local Roles</span></a></li> … … 33 33 <div id="tab-1"> 34 34 <table class="zebra"> 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 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 63 </table> 64 64 65 65 <div class="actionButtons" tal:condition="view/availableActions"> 66 67 68 69 70 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 71 </div> 72 72 … … 76 76 <h3 tal:content="view/subunits">Departments</h3> 77 77 <table class="zebra"> 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 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 103 </table> 104 105 104 <div class="actionButtons" tal:condition="view/availableActions"> 106 107 108 109 110 105 <span tal:repeat="action view/actions" 106 tal:omit-tag=""> 107 <input tal:condition="python:action.label in view.tabtwoactions" 108 tal:replace="structure action/render"/> 109 </span> 111 110 </div> 112 111 </div> … … 114 113 <div id="tab-3"> 115 114 <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> 115 <table class="display dataTableManage"> 116 <thead> 117 <tr> 118 <th> </th><th>User Id</th><th>Name</th><th>Local Role</th> 119 </tr> 120 </thead> 121 <tbody> 122 <tr tal:repeat="entry view/getUsersWithLocalRoles" 123 class="gradeB"> 124 <td> 125 <input type="checkbox" name="role_id" 126 tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> 127 </td> 128 <td tal:content="entry/user_name"> 129 USERNAME 130 </td> 131 <td tal:content="entry/user_title"> 132 USERTITLE 133 </td> 134 <td tal:content="entry/local_role_title"> 135 LOCAL ROLE 136 </td> 137 </tr> 138 </tbody> 139 </table> 140 <br /><br /> 137 141 <div class="actionButtons" tal:condition="view/availableActions"> 138 139 140 141 142 142 <span tal:repeat="action view/actions" 143 tal:omit-tag=""> 144 <input tal:condition="python:action.label in view.tabthreeactions1" 145 tal:replace="structure action/render"/> 146 </span> 143 147 </div> 144 148 <br /><br /> 145 149 <table class="zebra"> 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 150 <tr> 151 <td> 152 <select id="user" name="user"> 153 <option tal:repeat="user view/getUsers" 154 tal:attributes="value user/name"> 155 <span tal:replace="user/val/description">USERTITLE</span> 156 </option> 157 </select> 158 </td> 159 <td> 160 <select id="local_role" name="local_role"> 161 <option tal:repeat="localrole view/getLocalRoles" 162 tal:attributes="value localrole/name"> 163 <span tal:replace="localrole/title">LOCALROLETITLE</span> 164 </option> 165 </select> 166 </td> 167 <td> 168 <div class="actionButtons" tal:condition="view/availableActions"> 169 <span tal:repeat="action view/actions" 170 tal:omit-tag=""> 171 <input tal:condition="python:action.label in view.tabthreeactions2" 172 tal:replace="structure action/render"/> 173 </span> 174 </div> 175 </td> 176 </tr> 173 177 </table> 174 178 </div>
Note: See TracChangeset for help on using the changeset viewer.