Changeset 7329 for main/waeup.sirp/trunk/src/waeup
- Timestamp:
- 11 Dec 2011, 13:18:40 (13 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py
r7321 r7329 35 35 ContactAdminForm) 36 36 from waeup.sirp.browser.breadcrumbs import Breadcrumb 37 from waeup.sirp.browser.resources import datepicker, datatable, tabs 37 from waeup.sirp.browser.resources import datepicker, datatable, tabs, warning 38 38 from waeup.sirp.browser.viewlets import ( 39 39 ManageActionButton, AddActionButton) 40 from waeup.sirp.browser.layout import jsaction, JSAction 40 41 from waeup.sirp.interfaces import ( 41 42 ISIRPObject, IUserAccount, IExtFileStore, IPasswordValidator, IContactForm) … … 270 271 datatable.need() 271 272 toggleall.need() 273 warning.need() 272 274 form = self.request.form 273 275 self.hitlist = [] … … 721 723 super(StudyCourseManageFormPage, self).update() 722 724 tabs.need() 725 warning.need() 723 726 datatable.need() 724 727 return … … 749 752 return 750 753 751 @ grok.action('Remove selected levels')754 @jsaction('Remove selected levels') 752 755 def delStudyLevels(self, **data): 753 756 form = self.request.form … … 869 872 super(StudyLevelManageFormPage, self).update() 870 873 tabs.need() 874 warning.need() 871 875 datatable.need() 872 876 return … … 889 893 self.redirect(self.url(self.context, '@@add')) 890 894 891 @ grok.action('Remove selected tickets')895 @jsaction('Remove selected tickets') 892 896 def delCourseTicket(self, **data): 893 897 form = self.request.form … … 1052 1056 super(PaymentsManageFormPage, self).update() 1053 1057 datatable.need() 1054 return 1055 1056 @grok.action('Remove selected tickets') 1058 warning.need() 1059 return 1060 1061 @jsaction('Remove selected tickets') 1057 1062 def delPaymentTicket(self, **data): 1058 1063 form = self.request.form … … 1314 1319 super(AccommodationManageFormPage, self).update() 1315 1320 datatable.need() 1316 return 1317 1318 @grok.action('Remove selected') 1321 warning.need() 1322 return 1323 1324 @jsaction('Remove selected') 1319 1325 def delBedTickets(self, **data): 1320 1326 if getattr(self.request.principal, 'user_type', None) == 'student': … … 2010 2016 # tabs.need() 2011 2017 datatable.need() 2018 warning.need() 2012 2019 return 2013 2020 … … 2031 2038 self.redirect(self.url(self.context, 'ctadd')) 2032 2039 2033 @ grok.action('Remove selected tickets')2040 @jsaction('Remove selected tickets') 2034 2041 def delCourseTicket(self, **data): 2035 2042 form = self.request.form -
main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/containermanagepage.pt
r7205 r7329 49 49 50 50 <div class="actionButtons"> 51 <input type="submit" name="remove" value="Remove selected" /> 51 <input type="submit" name="remove" value="Remove selected" 52 onclick="return confirmPost('Are you sure?')"/> 52 53 </div> 53 54
Note: See TracChangeset for help on using the changeset viewer.