Changeset 10995 for main/waeup.kofa/branches/uli-diazo-themed/src
- Timestamp:
- 28 Jan 2014, 15:32:58 (11 years ago)
- Location:
- main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/pages.py
r10685 r10995 86 86 if user is None or localrole is None: 87 87 view.flash('No user selected.') 88 view.redirect(view.url(view.context, '@@manage')+' ?tab%s' % tab)88 view.redirect(view.url(view.context, '@@manage')+'#tab%s' % tab) 89 89 return 90 90 role_manager = IPrincipalRoleManager(view.context) … … 94 94 grok.getSite().logger.info( 95 95 '%s - added: %s|%s' % (ob_class, user, localrole)) 96 view.redirect(view.url(view.context, u'@@manage')+' ?tab%s' % tab)96 view.redirect(view.url(view.context, u'@@manage')+'#tab%s' % tab) 97 97 return 98 98 … … 101 101 if child_ids is None: 102 102 view.flash(_('No local role selected.')) 103 view.redirect(view.url(view.context, '@@manage')+' ?tab%s' % tab)103 view.redirect(view.url(view.context, '@@manage')+'#tab%s' % tab) 104 104 return 105 105 if not isinstance(child_ids, list): … … 125 125 grok.getSite().logger.info( 126 126 '%s - removed: %s' % (ob_class, ', '.join(deleted))) 127 view.redirect(view.url(view.context, u'@@manage')+' ?tab%s' % tab)127 view.redirect(view.url(view.context, u'@@manage')+'#tab%s' % tab) 128 128 return 129 129 … … 135 135 view.flash(_('No item selected.')) 136 136 if tab: 137 view.redirect(view.url(view.context, redirect)+' ?tab%s' % tab)137 view.redirect(view.url(view.context, redirect)+'#tab%s' % tab) 138 138 else: 139 139 view.redirect(view.url(view.context, redirect)) … … 160 160 '%s - removed: %s' % (ob_class, ', '.join(deleted))) 161 161 if tab: 162 view.redirect(view.url(view.context, redirect)+' ?tab%s' % tab)162 view.redirect(view.url(view.context, redirect)+'#tab%s' % tab) 163 163 else: 164 164 view.redirect(view.url(view.context, redirect)) … … 770 770 form_fields['frontpage'].custom_widget = HTMLDisplayWidget 771 771 772 772 773 class ConfigurationContainerManageFormPage(KofaEditFormPage): 773 774 """Manage page of the configuration container. We always use the … … 784 785 _('Add session configuration'), 785 786 _('Remove selected')] 786 form_fields = grok.AutoFields(IConfigurationContainer).omit('frontpage_dict') 787 form_fields = grok.AutoFields(IConfigurationContainer).omit( 788 'frontpage_dict') 787 789 788 790 def update(self): 789 tabs.need()790 self.tab1 = self.tab2 = ''791 qs = self.request.get('QUERY_STRING', '')792 if not qs:793 qs = 'tab1'794 setattr(self, qs, 'active')795 791 datatable.need() 796 792 warning.need() … … 859 855 self.flash(_('The session chosen already exists.')) 860 856 return 861 self.redirect(self.url(self.context, '@@index')+' ?tab2')857 self.redirect(self.url(self.context, '@@index')+'#tab2') 862 858 return 863 859 864 860 @action(_('Cancel'), validator=NullValidator) 865 861 def cancel(self): 866 self.redirect(self.url(self.context, '@@index')+' ?tab2')862 self.redirect(self.url(self.context, '@@index')+'#tab2') 867 863 return 868 864 … … 885 881 def save(self, **data): 886 882 msave(self, **data) 887 self.redirect(self.url(self.context.__parent__, '@@index')+' ?tab2')883 self.redirect(self.url(self.context.__parent__, '@@index')+'#tab2') 888 884 return 889 885 890 886 @action(_('Cancel'), validator=NullValidator) 891 887 def cancel(self): 892 self.redirect(self.url(self.context.__parent__, '@@index')+' ?tab2')888 self.redirect(self.url(self.context.__parent__, '@@index')+'#tab2') 893 889 return 894 890 … … 1763 1759 self.context.__parent__.logger.info( 1764 1760 '%s - added: %s' % (ob_class, faculty.code)) 1765 self.redirect(self.url(self.context, u'@@manage')+' ?tab1')1761 self.redirect(self.url(self.context, u'@@manage')+'#tab1') 1766 1762 return 1767 1763 … … 1807 1803 1808 1804 def update(self): 1809 tabs.need()1810 self.tab1 = self.tab2 = self.tab3 = ''1811 qs = self.request.get('QUERY_STRING', '')1812 if not qs:1813 qs = 'tab1'1814 setattr(self, qs, 'active')1815 1805 warning.need() 1816 1806 datatable.need() … … 1921 1911 self.context.__parent__.__parent__.logger.info( 1922 1912 '%s - added: %s' % (ob_class, data['code'])) 1923 self.redirect(self.url(self.context, u'@@manage')+' ?tab2')1913 self.redirect(self.url(self.context, u'@@manage')+'#tab2') 1924 1914 return 1925 1915 … … 1942 1932 1943 1933 def update(self): 1944 tabs.need()1945 1934 datatable.need() 1946 1935 super(DepartmentPage, self).update() … … 1998 1987 1999 1988 def update(self): 2000 tabs.need()2001 self.tab1 = self.tab2 = self.tab3 = self.tab4 = ''2002 qs = self.request.get('QUERY_STRING', '')2003 if not qs:2004 qs = 'tab1'2005 setattr(self, qs, 'active')2006 1989 warning.need() 2007 1990 datatable.need() … … 2084 2067 self.context.__parent__.__parent__.__parent__.logger.info( 2085 2068 '%s - added: %s' % (ob_class, data['code'])) 2086 self.redirect(self.url(self.context, u'@@manage')+' ?tab2')2069 self.redirect(self.url(self.context, u'@@manage')+'#tab2') 2087 2070 return 2088 2071 … … 2125 2108 self.context.__parent__.__parent__.__parent__.logger.info( 2126 2109 '%s - added: %s' % (ob_class, data['code'])) 2127 self.redirect(self.url(self.context, u'@@manage')+' ?tab3')2110 self.redirect(self.url(self.context, u'@@manage')+'#tab3') 2128 2111 return 2129 2112 … … 2166 2149 2167 2150 def update(self): 2168 tabs.need()2169 self.tab1 = self.tab2 = ''2170 qs = self.request.get('QUERY_STRING', '')2171 if not qs:2172 qs = 'tab1'2173 setattr(self, qs, 'active')2174 2151 warning.need() 2175 2152 datatable.need() … … 2239 2216 2240 2217 def update(self): 2241 tabs.need()2242 self.tab1 = self.tab2 = self.tab3 = ''2243 qs = self.request.get('QUERY_STRING', '')2244 if not qs:2245 qs = 'tab1'2246 setattr(self, qs, 'active')2247 2218 warning.need() 2248 2219 datatable.need() … … 2301 2272 ob_class = self.__implemented__.__name__.replace('waeup.kofa.','') 2302 2273 grok.getSite().logger.info('%s - added: %s' % (ob_class, code)) 2303 self.redirect(self.url(self.context, u'@@manage')+' ?tab2')2274 self.redirect(self.url(self.context, u'@@manage')+'#tab2') 2304 2275 return 2305 2276 -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/certificatemanagepage.pt
r9320 r10995 2 2 enctype="multipart/form-data" i18n:domain="waeup.kofa"> 3 3 4 <ul class="tabs" data-tabs="tabs"> 5 <li tal:attributes="class view/tab1"><a href="#tab-1" i18n:translate="">Settings</a></li> 6 <li tal:attributes="class view/tab2"><a href="#tab-2" i18n:translate="">Certificate Courses</a></li> 7 <li tal:attributes="class view/tab3"><a href="#tab-3" i18n:translate="">Local Roles</a></li> 4 <ul class="tabs nav nav-tabs" data-tabs="tabs"> 5 <li class="active"> 6 <a href="#tab1" data-toggle="tab" i18n:translate="">Settings</a> 7 </li> 8 <li> 9 <a href="#tab2" data-toggle="tab" 10 i18n:translate="">Certificate Courses</a> 11 </li> 12 <li> 13 <a href="#tab3" data-toggle="tab" i18n:translate="">Local Roles</a> 14 </li> 8 15 </ul> 9 16 10 17 <div class="tab-content"> 11 <div id="tab-1" tal:attributes="class view/tab1"> 12 <table class="form-table"> 13 <tbody> 14 <tal:widgets content="structure provider:widgets" /> 15 </tbody> 16 </table> 17 <div tal:condition="view/availableActions"> 18 <span tal:repeat="action view/actions" 19 tal:omit-tag=""> 20 <input tal:condition="python:action.label in view.taboneactions" 21 tal:replace="structure action/render"/> 22 </span> 18 <div id="tab1" class="active tab-pane"> 19 <table class="form-table"> 20 <tbody> 21 <tal:widgets content="structure provider:widgets" /> 22 </tbody> 23 </table> 24 <div tal:condition="view/availableActions"> 25 <span tal:repeat="action view/actions" 26 tal:omit-tag=""> 27 <input tal:condition="python:action.label in view.taboneactions" 28 tal:replace="structure action/render"/> 29 </span> 30 </div> 23 31 </div> 24 </div> 25 <div id="tab-2" tal:attributes="class view/tab2"> 32 <div id="tab2" class="tab-pane"> 26 33 <h3> 27 34 <span tal:content="context/__name__">Code</span> … … 42 49 <tbody> 43 50 <tr tal:repeat="cc context/values" class="gradeC"> 44 51 <td> 45 52 <input type="checkbox" name="val_id" 46 53 tal:attributes="value cc/__name__" /> 47 54 </td> 48 55 <td> 49 56 <span tal:content="cc/level"> 50 57 LEVEL 51 58 </span> 52 59 </td> … … 54 61 <td> 55 62 <a tal:attributes="href python: view.url(cc)" 56 63 tal:content="cc/__name__"> 57 64 REFERRER CODE 58 65 </a> … … 60 67 <td> 61 68 <a tal:attributes="href python:view.url(cc.course)" 62 69 tal:content="cc/course/code"> 63 70 COURSE CODE 64 71 </a> … … 66 73 <td> 67 74 <span tal:content="cc/course/title"> 68 75 COURSE TITLE 69 76 </span> 70 77 </td> 71 78 <td> 72 79 <span tal:content="cc/mandatory"> 73 80 REQUIRED 74 81 </span> 75 82 </td> … … 85 92 </div> 86 93 </div> 87 <div id="tab-3" tal:attributes="class view/tab3"> <br /> 94 <div id="tab3" class="tab-pane"> 95 <br /> 88 96 <table class="display dataTableManage"> 89 97 <thead> … … 101 109 <tbody> 102 110 <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeC"> <td> 103 104 tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td>111 <input type="checkbox" name="role_id" 112 tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td> 105 113 <td tal:content="entry/user_name"> USERNAME </td> 106 114 <td tal:content="entry/user_title"> USERTITLE </td> … … 112 120 <span tal:repeat="action view/actions" tal:omit-tag=""> 113 121 <input tal:condition="python:action.label in view.tabthreeactions1" 114 tal:replace="structure action/render"/>122 tal:replace="structure action/render"/> 115 123 </span> 116 </div><br /><br />117 <table class="form-table">118 <tr> <td>124 </div><br /><br /> 125 <table class="form-table"> 126 <tr> <td> 119 127 <select id="user" name="user"> 120 128 <option tal:repeat="user view/getUsers" 121 tal:attributes="value user/name">122 <span tal:replace="user/val/title">USERTITLE123 </span>129 tal:attributes="value user/name"> 130 <span tal:replace="user/val/title">USERTITLE 131 </span> 124 132 </option> 125 </select> </td> <td> 126 <select id="local_role" name="local_role"> 127 <option tal:repeat="localrole view/getLocalRoles" 128 tal:attributes="value localrole/name"> 129 <span tal:replace="localrole/title">LOCALROLETITLE 130 </span> 131 </option> 132 </select> </td> <td> 133 <div tal:condition="view/availableActions"> 134 <span tal:repeat="action view/actions" tal:omit-tag=""> 135 <input tal:condition="python:action.label in view.tabthreeactions2" 136 tal:replace="structure action/render"/> 137 </span> 138 </div> </td> 139 </tr> 140 </table> 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> 141 150 </div> 142 151 </div> 143 152 </form> 144 145 146 -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/configurationmanagepage.pt
r7811 r10995 1 1 <form action="." tal:attributes="action request/URL" method="POST" 2 enctype="multipart/form-data" i18n:domain="waeup.kofa"> 3 <ul class="tabs" data-tabs="tabs"> 4 <li tal:attributes="class view/tab1"> 5 <a href="#tab-1" i18n:translate="">Site Settings</a> 6 </li> 7 <li tal:attributes="class view/tab2"> 8 <a href="#tab-2" i18n:translate="">Session Configurations</a> 9 </li> 10 </ul> 11 <div class="tab-content"> 12 <div id="tab-1" tal:attributes="class view/tab1"> 2 enctype="multipart/form-data" i18n:domain="waeup.kofa"> 3 <ul class="tabs nav nav-tabs" data-tabs="tabs"> 4 <li class="active"> 5 <a href="#tab1" data-toggle="tab" 6 i18n:translate="">Site Settings</a> 7 </li> 8 <li> 9 <a href="#tab2" data-toggle="tab" 10 i18n:translate="">Session Configurations</a> 11 </li> 12 </ul> 13 <div class="tab-content"> 14 <div id="tab1" class="active tab-pane"> 13 15 <table class="form-table"> 14 16 <tbody> … … 23 25 </div> 24 26 </div> 25 <div id="tab-2" tal:attributes="class view/tab2"> <br /> 27 <div id="tab2" class="tab-pane"> 28 <br /> 26 29 <table class="display dataTableManage"> 27 30 <thead> … … 34 37 </thead> 35 38 <tbody> 36 <tr tal:repeat="entry view/getSessionConfigurations" class="gradeC"> <td> 37 <input type="checkbox" name="val_id" tal:attributes="value entry/name" /> </td> <td> 38 <a href="" tal:attributes="href entry/url" tal:content="entry/title">Name</a> </td> 39 <tr tal:repeat="entry view/getSessionConfigurations" 40 class="gradeC"> <td> 41 <input type="checkbox" name="val_id" 42 tal:attributes="value entry/name" /> </td> <td> 43 <a href="" tal:attributes="href entry/url" 44 tal:content="entry/title">Name</a> </td> 39 45 </tr> 40 46 </tbody> … … 43 49 <span tal:repeat="action view/actions" tal:omit-tag=""> 44 50 <input tal:condition="python:action.label in view.tabtwoactions" 45 tal:replace="structure action/render"/>51 tal:replace="structure action/render"/> 46 52 </span> 47 53 </div> 48 </div> 49 </div> 54 </div><!-- /tab2 --> 55 </div><!-- /tab-content --> 50 56 </form> -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/coursemanagepage.pt
r10540 r10995 2 2 enctype="multipart/form-data" i18n:domain="waeup.kofa"> 3 3 4 <ul class="tabs" data-tabs="tabs"> 5 <li tal:attributes="class view/tab1"><a href="#tab-1" i18n:translate="">Settings</a></li> 6 <li tal:attributes="class view/tab2"><a href="#tab-3" i18n:translate="">Local Roles</a></li> 4 <ul class="tabs nav nav-tabs" data-tabs="tabs"> 5 <li class="active"> 6 <a href="#tab1" data-toggle="tab" i18n:translate="">Settings</a> 7 </li> 8 <li> 9 <a href="#tab3" data-toggle="tab" i18n:translate="">Local Roles</a> 10 </li> 7 11 </ul> 8 12 9 13 <div class="tab-content"> 10 <div id="tab-1" tal:attributes="class view/tab1"> 11 <table class="form-table"> 12 <tbody> 13 <tal:widgets content="structure provider:widgets" /> 14 </tbody> 15 </table> 16 <div tal:condition="view/availableActions"> 17 <span tal:repeat="action view/actions" 18 tal:omit-tag=""> 19 <input tal:condition="python:action.label in view.taboneactions" 20 tal:replace="structure action/render"/> 21 </span> 14 <div id="tab1" class="tab-pane active"> 15 <table class="form-table"> 16 <tbody> 17 <tal:widgets content="structure provider:widgets" /> 18 </tbody> 19 </table> 20 <div tal:condition="view/availableActions"> 21 <span tal:repeat="action view/actions" 22 tal:omit-tag=""> 23 <input tal:condition="python:action.label in view.taboneactions" 24 tal:replace="structure action/render"/> 25 </span> 26 </div> 22 27 </div> 23 < /div>24 <div id="tab-3" tal:attributes="class view/tab2"><br />28 <div id="tab3" class="tab-pane"> 29 <br /> 25 30 <table class="display dataTableManage"> 26 31 <thead> … … 38 43 <tbody> 39 44 <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeC"> <td> 40 41 tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td>45 <input type="checkbox" name="role_id" 46 tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td> 42 47 <td tal:content="entry/user_name"> USERNAME </td> 43 48 <td tal:content="entry/user_title"> USERTITLE </td> … … 49 54 <span tal:repeat="action view/actions" tal:omit-tag=""> 50 55 <input tal:condition="python:action.label in view.tabtwoactions1" 51 tal:replace="structure action/render"/>56 tal:replace="structure action/render"/> 52 57 </span> 53 </div><br /><br />54 <table class="form-table">55 <tr> <td>58 </div><br /><br /> 59 <table class="form-table"> 60 <tr> <td> 56 61 <select id="user" name="user"> 57 62 <option tal:repeat="user view/getUsers" 58 tal:attributes="value user/name">59 <span tal:replace="user/val/title">USERTITLE60 </span>63 tal:attributes="value user/name"> 64 <span tal:replace="user/val/title">USERTITLE 65 </span> 61 66 </option> 62 </select> </td> <td>63 <select id="local_role" name="local_role">64 <option tal:repeat="localrole view/getLocalRoles"65 tal:attributes="value localrole/name">66 <span tal:replace="localrole/title">LOCALROLETITLE67 </span>68 </option>69 </select> </td> <td>70 <div tal:condition="view/availableActions">71 <span tal:repeat="action view/actions" tal:omit-tag="">72 <input tal:condition="python:action.label in view.tabtwoactions2"73 tal:replace="structure action/render"/>74 </span>75 </div> </td>76 </tr>77 </table>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> 78 83 </div> 79 84 </div> 80 85 </form> 81 82 83 -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/departmentmanagepage.pt
r7811 r10995 1 1 <form action="." tal:attributes="action request/URL" method="POST" 2 i18n:domain="waeup.kofa" enctype="multipart/form-data"> 3 <ul class="tabs" data-tabs="tabs"> 4 <li tal:attributes="class view/tab1"> 5 <a href="#tab-1"> 6 <span i18n:translate="">Settings 7 </span></a> 2 i18n:domain="waeup.kofa" enctype="multipart/form-data"> 3 <ul class="tabs nav nav-tabs" data-tabs="tabs"> 4 <li class="active"> 5 <a href="#tab1" data-toggle="tab"> 6 <span i18n:translate="">Settings</span></a> 8 7 </li> 9 <li tal:attributes="class view/tab2">10 <a href="#tab-2" i18n:translate="">Courses</a>8 <li> 9 <a href="#tab2" data-toggle="tab" i18n:translate="">Courses</a> 11 10 </li> 12 <li tal:attributes="class view/tab3">13 <a href="#tab-3" i18n:translate="">Certificates</a>11 <li> 12 <a href="#tab3" data-toggle="tab" i18n:translate="">Certificates</a> 14 13 </li> 15 <li tal:attributes="class view/tab4">16 <a href="#tab-4" i18n:translate="">Local Roles</a>14 <li> 15 <a href="#tab4" data-toggle="tab" i18n:translate="">Local Roles</a> 17 16 </li> 18 17 </ul> 19 18 <div class="tab-content"> 20 <div id="tab -1" tal:attributes="class view/tab1">19 <div id="tab1" class="active tab-pane"> 21 20 <table class="form-table"> 22 21 <tbody> … … 27 26 <span tal:repeat="action view/actions" tal:omit-tag=""> 28 27 <input tal:condition="python:action.label in view.taboneactions" 29 tal:replace="structure action/render"/>28 tal:replace="structure action/render"/> 30 29 </span> 31 30 </div> 32 31 </div> 33 <div id="tab-2" tal:attributes="class view/tab2"> <br /> 32 <div id="tab2" class="tab-pane"> 33 <br /> 34 34 <table class="display dataTableManage"> 35 35 <thead> … … 45 45 <tbody> 46 46 <tr tal:repeat="entry view/getCourses" class="gradeC"> <td> 47 48 tal:attributes="value entry/name" /> </td> <td>49 50 47 <input type="checkbox" name="val_id" 48 tal:attributes="value entry/name" /> </td> <td> 49 <a href="" tal:attributes="href entry/url" 50 tal:content="entry/name">Name</a> </td> 51 51 <td tal:content="entry/container/title"> Title </td> 52 52 </tr> … … 56 56 <span tal:repeat="action view/actions" tal:omit-tag=""> 57 57 <input tal:condition="python:action.label in view.tabtwoactions" 58 tal:replace="structure action/render"/>58 tal:replace="structure action/render"/> 59 59 </span> 60 60 </div> 61 61 </div> 62 <div id="tab-3" tal:attributes="class view/tab3"> <br /> 62 <div id="tab3" class="tab-pane"> 63 <br /> 63 64 <table class="display dataTableManage"> 64 65 <thead> … … 74 75 <tbody> 75 76 <tr tal:repeat="entry view/getCertificates" class="gradeC"> <td> 76 77 tal:attributes="value entry/name" /> </td> <td>78 79 77 <input type="checkbox" name="val_id" 78 tal:attributes="value entry/name" /> </td> <td> 79 <a href="" tal:attributes="href entry/url" 80 tal:content="entry/name">Name</a> </td> 80 81 <td tal:content="entry/container/title"> Title </td> 81 82 </tr> … … 85 86 <span tal:repeat="action view/actions" tal:omit-tag=""> 86 87 <input tal:condition="python:action.label in view.tabthreeactions" 87 tal:replace="structure action/render"/>88 tal:replace="structure action/render"/> 88 89 </span> 89 90 </div> 90 91 </div> 91 <div id="tab -4" tal:attributes="class view/tab4"> <br />92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 tal:replace="structure action/render"/>119 92 <div id="tab4" class="tab-pane"> <br /> 93 <table class="display dataTableManage"> 94 <thead> 95 <tr> 96 <th> 97 </th> 98 <th i18n:translate="">User Id 99 </th> 100 <th i18n:translate="">Name 101 </th> 102 <th i18n:translate="">Local Role 103 </th> 104 </tr> 105 </thead> 106 <tbody> 107 <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeC"> 108 <td> <input type="checkbox" name="role_id" 109 tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td> 110 <td tal:content="entry/user_name"> USERNAME </td> 111 <td tal:content="entry/user_title"> USERTITLE </td> 112 <td tal:content="entry/local_role_title"> LOCAL ROLE </td> 113 </tr> 114 </tbody> 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> 120 121 </div> <br /><br /> 121 122 <table class="form-table"> 122 123 <tr> <td> 123 124 124 <select id="user" name="user"> 125 <option tal:attributes="value user/name" tal:repeat="user view/getUsers"> 125 126 <span tal:replace="user/val/title">USERTITLE 126 127 </span> 127 128 </option> 128 129 </select> </td> <td> 129 130 <select id="local_role" name="local_role"> 130 131 <option tal:attributes="value localrole/name" 131 tal:repeat="localrole view/getLocalRoles">132 <span tal:replace="localrole/title">LOCALROLETITLE133 </span>132 tal:repeat="localrole view/getLocalRoles"> 133 <span tal:replace="localrole/title">LOCALROLETITLE 134 </span> 134 135 </option> 135 </select> </td> <td> 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.tabfouractions2" 139 tal:replace="structure action/render"/> 140 </span> 141 </div> </td> 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> 142 144 </tr> 143 145 </table> -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/departmentpage.pt
r8481 r10995 1 <ul i18n:domain="waeup.kofa" class="tabs " data-tabs="tabs">2 <li class="active"><a href="#tab -1">3 <span i18n:translate="">Courses</span></a>1 <ul i18n:domain="waeup.kofa" class="tabs nav nav-tabs" data-tabs="tabs"> 2 <li class="active"><a href="#tab1" data-toggle="tab"> 3 <span i18n:translate="">Courses</span></a> 4 4 </li> 5 <li><a href="#tab -2">5 <li><a href="#tab2" data-toggle="tab"> 6 6 <span i18n:translate="">Certificates</span></a> 7 7 </li> 8 8 </ul> 9 <div 10 <div id="tab-1" class="active">9 <div i18n:domain="waeup.kofa" class="tab-content"> 10 <div id="tab1" class="active tab-pane"> 11 11 <br /> 12 12 <table class="display dataTable"> … … 20 20 <tr tal:repeat="entry view/getCourses" class="gradeC"> 21 21 <td> 22 23 24 22 <a href="" 23 tal:attributes="href entry/url" 24 tal:content="entry/name">Name</a> 25 25 </td> 26 26 <td tal:content="entry/container/title"> 27 27 Title 28 28 </td> 29 29 </tr> 30 30 </tbody> 31 31 </table> 32 33 <div id="tab-2">32 </div> 33 <div id="tab2" class="tab-pane"> 34 34 <br /> 35 35 <table class="display dataTable"> … … 43 43 <tr tal:repeat="entry view/getCertificates" class="gradeC"> 44 44 <td> 45 46 47 45 <a href="" 46 tal:attributes="href entry/url" 47 tal:content="entry/name">Name</a> 48 48 </td> 49 49 <td tal:content="entry/container/title"> 50 50 Title 51 51 </td> 52 52 </tr> 53 53 </tbody> 54 54 </table> 55 55 </div> 56 56 </div> -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/templates/facultymanagepage.pt
r7811 r10995 1 1 <form action="." tal:attributes="action request/URL" 2 2 i18n:domain="waeup.kofa" method="POST" enctype="multipart/form-data"> 3 <ul class="tabs " data-tabs="tabs">4 <li tal:attributes="class view/tab1">5 <a href="#tab -1">3 <ul class="tabs nav nav-tabs" data-tabs="tabs"> 4 <li class="active"> 5 <a href="#tab1" data-toggle="tab"> 6 6 <span i18n:translate="">Settings 7 7 </span></a> 8 8 </li> 9 <li tal:attributes="class view/tab2">10 <a href="#tab -2">9 <li> 10 <a href="#tab2" data-toggle="tab"> 11 11 <span tal:content="view/subunits">CONTENTS 12 12 </span> </a> 13 13 </li> 14 <li tal:attributes="class view/tab3">15 <a href="#tab -3">14 <li> 15 <a href="#tab3" data-toggle="tab"> 16 16 <span i18n:translate="">Local Roles 17 17 </span></a> … … 19 19 </ul> 20 20 <div class="tab-content"> 21 <div id="tab -1" tal:attributes="class view/tab1">21 <div id="tab1" class="active tab-pane"> 22 22 <table class="form-table"> 23 23 <tbody> … … 32 32 </div> 33 33 </div> 34 <div id="tab -2" tal:attributes="class view/tab2">34 <div id="tab2" class="tab-pane"> 35 35 <h3 tal:content="view/subunits">DEPARTMENTS</h3> 36 36 <table> … … 63 63 </div> 64 64 </div> 65 <div id="tab -3" tal:attributes="class view/tab3"> <br />65 <div id="tab3" class="tab-pane"> <br /> 66 66 <table class="display dataTableManage"> 67 67 <thead> … … 78 78 </thead> 79 79 <tbody> 80 <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeC"> <td> 80 <tr tal:repeat="entry view/getUsersWithLocalRoles" class="gradeC"> 81 <td> 81 82 <input type="checkbox" name="role_id" 82 83 tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td> … … 96 97 <tr> <td> 97 98 <select id="user" name="user"> 98 <option tal:repeat="user view/getUsers" tal:attributes="value user/name"> 99 <option tal:repeat="user view/getUsers" 100 tal:attributes="value user/name"> 99 101 <span tal:replace="user/val/title">USERTITLE 100 102 </span> … … 113 115 tal:replace="structure action/render"/> 114 116 </span> 115 </div> </td> 117 </div> 118 </td> 116 119 </tr> 117 120 </table>
Note: See TracChangeset for help on using the changeset viewer.