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