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