- Timestamp:
- 16 Jan 2012, 07:06:21 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
r7467 r7484 116 116 if len(deleted): 117 117 self.flash('Successfully removed: %s' % ', '.join(deleted)) 118 self.redirect(self.url(self.context, '@@manage') +'#tab-1')118 self.redirect(self.url(self.context, '@@manage')) 119 119 return 120 120 … … 131 131 @action('Add local role', validator=NullValidator) 132 132 def addLocalRole(self, **data): 133 return add_local_role(self, 2, **data)133 return add_local_role(self,3, **data) 134 134 135 135 @action('Remove selected local roles') 136 136 def delLocalRoles(self, **data): 137 return del_local_roles(self, 2,**data)137 return del_local_roles(self,3,**data) 138 138 139 139 class ApplicantsContainerAddFormPage(SIRPAddFormPage): … … 173 173 self.context[code] = container 174 174 self.flash('Added: "%s".' % code) 175 self.redirect(self.url(self.context, u'@@manage') +'#tab-1')175 self.redirect(self.url(self.context, u'@@manage')) 176 176 return 177 177 178 178 @action('Cancel', validator=NullValidator) 179 179 def cancel(self, **data): 180 self.redirect(self.url(self.context, '@@manage') + '#tab-1')180 self.redirect(self.url(self.context, '@@manage')) 181 181 182 182 class ApplicantsRootBreadcrumb(Breadcrumb): … … 252 252 datepicker.need() # Enable jQuery datepicker in date fields. 253 253 tabs.need() 254 self.tab1 = self.tab2 = self.tab3 = '' 255 qs = self.request.get('QUERY_STRING', '') 256 if not qs: 257 qs = 'tab1' 258 setattr(self, qs, 'active') 254 259 warning.need() 255 260 datatable.need() # Enable jQurey datatables for contents listing … … 283 288 else: 284 289 self.flash('No applicant selected!') 285 self.redirect(self.url(self.context, '@@manage')+' #tab-2')290 self.redirect(self.url(self.context, '@@manage')+'?tab2') 286 291 return 287 292 if not isinstance(child_id, list): … … 297 302 if len(deleted): 298 303 self.flash('Successfully removed: %s' % ', '.join(deleted)) 299 self.redirect(self.url(self.context, u'@@manage')+' #tab-2')304 self.redirect(self.url(self.context, u'@@manage')+'?tab2') 300 305 return 301 306 -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/applicantscontainermanagepage.pt
r7477 r7484 2 2 3 3 <ul class="tabs" data-tabs="tabs"> 4 <li class="active">4 <li tal:attributes="class view/tab1"> 5 5 <a href="#tab-1"> 6 6 <span>Settings 7 7 </span></a> 8 8 </li> 9 <li >9 <li tal:attributes="class view/tab2"> 10 10 <a href="#tab-2"> 11 11 <span>Applicants 12 12 </span></a> 13 13 </li> 14 <li >14 <li tal:attributes="class view/tab3"> 15 15 <a href="#tab-3"> 16 16 <span>Local Roles … … 19 19 </ul> 20 20 <div class="tab-content"> 21 <div id="tab-1" class="active">21 <div id="tab-1" tal:attributes="class view/tab1"> 22 22 <table class="form-table"> 23 23 <tbody> … … 53 53 </div> 54 54 </div> 55 <div id="tab-2" > <h3>Applicants</h3>55 <div id="tab-2" tal:attributes="class view/tab2"> <h3>Applicants</h3> 56 56 <table class="display dataTableManage"> 57 57 <thead> … … 100 100 </div> 101 101 </div> 102 <div id="tab-3" > <br />102 <div id="tab-3" tal:attributes="class view/tab3"> <br /> 103 103 <table class="display dataTableManage"> 104 104 <thead> -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_browser.py
r7436 r7484 254 254 self.browser.open(self.add_container_path) 255 255 self.browser.getControl("Cancel").click() 256 self.assertEqual(self.browser.url, self.manage_root_path + '#tab-1')256 self.assertEqual(self.browser.url, self.manage_root_path) 257 257 self.browser.open(self.add_container_path) 258 258 self.browser.getControl(name="form.prefix").value = ['app'] -
main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py
r7465 r7484 69 69 if user is None or localrole is None: 70 70 view.flash('No user selected.') 71 view.redirect(view.url(view.context, '@@manage')+' #tab-%s' % tab)71 view.redirect(view.url(view.context, '@@manage')+'?tab%s' % tab) 72 72 return 73 73 role_manager = IPrincipalRoleManager(view.context) 74 74 role_manager.assignRoleToPrincipal(localrole, user) 75 75 notify(LocalRoleSetEvent(view.context, localrole, user, granted=True)) 76 view.redirect(view.url(view.context, u'@@manage')+' #tab-%s' % tab)76 view.redirect(view.url(view.context, u'@@manage')+'?tab%s' % tab) 77 77 return 78 78 … … 81 81 if child_ids is None: 82 82 view.flash('No local role selected.') 83 view.redirect(view.url(view.context, '@@manage')+' #tab-%s' % tab)83 view.redirect(view.url(view.context, '@@manage')+'?tab%s' % tab) 84 84 return 85 85 if not isinstance(child_ids, list): … … 100 100 if len(deleted): 101 101 view.flash('Successfully removed: %s' % ', '.join(deleted)) 102 view.redirect(view.url(view.context, u'@@manage')+' #tab-%s' % tab)102 view.redirect(view.url(view.context, u'@@manage')+'?tab%s' % tab) 103 103 return 104 104 … … 110 110 view.flash('No item selected.') 111 111 if tab: 112 view.redirect(view.url(view.context, redirect)+' #tab-%s' % tab)112 view.redirect(view.url(view.context, redirect)+'?tab%s' % tab) 113 113 else: 114 114 view.redirect(view.url(view.context, redirect)) … … 131 131 view.flash('Successfully removed: %s' % ', '.join(deleted)) 132 132 if tab: 133 view.redirect(view.url(view.context, redirect)+' #tab-%s' % tab)133 view.redirect(view.url(view.context, redirect)+'?tab%s' % tab) 134 134 else: 135 135 view.redirect(view.url(view.context, redirect)) … … 570 570 def update(self): 571 571 tabs.need() 572 self.tab1 = self.tab2 = '' 573 qs = self.request.get('QUERY_STRING', '') 574 if not qs: 575 qs = 'tab1' 576 setattr(self, qs, 'active') 572 577 datatable.need() 573 578 warning.need() … … 624 629 self.flash('The session chosen already exists ') 625 630 return 626 self.redirect(self.url(self.context, '@@index')+' #tab-2')631 self.redirect(self.url(self.context, '@@index')+'?tab2') 627 632 return 628 633 629 634 @action('Cancel', validator=NullValidator) 630 635 def cancel(self): 631 self.redirect(self.url(self.context, '@@index')+' #tab-2')636 self.redirect(self.url(self.context, '@@index')+'?tab2') 632 637 return 633 638 … … 650 655 self.applyData(self.context, **data) 651 656 self.flash('Settings have been saved.') 652 self.redirect(self.url(self.context.__parent__, '@@index')+' #tab-2')657 self.redirect(self.url(self.context.__parent__, '@@index')+'?tab2') 653 658 return 654 659 655 660 @action('Cancel', validator=NullValidator) 656 661 def cancel(self): 657 self.redirect(self.url(self.context.__parent__, '@@index')+' #tab-2')662 self.redirect(self.url(self.context.__parent__, '@@index')+'?tab2') 658 663 return 659 664 … … 1167 1172 1168 1173 def update(self): 1169 tabs.need()1170 1174 warning.need() 1171 1175 return super(FacultiesContainerManageFormPage, self).update() … … 1206 1210 self.flash('The faculty code chosen already exists.') 1207 1211 return 1208 self.redirect(self.url(self.context, u'@@manage')+' #tab-1')1212 self.redirect(self.url(self.context, u'@@manage')+'?tab1') 1209 1213 1210 1214 @action('Cancel') … … 1249 1253 def update(self): 1250 1254 tabs.need() 1255 self.tab1 = self.tab2 = self.tab3 = '' 1256 qs = self.request.get('QUERY_STRING', '') 1257 if not qs: 1258 qs = 'tab1' 1259 setattr(self, qs, 'active') 1251 1260 warning.need() 1252 1261 datatable.need() … … 1315 1324 'in this faculty.') 1316 1325 return 1317 self.redirect(self.url(self.context, u'@@manage')+'#tab-2') 1326 self.status = self.flash( 1327 "Department %s added." % data['code']) 1328 self.redirect(self.url(self.context, u'@@manage')+'?tab2') 1318 1329 1319 1330 @action('Cancel') … … 1425 1436 def update(self): 1426 1437 tabs.need() 1438 self.tab1 = self.tab2 = self.tab3 = self.tab4 = '' 1439 qs = self.request.get('QUERY_STRING', '') 1440 if not qs: 1441 qs = 'tab1' 1442 setattr(self, qs, 'active') 1427 1443 warning.need() 1428 1444 datatable.need() … … 1514 1530 message = u'Course %s successfully created.' % (course.code) 1515 1531 self.flash(message) 1516 self.redirect(self.url(self.context, u'@@manage')+' #tab-2')1532 self.redirect(self.url(self.context, u'@@manage')+'?tab2') 1517 1533 1518 1534 @action('Cancel', validator=NullValidator) … … 1551 1567 message = u'Certificate %s successfully created.' % (certificate.code) 1552 1568 self.flash(message) 1553 self.redirect(self.url(self.context, u'@@manage')+' #tab-3')1569 self.redirect(self.url(self.context, u'@@manage')+'?tab3') 1554 1570 return 1555 1571 … … 1620 1636 1621 1637 def update(self): 1622 tabs.need()1623 #warning.need()1624 1638 datatable.need() 1625 1639 return super(CertificatePage, self).update() … … 1650 1664 def update(self): 1651 1665 tabs.need() 1666 self.tab1 = self.tab2 = self.tab3 = '' 1667 qs = self.request.get('QUERY_STRING', '') 1668 if not qs: 1669 qs = 'tab1' 1670 setattr(self, qs, 'active') 1652 1671 warning.need() 1653 1672 datatable.need() … … 1717 1736 'part of this certificate.') 1718 1737 return 1719 self.redirect(self.url(self.context, u'@@manage')+'#tab-2') 1738 self.status = self.flash( 1739 "Course referrer %s_%s added." % (data['course'].code,data['level'])) 1740 self.redirect(self.url(self.context, u'@@manage')+'?tab2') 1720 1741 1721 1742 @action('Cancel', validator=NullValidator) -
main/waeup.sirp/trunk/src/waeup/sirp/browser/resources.py
r7468 r7484 147 147 #: 148 148 #: * In the `update()` method of the responsible view/page/form 149 #: require the JavaScript code to be rendered into the page:: 149 #: require the JavaScript code to be rendered into the page and set 150 # tab for redirection:: 150 151 #: 151 152 #: from waeup.sirp.browser.resources import tabs … … 155 156 #: def update(self): 156 157 #: tabs.need() 158 #: self.tab1 = self.tab2 = self.tab3 = '' 159 #: qs = self.request.get('QUERY_STRING', '') 160 #: if not qs: 161 #: qs = 'tab1' 162 #: setattr(self, qs, 'active') 157 163 #: 158 164 #: This way all required JavaScripts will be rendered correctly … … 164 170 165 171 #: <ul class="tabs" data-tabs="tabs" > 166 #: <li class="active"><a href="#tab-1">Tab 1 Heading</a></li>167 #: <li ><a href="#tab-2">Tab 2 Heading</a></li>168 #: <li ><a href="#tab-3">Tab 3 Heading</a></li>172 #: <li tal:attributes="class view/tab1"><a href="#tab-1">Tab 1 Heading</a></li> 173 #: <li tal:attributes="class view/tab2"><a href="#tab-2">Tab 2 Heading</a></li> 174 #: <li tal:attributes="class view/tab3"><a href="#tab-3">Tab 3 Heading</a></li> 169 175 #: </ul> 170 176 171 177 #: <div class="tab-content"> 172 #: <div id="tab-1" class="active">...</div>173 #: <div id="tab-2" >...</div>174 #: <div id="tab-3" >...</div>178 #: <div id="tab-1" tal:attributes="class view/tab1">...</div> 179 #: <div id="tab-2" tal:attributes="class view/tab2">...</div> 180 #: <div id="tab-3" tal:attributes="class view/tab3">...</div> 175 181 #: </div> 176 182 #: -
main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/certificatemanagepage.pt
r7464 r7484 3 3 4 4 <ul class="tabs" data-tabs="tabs"> 5 <li class="active"><a href="#tab-1"><span>Settings</span></a></li>6 <li ><a href="#tab-2"><span>Course Referrers</span></a></li>7 <li ><a href="#tab-3"><span>Local Roles</span></a></li>5 <li tal:attributes="class view/tab1"><a href="#tab-1"><span>Settings</span></a></li> 6 <li tal:attributes="class view/tab2"><a href="#tab-2"><span>Course Referrers</span></a></li> 7 <li tal:attributes="class view/tab3"><a href="#tab-3"><span>Local Roles</span></a></li> 8 8 </ul> 9 9 10 10 <div class="tab-content"> 11 <div id="tab-1" class="active">11 <div id="tab-1" tal:attributes="class view/tab1"> 12 12 <table class="form-table"> 13 13 <tbody> … … 41 41 </div> 42 42 </div> 43 <div id="tab-2" >43 <div id="tab-2" tal:attributes="class view/tab2"> 44 44 <h3>Course Referrers</h3> 45 45 <table class="display dataTableManage"> … … 96 96 </div> 97 97 </div> 98 <div id="tab-3" > <br />98 <div id="tab-3" tal:attributes="class view/tab3"> <br /> 99 99 <table class="display dataTableManage"> 100 100 <thead> -
main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/configurationmanagepage.pt
r7464 r7484 1 1 <form action="." tal:attributes="action request/URL" method="POST" enctype="multipart/form-data"> 2 2 <ul class="tabs" data-tabs="tabs"> 3 <li class="active">3 <li tal:attributes="class view/tab1"> 4 4 <a href="#tab-1"> 5 5 <span>Site Settings 6 6 </span></a> 7 7 </li> 8 <li >8 <li tal:attributes="class view/tab2"> 9 9 <a href="#tab-2">Session Configurations</a> 10 10 </li> 11 11 </ul> 12 12 <div class="tab-content"> 13 <div id="tab-1" class="active">13 <div id="tab-1" tal:attributes="class view/tab1"> 14 14 <table class="form-table"> 15 15 <tbody> … … 45 45 </div> 46 46 </div> 47 <div id="tab-2" > <br />47 <div id="tab-2" tal:attributes="class view/tab2"> <br /> 48 48 <table class="display dataTableManage"> 49 49 <thead> -
main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/departmentmanagepage.pt
r7464 r7484 1 1 <form action="." tal:attributes="action request/URL" method="POST" enctype="multipart/form-data"> 2 2 <ul class="tabs" data-tabs="tabs"> 3 <li class="active">3 <li tal:attributes="class view/tab1"> 4 4 <a href="#tab-1"> 5 5 <span>Settings 6 6 </span></a> 7 7 </li> 8 <li >8 <li tal:attributes="class view/tab2"> 9 9 <a href="#tab-2">Courses</a> 10 10 </li> 11 <li >11 <li tal:attributes="class view/tab3"> 12 12 <a href="#tab-3">Certificates</a> 13 13 </li> 14 <li >14 <li tal:attributes="class view/tab4"> 15 15 <a href="#tab-4">Local Roles</a> 16 16 </li> 17 17 </ul> 18 18 <div class="tab-content"> 19 <div id="tab-1" class="active">19 <div id="tab-1" tal:attributes="class view/tab1"> 20 20 <table class="form-table"> 21 21 <tbody> … … 50 50 </div> 51 51 </div> 52 <div id="tab-2" > <br />52 <div id="tab-2" tal:attributes="class view/tab2"> <br /> 53 53 <table class="display dataTableManage"> 54 54 <thead> … … 76 76 </div> 77 77 </div> 78 <div id="tab-3" > <br />78 <div id="tab-3" tal:attributes="class view/tab3"> <br /> 79 79 <table class="display dataTableManage"> 80 80 <thead> … … 102 102 </div> 103 103 </div> 104 <div id="tab-4" > <br />104 <div id="tab-4" tal:attributes="class view/tab4"> <br /> 105 105 <table class="display dataTableManage"> 106 106 <thead> -
main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/facultymanagepage.pt
r7464 r7484 1 1 <form action="." tal:attributes="action request/URL" method="POST" enctype="multipart/form-data"> 2 2 <ul class="tabs" data-tabs="tabs"> 3 <li class="active">3 <li tal:attributes="class view/tab1"> 4 4 <a href="#tab-1"> 5 5 <span>Settings 6 6 </span></a> 7 7 </li> 8 <li >8 <li tal:attributes="class view/tab2"> 9 9 <a href="#tab-2"> 10 10 <span tal:content="view/subunits">Contents 11 11 </span> </a> 12 12 </li> 13 <li >13 <li tal:attributes="class view/tab3"> 14 14 <a href="#tab-3"> 15 15 <span>Local Roles … … 18 18 </ul> 19 19 <div class="tab-content"> 20 <div id="tab-1" class="active">20 <div id="tab-1" tal:attributes="class view/tab1"> 21 21 <table class="form-table"> 22 22 <tbody> … … 52 52 </div> 53 53 </div> 54 <div id="tab-2" >54 <div id="tab-2" tal:attributes="class view/tab2"> 55 55 <h3 tal:content="view/subunits">Departments</h3> 56 56 <table> … … 83 83 </div> 84 84 </div> 85 <div id="tab-3" > <br />85 <div id="tab-3" tal:attributes="class view/tab3"> <br /> 86 86 <table class="display dataTableManage"> 87 87 <thead> -
main/waeup.sirp/trunk/src/waeup/sirp/hostels/browser.py
r7467 r7484 216 216 tabs.need() 217 217 datatable.need() 218 self.tab1 = self.tab2 = '' 219 qs = self.request.get('QUERY_STRING', '') 220 if not qs: 221 qs = 'tab1' 222 setattr(self, qs, 'active') 218 223 super(HostelManageFormPage, self).update() 219 224 return … … 231 236 self.flash(message) 232 237 write_log_message(self, message) 233 self.redirect(self.url(self.context, '@@manage')+' #tab-2')238 self.redirect(self.url(self.context, '@@manage')+'?tab2') 234 239 return 235 240 … … 241 246 else: 242 247 self.flash('No item selected.') 243 self.redirect(self.url(self.context, '@@manage')+' #tab-2')248 self.redirect(self.url(self.context, '@@manage')+'?tab2') 244 249 return 245 250 if not isinstance(child_id, list): … … 253 258 self.flash('Could not switch %s: %s: %s' % ( 254 259 id, sys.exc_info()[0], sys.exc_info()[1])) 255 self.redirect(self.url(self.context, '@@manage')+' #tab-2')260 self.redirect(self.url(self.context, '@@manage')+'?tab2') 256 261 return 257 262 if len(switched): … … 259 264 self.flash('Successfully switched beds: %s' % message) 260 265 write_log_message(self, 'switched: %s' % message) 261 self.redirect(self.url(self.context, '@@manage')+' #tab-2')266 self.redirect(self.url(self.context, '@@manage')+'?tab2') 262 267 return 263 268 … … 269 274 else: 270 275 self.flash('No item selected.') 271 self.redirect(self.url(self.context, '@@manage')+' #tab-2')276 self.redirect(self.url(self.context, '@@manage')+'?tab2') 272 277 return 273 278 if not isinstance(child_id, list): … … 282 287 self.flash('Successfully released beds: %s' % message) 283 288 write_log_message(self, 'released: %s' % message) 284 self.redirect(self.url(self.context, '@@manage')+' #tab-2')289 self.redirect(self.url(self.context, '@@manage')+'?tab2') 285 290 else: 286 291 self.flash('No allocated bed selected.') 287 self.redirect(self.url(self.context, '@@manage')+' #tab-2')292 self.redirect(self.url(self.context, '@@manage')+'?tab2') 288 293 return 289 294 … … 302 307 def save(self, **data): 303 308 msave(self, **data) 304 self.redirect(self.url(self.context.__parent__, '@@manage')+' #tab-2')309 self.redirect(self.url(self.context.__parent__, '@@manage')+'?tab2') 305 310 return 306 311 … … 310 315 # Beds must be released first before they can be allocated to 311 316 # other students. 312 self.redirect(self.url(self.context.__parent__, '@@manage')+' #tab-2')313 return 317 self.redirect(self.url(self.context.__parent__, '@@manage')+'?tab2') 318 return -
main/waeup.sirp/trunk/src/waeup/sirp/hostels/browser_templates/hostelmanagepage.pt
r7464 r7484 3 3 4 4 <ul class="tabs" data-tabs="tabs"> 5 <li class="active"><a href="#tab-1"><span>Hostel Data</span></a></li>6 <li ><a href="#tab-2"><span>Beds</span></a></li>5 <li tal:attributes="class view/tab1"><a href="#tab-1"><span>Hostel Data</span></a></li> 6 <li tal:attributes="class view/tab2"><a href="#tab-2"><span>Beds</span></a></li> 7 7 </ul> 8 8 9 9 <div class="tab-content"> 10 <div id="tab-1" class="active">10 <div id="tab-1" tal:attributes="class view/tab1"> 11 11 <table class="form-table"> 12 12 <tbody> … … 41 41 </div> 42 42 43 <div id="tab-2" >43 <div id="tab-2" tal:attributes="class view/tab2"> 44 44 <h3>Beds</h3> 45 45 <table class="display dataTableManage"> -
main/waeup.sirp/trunk/src/waeup/sirp/hostels/tests.py
r7357 r7484 310 310 self.browser.open(self.container_path + '/hall-1/hall-1_A_101_A') 311 311 self.assertEqual(self.browser.url, 312 self.container_path + '/hall-1/@@manage #tab-2')312 self.container_path + '/hall-1/@@manage?tab2') 313 313 # Updating the beds again will not affect the allocation and also 314 314 # the bed numbering remains the same -
main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py
r7466 r7484 716 716 warning.need() 717 717 datatable.need() 718 self.tab1 = self.tab2 = '' 719 qs = self.request.get('QUERY_STRING', '') 720 if not qs: 721 qs = 'tab1' 722 setattr(self, qs, 'active') 718 723 return 719 724 … … 738 743 self.context.addStudentStudyLevel( 739 744 self.context.certificate,studylevel) 745 self.flash('Study level has been added.') 740 746 except KeyError: 741 747 self.flash('This level exists.') 742 self.flash('Study level has been added.') 743 self.redirect(self.url(self.context, u'@@manage')+'#tab-2') 748 self.redirect(self.url(self.context, u'@@manage')+'?tab2') 744 749 return 745 750 … … 751 756 else: 752 757 self.flash('No study level selected.') 753 self.redirect(self.url(self.context, '@@manage')+' #tab-2')758 self.redirect(self.url(self.context, '@@manage')+'?tab2') 754 759 return 755 760 if not isinstance(child_id, list): … … 765 770 if len(deleted): 766 771 self.flash('Successfully removed: %s' % ', '.join(deleted)) 767 self.redirect(self.url(self.context, u'@@manage')+' #tab-2')772 self.redirect(self.url(self.context, u'@@manage')+'?tab2') 768 773 return 769 774 … … 894 899 warning.need() 895 900 datatable.need() 901 self.tab1 = self.tab2 = '' 902 qs = self.request.get('QUERY_STRING', '') 903 if not qs: 904 qs = 'tab1' 905 setattr(self, qs, 'active') 896 906 return 897 907 … … 916 926 else: 917 927 self.flash('No ticket selected.') 918 self.redirect(self.url(self.context, '@@manage')+' #tab-2')928 self.redirect(self.url(self.context, '@@manage')+'?tab2') 919 929 return 920 930 if not isinstance(child_id, list): … … 930 940 if len(deleted): 931 941 self.flash('Successfully removed: %s' % ', '.join(deleted)) 932 self.redirect(self.url(self.context, u'@@manage')+' #tab-2')942 self.redirect(self.url(self.context, u'@@manage')+'?tab2') 933 943 return 934 944 … … 1018 1028 return 1019 1029 self.flash('Successfully added %s.' % ticket.code) 1020 self.redirect(self.url(self.context, u'@@manage')+' #tab-2')1030 self.redirect(self.url(self.context, u'@@manage')+'?tab2') 1021 1031 return 1022 1032 -
main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/studycoursemanagepage.pt
r7464 r7484 3 3 4 4 <ul class="tabs" data-tabs="tabs"> 5 <li class="active"><a href="#tab-1"><span>Study Course Data</span></a></li>6 <li ><a href="#tab-2"><span>Study Levels</span></a></li>5 <li tal:attributes="class view/tab1"><a href="#tab-1"><span>Study Course Data</span></a></li> 6 <li tal:attributes="class view/tab2"><a href="#tab-2"><span>Study Levels</span></a></li> 7 7 </ul> 8 8 9 9 <div class="tab-content"> 10 <div id="tab-1" class="active">10 <div id="tab-1" tal:attributes="class view/tab1"> 11 11 <table class="form-table"> 12 12 <tbody> … … 41 41 </div> 42 42 43 <div id="tab-2" >43 <div id="tab-2" tal:attributes="class view/tab2"> 44 44 <h3>Study Levels (Course Lists)</h3> 45 45 <table class="display dataTableManage"> -
main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/studylevelmanagepage.pt
r7464 r7484 3 3 4 4 <ul class="tabs" data-tabs="tabs"> 5 <li class="active"><a href="#tab-1"><span>Study Level Data</span></a></li>6 <li ><a href="#tab-2"><span>Course Tickets</span></a></li>5 <li tal:attributes="class view/tab1"><a href="#tab-1"><span>Study Level Data</span></a></li> 6 <li tal:attributes="class view/tab2"><a href="#tab-2"><span>Course Tickets</span></a></li> 7 7 </ul> 8 8 9 9 <div class="tab-content"> 10 <div id="tab-1" class="active">10 <div id="tab-1" tal:attributes="class view/tab1"> 11 11 <table class="form-table"> 12 12 <tbody> … … 41 41 </div> 42 42 43 <div id="tab-2" >43 <div id="tab-2" tal:attributes="class view/tab2"> 44 44 <h3>Course Tickets</h3> 45 45 <table class="display dataTableManage">
Note: See TracChangeset for help on using the changeset viewer.