Changeset 10999 for main/waeup.kofa/branches/uli-diazo-themed/src
- Timestamp:
- 29 Jan 2014, 11:23:13 (11 years ago)
- Location:
- main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/layout.py
r10990 r10999 100 100 msg = _('\'Are you sure?\'') 101 101 102 def __init__(self, label, style='', **options): 103 super(JSAction, self).__init__(label, **options) 104 self.style = style 105 if style == '': 106 self.style = 'default' 107 102 108 def render(self): 103 109 if not self.available(): … … 108 114 msg = translate(self.msg, context=self.form.request) 109 115 return ('<input type="submit" id="%s" name="%s" value="%s"' 110 ' class="btn" onclick="return confirmPost(%s)" />' % 111 (self.__name__, self.__name__, escape(label, quote=True), msg) 116 ' class="btn btn-%s" onclick="return confirmPost(%s)" />' % 117 (self.__name__, self.__name__, escape(label, quote=True), 118 self.style, msg) 112 119 ) 113 120 -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/certificatemanagepage.pt
r10995 r10999 35 35 <span i18n:domain="waeup.kofa" i18n:translate="">Courses</span> 36 36 </h3> 37 <table class="d isplay dataTableManage">37 <table class="dataTableManage"> 38 38 <thead> 39 39 <tr> … … 48 48 </thead> 49 49 <tbody> 50 <tr tal:repeat="cc context/values" class="gradeC">50 <tr tal:repeat="cc context/values"> 51 51 <td> 52 52 <input type="checkbox" name="val_id" … … 94 94 <div id="tab3" class="tab-pane"> 95 95 <br /> 96 <table class="d isplay dataTableManage">96 <table class="dataTableManage"> 97 97 <thead> 98 98 <tr> … … 108 108 </thead> 109 109 <tbody> 110 <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeC"> <td>110 <tr tal:repeat="entry view/getUsersWithLocalRoles"> <td> 111 111 <input type="checkbox" name="role_id" 112 112 tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td> … … 122 122 tal:replace="structure action/render"/> 123 123 </span> 124 </div><br /><br /> 125 <table class="form-table"> 126 <tr> <td> 127 <select id="user" name="user"> 128 <option tal:repeat="user view/getUsers" 129 tal:attributes="value user/name"> 130 <span tal:replace="user/val/title">USERTITLE 131 </span> 132 </option> 133 </select> </td> <td> 134 <select id="local_role" name="local_role"> 135 <option tal:repeat="localrole view/getLocalRoles" 136 tal:attributes="value localrole/name"> 137 <span tal:replace="localrole/title">LOCALROLETITLE 138 </span> 139 </option> 140 </select> </td> <td> 141 <div tal:condition="view/availableActions"> 142 <span tal:repeat="action view/actions" tal:omit-tag=""> 143 <input tal:condition="python:action.label in view.tabthreeactions2" 144 tal:replace="structure action/render"/> 145 </span> 146 </div> 147 </td> 148 </tr> 149 </table> 124 </div><br /><br /> 125 <div class="form-inline"> 126 <br /> 127 <div class="form-group"> 128 <select id="user" name="user"> 129 <option tal:repeat="user view/getUsers" 130 tal:attributes="value user/name"> 131 <span tal:replace="user/val/title">USERTITLE 132 </span> 133 </option> 134 </select> 135 </div> 136 <div class="form-group"> 137 <select id="local_role" name="local_role"> 138 <option tal:repeat="localrole view/getLocalRoles" 139 tal:attributes="value localrole/name"> 140 <span tal:replace="localrole/title">LOCALROLETITLE 141 </span> 142 </option> 143 </select> 144 </div> 145 <div class="form-group"> 146 <div tal:condition="view/availableActions"> 147 <span tal:repeat="action view/actions" tal:omit-tag=""> 148 <input tal:condition="python:action.label in view.tabthreeactions2" 149 tal:replace="structure action/render"/> 150 </span> 151 </div> 152 </div> 153 </div> 150 154 </div> 151 155 </div> -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/certificatepage.pt
r9320 r10999 23 23 </h3> 24 24 <br /> 25 <table i18n:domain="waeup.kofa" class="d isplay dataTable">25 <table i18n:domain="waeup.kofa" class="dataTable"> 26 26 <thead> 27 27 <tr> … … 35 35 </thead> 36 36 <tbody> 37 <tr tal:repeat="cc context/values" class="gradeC">37 <tr tal:repeat="cc context/values"> 38 38 <td> 39 39 <span tal:content="cc/level"> -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/configurationmanagepage.pt
r10995 r10999 27 27 <div id="tab2" class="tab-pane"> 28 28 <br /> 29 <table class="d isplay dataTableManage">29 <table class="dataTableManage"> 30 30 <thead> 31 31 <tr> … … 37 37 </thead> 38 38 <tbody> 39 <tr tal:repeat="entry view/getSessionConfigurations" 40 class="gradeC"><td>39 <tr tal:repeat="entry view/getSessionConfigurations"> 40 <td> 41 41 <input type="checkbox" name="val_id" 42 42 tal:attributes="value entry/name" /> </td> <td> -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/coursemanagepage.pt
r10995 r10999 28 28 <div id="tab3" class="tab-pane"> 29 29 <br /> 30 <table class="d isplay dataTableManage">30 <table class="dataTableManage"> 31 31 <thead> 32 32 <tr> … … 42 42 </thead> 43 43 <tbody> 44 <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeC"> <td>44 <tr tal:repeat="entry view/getUsersWithLocalRoles"> <td> 45 45 <input type="checkbox" name="role_id" 46 46 tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td> … … 56 56 tal:replace="structure action/render"/> 57 57 </span> 58 </div><br /><br /> 59 <table class="form-table"> 60 <tr> <td> 61 <select id="user" name="user"> 62 <option tal:repeat="user view/getUsers" 63 tal:attributes="value user/name"> 64 <span tal:replace="user/val/title">USERTITLE 58 </div><br /><br /> 59 <div class="form-inline"> 60 <br /> 61 <div class="form-group"> 62 <select id="user" name="user"> 63 <option tal:repeat="user view/getUsers" 64 tal:attributes="value user/name"> 65 <span tal:replace="user/val/title">USERTITLE 66 </span> 67 </option> 68 </select> 69 </div> 70 <div class="form-group"> 71 <select id="local_role" name="local_role"> 72 <option tal:repeat="localrole view/getLocalRoles" 73 tal:attributes="value localrole/name"> 74 <span tal:replace="localrole/title">LOCALROLETITLE 75 </span> 76 </option> 77 </select> 78 </div> 79 <div class="form-group"> 80 <div tal:condition="view/availableActions"> 81 <span tal:repeat="action view/actions" tal:omit-tag=""> 82 <input tal:condition="python:action.label in view.tabtwoactions2" 83 tal:replace="structure action/render"/> 65 84 </span> 66 </option> 67 </select> </td> <td> 68 <select id="local_role" name="local_role"> 69 <option tal:repeat="localrole view/getLocalRoles" 70 tal:attributes="value localrole/name"> 71 <span tal:replace="localrole/title">LOCALROLETITLE 72 </span> 73 </option> 74 </select> </td> <td> 75 <div tal:condition="view/availableActions"> 76 <span tal:repeat="action view/actions" tal:omit-tag=""> 77 <input tal:condition="python:action.label in view.tabtwoactions2" 78 tal:replace="structure action/render"/> 79 </span> 80 </div> </td> 81 </tr> 82 </table> 85 </div> 86 </div> 87 </div> 83 88 </div> 84 89 </div> -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/datacenterfinishedpage.pt
r9592 r10999 4 4 imports. The files contain the imported datasets. 5 5 </p> 6 <table i18n:domain="waeup.kofa" class="d isplay dataTableFiles">6 <table i18n:domain="waeup.kofa" class="dataTableFiles"> 7 7 <thead> 8 8 <tr> … … 13 13 </thead> 14 14 <tbody> 15 <tr tal:repeat="file context/getFinishedFiles" class="gradeC">15 <tr tal:repeat="file context/getFinishedFiles"> 16 16 <td><a tal:attributes="href python: 'download?filename=' + file.rel_path" 17 17 tal:content="file/name">FILENAME</a></td> -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/datacenterpage.pt
r9610 r10999 11 11 <form action="." tal:attributes="action request/URL" method="post" 12 12 i18n:domain="waeup.kofa" enctype="multipart/form-data"> 13 <table i18n:domain="waeup.kofa" class="d isplay dataTableManageFiles">13 <table i18n:domain="waeup.kofa" class="dataTableManageFiles"> 14 14 <thead> 15 15 <tr> … … 21 21 </thead> 22 22 <tbody> 23 <tr tal:repeat="file context/getPendingFiles" class="gradeC">23 <tr tal:repeat="file context/getPendingFiles"> 24 24 <td> 25 25 <input type="checkbox" name="val_id" -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/departmentmanagepage.pt
r10995 r10999 32 32 <div id="tab2" class="tab-pane"> 33 33 <br /> 34 <table class="d isplay dataTableManage">34 <table class="dataTableManage"> 35 35 <thead> 36 36 <tr> … … 44 44 </thead> 45 45 <tbody> 46 <tr tal:repeat="entry view/getCourses" class="gradeC"> <td>46 <tr tal:repeat="entry view/getCourses"> <td> 47 47 <input type="checkbox" name="val_id" 48 48 tal:attributes="value entry/name" /> </td> <td> … … 62 62 <div id="tab3" class="tab-pane"> 63 63 <br /> 64 <table class="d isplay dataTableManage">64 <table class="dataTableManage"> 65 65 <thead> 66 66 <tr> … … 74 74 </thead> 75 75 <tbody> 76 <tr tal:repeat="entry view/getCertificates" class="gradeC"> <td>76 <tr tal:repeat="entry view/getCertificates"> <td> 77 77 <input type="checkbox" name="val_id" 78 78 tal:attributes="value entry/name" /> </td> <td> … … 91 91 </div> 92 92 <div id="tab4" class="tab-pane"> <br /> 93 <table class="d isplay dataTableManage">93 <table class="dataTableManage"> 94 94 <thead> 95 95 <tr> … … 105 105 </thead> 106 106 <tbody> 107 <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeC">107 <tr tal:repeat="entry view/getUsersWithLocalRoles"> 108 108 <td> <input type="checkbox" name="role_id" 109 109 tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td> … … 114 114 </tbody> 115 115 </table> 116 <div tal:condition="view/availableActions">117 <span tal:repeat="action view/actions" tal:omit-tag="">118 <input tal:condition="python:action.label in view.tabfouractions1"119 tal:replace="structure action/render"/>120 </span>116 <div tal:condition="view/availableActions"> 117 <span tal:repeat="action view/actions" tal:omit-tag=""> 118 <input tal:condition="python:action.label in view.tabfouractions1" 119 tal:replace="structure action/render"/> 120 </span> 121 121 </div> <br /><br /> 122 <table class="form-table"> 123 <tr> <td> 122 <div class="form-inline"> 123 <br /> 124 <div class="form-group"> 124 125 <select id="user" name="user"> 125 <option tal:attributes="value user/name" tal:repeat="user view/getUsers"> 126 <span tal:replace="user/val/title">USERTITLE 127 </span> 126 <option tal:repeat="user view/getUsers" 127 tal:attributes="value user/name"> 128 <span tal:replace="user/val/title">USERTITLE 129 </span> 128 130 </option> 129 </select> </td> <td> 130 <select id="local_role" name="local_role"> 131 <option tal:attributes="value localrole/name" 132 tal:repeat="localrole view/getLocalRoles"> 133 <span tal:replace="localrole/title">LOCALROLETITLE 134 </span> 135 </option> 136 </select> </td> <td> 137 <div tal:condition="view/availableActions"> 138 <span tal:repeat="action view/actions" tal:omit-tag=""> 139 <input tal:condition="python:action.label in view.tabfouractions2" 140 tal:replace="structure action/render"/> 141 </span> 142 </div> 143 </td> 144 </tr> 145 </table> 131 </select> 132 </div> 133 <div class="form-group"> 134 <select id="local_role" name="local_role"> 135 <option tal:repeat="localrole view/getLocalRoles" 136 tal:attributes="value localrole/name"> 137 <span tal:replace="localrole/title">LOCALROLETITLE 138 </span> 139 </option> 140 </select> 141 </div> 142 <div class="form-group"> 143 <div tal:condition="view/availableActions"> 144 <span tal:repeat="action view/actions" tal:omit-tag=""> 145 <input tal:condition="python:action.label in view.tabfouractions2" 146 tal:replace="structure action/render"/> 147 </span> 148 </div> 149 </div> 150 </div> 146 151 </div> 147 152 </div> -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/departmentpage.pt
r10995 r10999 10 10 <div id="tab1" class="active tab-pane"> 11 11 <br /> 12 <table class="d isplay dataTable">12 <table class="dataTable"> 13 13 <thead> 14 14 <tr> … … 18 18 </thead> 19 19 <tbody> 20 <tr tal:repeat="entry view/getCourses" class="gradeC">20 <tr tal:repeat="entry view/getCourses"> 21 21 <td> 22 22 <a href="" … … 33 33 <div id="tab2" class="tab-pane"> 34 34 <br /> 35 <table class="d isplay dataTable">35 <table class="dataTable"> 36 36 <thead> 37 37 <tr> … … 41 41 </thead> 42 42 <tbody> 43 <tr tal:repeat="entry view/getCertificates" class="gradeC">43 <tr tal:repeat="entry view/getCertificates"> 44 44 <td> 45 45 <a href="" -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/facultiescontainermanagepage.pt
r7464 r10999 2 2 enctype="multipart/form-data"> 3 3 4 <table >4 <table class="table table-hover"> 5 5 <thead> 6 6 <tr> -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/facultymanagepage.pt
r10995 r10999 34 34 <div id="tab2" class="tab-pane"> 35 35 <h3 tal:content="view/subunits">DEPARTMENTS</h3> 36 <table >36 <table class="table table-hover"> 37 37 <thead> 38 38 <tr> … … 64 64 </div> 65 65 <div id="tab3" class="tab-pane"> <br /> 66 <table class="d isplay dataTableManage">66 <table class="dataTableManage"> 67 67 <thead> 68 68 <tr> … … 78 78 </thead> 79 79 <tbody> 80 <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeC">80 <tr tal:repeat="entry view/getUsersWithLocalRoles"> 81 81 <td> 82 82 <input type="checkbox" name="role_id" … … 94 94 </span> 95 95 </div><br /><br /> 96 <table class="form-table"> 97 <tr> <td> 98 <select id="user" name="user"> 99 <option tal:repeat="user view/getUsers" 100 tal:attributes="value user/name"> 101 <span tal:replace="user/val/title">USERTITLE 102 </span> 103 </option> 104 </select> </td> <td> 105 <select id="local_role" name="local_role"> 106 <option tal:repeat="localrole view/getLocalRoles" 107 tal:attributes="value localrole/name"> 108 <span tal:replace="localrole/title">LOCALROLETITLE 109 </span> 110 </option> 111 </select> </td> <td> 112 <div tal:condition="view/availableActions"> 113 <span tal:repeat="action view/actions" tal:omit-tag=""> 114 <input tal:condition="python:action.label in view.tabthreeactions2" 115 tal:replace="structure action/render"/> 116 </span> 117 </div> 118 </td> 119 </tr> 120 </table> 96 <div class="form-inline"> 97 <br /> 98 <div class="form-group"> 99 <select id="user" name="user"> 100 <option tal:repeat="user view/getUsers" 101 tal:attributes="value user/name"> 102 <span tal:replace="user/val/title">USERTITLE 103 </span> 104 </option> 105 </select> 106 </div> 107 <div class="form-group"> 108 <select id="local_role" name="local_role"> 109 <option tal:repeat="localrole view/getLocalRoles" 110 tal:attributes="value localrole/name"> 111 <span tal:replace="localrole/title">LOCALROLETITLE 112 </span> 113 </option> 114 </select> 115 </div> 116 <div class="form-group" tal:condition="view/availableActions"> 117 <span tal:repeat="action view/actions" tal:omit-tag=""> 118 <input tal:condition="python:action.label in view.tabthreeactions2" 119 tal:replace="structure action/render"/> 120 </span> 121 </div> 122 </div> 123 121 124 </div> 122 125 </div> -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/facultypage.pt
r8024 r10999 3 3 </div> 4 4 5 <table i18n:domain="waeup.kofa">5 <table class="table table-hover" i18n:domain="waeup.kofa"> 6 6 <thead> 7 7 <tr> … … 12 12 <tbody> 13 13 <tr tal:repeat="value context/values"> 14 <td> <a tal:attributes="href value/__name__">14 <td> <a tal:attributes="href python: view.url(value)"> 15 15 <span tal:content="value/code">Name</span></a></td> 16 16 <td tal:content="value/longtitle">Title</td> -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/findstudentspage.pt
r10646 r10999 20 20 <input type="hidden" name="old_searchtype" 21 21 tal:attributes="value view/searchtype" /> 22 <table class="d isplay dataTable">22 <table class="dataTable"> 23 23 <thead> 24 24 <tr> … … 31 31 </thead> 32 32 <tbody> 33 <tr tal:repeat="item view/hitlist" class="gradeC">33 <tr tal:repeat="item view/hitlist"> 34 34 <td> <a tal:attributes="href item/url"> 35 35 <span tal:content="item/student_id">A123456</span></a> -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/searchpage.pt
r9631 r10999 1 <form method="post"> 2 <input type="text" name="query" 3 tal:attributes="value view/query" /> 4 <input class="btn primary" type="submit" name="SUBMIT" 1 <form method="POST" class="form-inline"> 2 <br /> 3 <div class="form-group"> 4 <input type="text" name="query" class="form-control" 5 tal:attributes="value view/query" /> 6 </div> 7 <div class="form-group"> 8 <input class="btn btn-primary" type="submit" name="SUBMIT" 5 9 tal:attributes="value view/search_button"/> 10 </div> 6 11 </form> 7 12 <br /> 8 13 <span i18n:domain="waeup.kofa" tal:condition="view/hitlist"> 9 14 <h3 i18n:translate="">Search Results</h3> 10 <table class="d isplay dataTable">15 <table class="dataTable"> 11 16 <thead> 12 17 <tr> -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/students/browser_templates/exportjobsindex.pt
r9840 r10999 1 <table i18n:domain="waeup.kofa" >1 <table i18n:domain="waeup.kofa" class="table"> 2 2 <thead> 3 3 <tr> … … 38 38 </a> 39 39 <form method="POST"> 40 <a href="" class="btn primary small"40 <a href="" class="btn btn-primary btn-xs" 41 41 tal:attributes="href job/download_url" 42 42 tal:condition="job/show_download_button"> … … 45 45 <input type="hidden" name="job_id" 46 46 tal:attributes="value job/job" /> 47 <input type="submit" class="btn small"47 <input type="submit" class="btn btn-default btn-xs" 48 48 name="DISCARD" value="Discard" 49 49 tal:condition="job/show_discard_button" /> … … 57 57 58 58 </div> 59 <input class="btn primary" type="submit" name="CREATE"59 <input class="btn btn-primary" type="submit" name="CREATE" 60 60 value="Configure new export" 61 61 />
Note: See TracChangeset for help on using the changeset viewer.