Changeset 7443 for main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/browser/templates/facultymanagepage.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/facultymanagepage.pt
r7213 r7443 1 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"> Form Status: 2 <div class="alert-message error" tal:define="status view/status" 3 tal:condition="status"> Form Status: 3 4 <span i18n:translate="" tal:content="view/status"> Form status summary 4 5 </span> 5 6 </div> 6 <form action="." tal:attributes="action request/URL" method="POST" class="edit-form"enctype="multipart/form-data">7 < div id="tabs">8 < ul>9 <li>10 < a href="#tab-1">11 <span>Settings12 </span></a>13 </li>14 <li>15 < a href="#tab-2">16 <span tal:content="view/subunits">Contents17 </span> </a>18 </li>19 <li>20 < a href="#tab-3">21 <span>Local Roles22 </span></a>23 </li>24 </ul>25 <div id="tab-1" >26 <table class=" zebra">7 <form action="." tal:attributes="action request/URL" method="POST" enctype="multipart/form-data"> 8 <ul class="tabs" data-tabs="tabs"> 9 <li class="active"> 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 class="tab-content"> 26 <div id="tab-1" class="active"> 27 <table class="form-table"> 27 28 <tbody> 28 29 <tal:block repeat="widget view/widgets"> 29 30 <tr> 30 <td class="label">31 <td> 31 32 <label tal:attributes="for widget/name"> 32 <span class="required"tal:condition="widget/required">*33 <span tal:condition="widget/required">* 33 34 </span> 34 35 <span i18n:translate="" tal:content="widget/label">label 35 36 </span>: 36 37 </label> </td> 37 <td class="field">38 <span class="widget"tal:content="structure widget">38 <td> 39 <span tal:content="structure widget"> 39 40 <input type="text" /> 40 41 </span> … … 44 45 </tal:error> 45 46 <tal:hint tal:condition="widget/hint"> 46 <span class="hint"tal:content="structure widget/hint">hint47 <span tal:content="structure widget/hint">hint 47 48 </span> 48 49 </tal:hint> </td> … … 51 52 </tbody> 52 53 </table> 53 <div class="actionButtons"tal:condition="view/availableActions">54 <div tal:condition="view/availableActions"> 54 55 <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 <input tal:condition="python:action.label in view.taboneactions" 57 tal:replace="structure action/render"/> 56 58 </span> 57 59 </div> … … 59 61 <div id="tab-2"> 60 62 <h3 tal:content="view/subunits">Departments</h3> 61 <table class="zebra">63 <table> 62 64 <thead> 63 65 <tr> … … 72 74 <tbody> 73 75 <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 <input type="checkbox" name="val_id" 77 tal:attributes="value dep/code" /> </td> <td> 78 <a tal:attributes="href python: view.url(dep)" 79 tal:content="dep/__name__"> ID</a> </td> <td> 76 80 <span tal:content="dep/title">ID 77 81 </span> </td> … … 79 83 </tbody> 80 84 </table> 81 <div class="actionButtons"tal:condition="view/availableActions">85 <div tal:condition="view/availableActions"> 82 86 <span tal:repeat="action view/actions" tal:omit-tag=""> 83 <input tal:condition="python:action.label in view.tabtwoactions" tal:replace="structure action/render"/> 87 <input tal:condition="python:action.label in view.tabtwoactions" 88 tal:replace="structure action/render"/> 84 89 </span> 85 90 </div> … … 100 105 </thead> 101 106 <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> 107 <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeC"> <td> 108 <input type="checkbox" name="role_id" 109 tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td> 104 110 <td tal:content="entry/user_name"> USERNAME </td> 105 111 <td tal:content="entry/user_title"> USERTITLE </td> … … 108 114 </tbody> 109 115 </table> 110 <div class="actionButtons"tal:condition="view/availableActions">116 <div tal:condition="view/availableActions"> 111 117 <span tal:repeat="action view/actions" tal:omit-tag=""> 112 <input tal:condition="python:action.label in view.tabthreeactions1" tal:replace="structure action/render"/> 118 <input tal:condition="python:action.label in view.tabthreeactions1" 119 tal:replace="structure action/render"/> 113 120 </span> 114 121 </div><br /><br /> 115 <table class=" zebra">122 <table class="form-table"> 116 123 <tr> <td> 117 124 <select id="user" name="user"> … … 122 129 </select> </td> <td> 123 130 <select id="local_role" name="local_role"> 124 <option tal:repeat="localrole view/getLocalRoles" tal:attributes="value localrole/name"> 131 <option tal:repeat="localrole view/getLocalRoles" 132 tal:attributes="value localrole/name"> 125 133 <span tal:replace="localrole/title">LOCALROLETITLE 126 134 </span> … … 129 137 <div tal:condition="view/availableActions"> 130 138 <span tal:repeat="action view/actions" tal:omit-tag=""> 131 <input tal:condition="python:action.label in view.tabthreeactions2" tal:replace="structure action/render"/> 139 <input tal:condition="python:action.label in view.tabthreeactions2" 140 tal:replace="structure action/render"/> 132 141 </span> 133 142 </div> </td>
Note: See TracChangeset for help on using the changeset viewer.