Changeset 7443 for main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/browser/templates/certificatemanagepage.pt
- Timestamp:
- 9 Jan 2012, 15:55:34 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/browser/templates/certificatemanagepage.pt
r7335 r7443 3 3 tal:content="view/label">Label</h2> 4 4 5 <div class=" form-status"5 <div class="alert-message error" 6 6 tal:define="status view/status" 7 7 tal:condition="status"> … … 13 13 14 14 <form action="." tal:attributes="action request/URL" method="POST" 15 class="edit-form"enctype="multipart/form-data">15 enctype="multipart/form-data"> 16 16 17 <div id="tabs"> 18 <ul> 19 <li><a href="#tab-1"><span>Settings</span></a></li> 17 <ul class="tabs" data-tabs="tabs"> 18 <li class="active"><a href="#tab-1"><span>Settings</span></a></li> 20 19 <li><a href="#tab-2"><span>Course Referrers</span></a></li> 21 20 <li><a href="#tab-3"><span>Local Roles</span></a></li> 22 21 </ul> 23 22 24 <div id="tab-1"> 25 <table class="zebra"> 23 <div class="tab-content"> 24 <div id="tab-1" class="active"> 25 <table class="form-table"> 26 <tbody> 27 <tal:block repeat="widget view/widgets"> 28 <tr> 29 <td> 30 <label tal:attributes="for widget/name"> 31 <span tal:condition="widget/required">*</span> 32 <span i18n:translate="" tal:content="widget/label">label</span>: 33 </label> 34 </td> 35 <td> 36 <span tal:content="structure widget"> 37 <input type="text" /> 38 </span> 39 <tal:error tal:condition="widget/error"> 40 <span tal:replace="structure widget/error">error</span> 41 </tal:error> 42 <tal:hint tal:condition="widget/hint"> 43 <span tal:content="structure widget/hint">hint</span> 44 </tal:hint> 45 </td> 46 </tr> 47 </tal:block> 48 </tbody> 49 </table> 50 <div tal:condition="view/availableActions"> 51 <span tal:repeat="action view/actions" 52 tal:omit-tag=""> 53 <input tal:condition="python:action.label in view.taboneactions" 54 tal:replace="structure action/render"/> 55 </span> 56 </div> 57 </div> 58 <div id="tab-2"> 59 <h3>Course Referrers</h3> 60 <table class="display dataTableManage"> 61 <thead> 62 <tr> 63 <th> </th><th>Level</th><th>Semester</th><th>Referrer</th><th>Course</th><th>Title</th> 64 <th>Mandatory</th> 65 </tr> 66 </thead> 26 67 <tbody> 27 <tal:block repeat="widget view/widgets"> 28 <tr> 29 <td class="label"> 30 <label tal:attributes="for widget/name"> 31 <span class="required" tal:condition="widget/required">*</span> 32 <span i18n:translate="" tal:content="widget/label">label</span>: 33 </label> 68 <tr tal:repeat="cc context/values"> 69 <td> 70 <input type="checkbox" 71 name="val_id" 72 tal:attributes="value cc/__name__" /> 34 73 </td> 35 <td class="field">36 <span class="widget" tal:content="structure widget">37 <input type="text" />74 <td> 75 <span tal:content="cc/level"> 76 LEVEL 38 77 </span> 39 <tal:error tal:condition="widget/error"> 40 <span tal:replace="structure widget/error">error</span> 41 </tal:error> 42 <tal:hint tal:condition="widget/hint"> 43 <span class="hint" tal:content="structure widget/hint">hint</span> 44 </tal:hint> 78 </td> 79 <td tal:content="cc/course/semester">SEMESTER</td> 80 <td> 81 <a tal:attributes="href python: view.url(cc)" 82 tal:content="cc/__name__"> 83 REFERRER CODE 84 </a> 85 </td> 86 <td> 87 <a tal:attributes="href python:view.url(cc.course)" 88 tal:content="cc/course/code"> 89 COURSE CODE 90 </a> 91 </td> 92 <td> 93 <span tal:content="cc/course/title"> 94 COURSE TITLE 95 </span> 96 </td> 97 <td> 98 <span tal:content="cc/core_or_elective"> 99 MANDATORY 100 </span> 45 101 </td> 46 102 </tr> 47 </tal:block>48 103 </tbody> 49 </table> 50 <div class="actionButtons" tal:condition="view/availableActions"> 51 <span tal:repeat="action view/actions" 52 tal:omit-tag=""> 53 <input tal:condition="python:action.label in view.taboneactions" 54 tal:replace="structure action/render"/> 55 </span> 56 </div> 57 </div> 58 <div id="tab-2"> 59 <h3>Course Referrers</h3> 60 <table class="display dataTableManage"> 61 <thead> 62 <tr> 63 <th> </th><th>Level</th><th>Semester</th><th>Referrer</th><th>Course</th><th>Title</th> 64 <th>Mandatory</th> 104 </table> 105 <div 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> 112 </div> 113 <div id="tab-3"> <br /> 114 <table class="display dataTableManage"> 115 <thead> 116 <tr> 117 <th> 118 </th> 119 <th>User Id 120 </th> 121 <th>Name 122 </th> 123 <th>Local Role 124 </th> 125 </tr> 126 </thead> 127 <tbody> 128 <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeC"> <td> 129 <input type="checkbox" name="role_id" tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td> 130 <td tal:content="entry/user_name"> USERNAME </td> 131 <td tal:content="entry/user_title"> USERTITLE </td> 132 <td tal:content="entry/local_role_title"> LOCAL ROLE </td> 133 </tr> 134 </tbody> 135 </table> 136 <div tal:condition="view/availableActions"> 137 <span tal:repeat="action view/actions" tal:omit-tag=""> 138 <input tal:condition="python:action.label in view.tabthreeactions1" tal:replace="structure action/render"/> 139 </span> 140 </div><br /><br /> 141 <table class="form-table"> 142 <tr> <td> 143 <select id="user" name="user"> 144 <option tal:repeat="user view/getUsers" tal:attributes="value user/name"> 145 <span tal:replace="user/val/title">USERTITLE 146 </span> 147 </option> 148 </select> </td> <td> 149 <select id="local_role" name="local_role"> 150 <option tal:repeat="localrole view/getLocalRoles" tal:attributes="value localrole/name"> 151 <span tal:replace="localrole/title">LOCALROLETITLE 152 </span> 153 </option> 154 </select> </td> <td> 155 <div tal:condition="view/availableActions"> 156 <span tal:repeat="action view/actions" tal:omit-tag=""> 157 <input tal:condition="python:action.label in view.tabthreeactions2" tal:replace="structure action/render"/> 158 </span> 159 </div> </td> 65 160 </tr> 66 </thead> 67 <tbody> 68 <tr tal:repeat="cc context/values"> 69 <td> 70 <input type="checkbox" 71 name="val_id" 72 tal:attributes="value cc/__name__" /> 73 </td> 74 <td> 75 <span tal:content="cc/level"> 76 LEVEL 77 </span> 78 </td> 79 <td tal:content="cc/course/semester">SEMESTER</td> 80 <td> 81 <a tal:attributes="href python: view.url(cc)" 82 tal:content="cc/__name__"> 83 REFERRER CODE 84 </a> 85 </td> 86 <td> 87 <a tal:attributes="href python:view.url(cc.course)" 88 tal:content="cc/course/code"> 89 COURSE CODE 90 </a> 91 </td> 92 <td> 93 <span tal:content="cc/course/title"> 94 COURSE TITLE 95 </span> 96 </td> 97 <td> 98 <span tal:content="cc/core_or_elective"> 99 MANDATORY 100 </span> 101 </td> 102 </tr> 103 </tbody> 104 </table> 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> 161 </table> 111 162 </div> 112 163 </div> 113 <div id="tab-3"> <br />114 <table class="display dataTableManage">115 <thead>116 <tr>117 <th> 118 </th>119 <th>User Id120 </th>121 <th>Name122 </th>123 <th>Local Role124 </th>125 </tr>126 </thead>127 <tbody>128 <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeB"> <td>129 <input type="checkbox" name="role_id" tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td>130 <td tal:content="entry/user_name"> USERNAME </td>131 <td tal:content="entry/user_title"> USERTITLE </td>132 <td tal:content="entry/local_role_title"> LOCAL ROLE </td>133 </tr>134 </tbody>135 </table>136 <div class="actionButtons" tal:condition="view/availableActions">137 <span tal:repeat="action view/actions" tal:omit-tag="">138 <input tal:condition="python:action.label in view.tabthreeactions1" tal:replace="structure action/render"/>139 </span>140 </div><br /><br />141 <table class="zebra">142 <tr> <td>143 <select id="user" name="user">144 <option tal:repeat="user view/getUsers" tal:attributes="value user/name">145 <span tal:replace="user/val/title">USERTITLE146 </span>147 </option>148 </select> </td> <td>149 <select id="local_role" name="local_role">150 <option tal:repeat="localrole view/getLocalRoles" tal:attributes="value localrole/name">151 <span tal:replace="localrole/title">LOCALROLETITLE152 </span>153 </option>154 </select> </td> <td>155 <div tal:condition="view/availableActions">156 <span tal:repeat="action view/actions" tal:omit-tag="">157 <input tal:condition="python:action.label in view.tabthreeactions2" tal:replace="structure action/render"/>158 </span>159 </div> </td>160 </tr>161 </table>162 </div>163 </div>164 164 </form> 165 165
Note: See TracChangeset for help on using the changeset viewer.