Changeset 11105 for main/waeup.kofa
- Timestamp:
- 17 Feb 2014, 06:47:07 (11 years ago)
- Location:
- main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/browser/pages.py
r11066 r11105 1824 1824 @action(_('Add local role'), validator=NullValidator) 1825 1825 def addLocalRole(self, **data): 1826 return add_local_role(self, '3',**data)1826 return add_local_role(self,3,**data) 1827 1827 1828 1828 @action(_('Remove selected local roles')) … … 2015 2015 @action(_('Add local role'), validator=NullValidator) 2016 2016 def addLocalRole(self, **data): 2017 return add_local_role(self, 4,**data)2017 return add_local_role(self,4,**data) 2018 2018 2019 2019 @action(_('Remove selected local roles')) … … 2146 2146 @action(_('Add local role'), validator=NullValidator) 2147 2147 def addLocalRole(self, **data): 2148 return add_local_role(self, 2,**data)2148 return add_local_role(self,2,**data) 2149 2149 2150 2150 @action(_('Remove selected local roles')) … … 2217 2217 @action(_('Add local role'), validator=NullValidator) 2218 2218 def addLocalRole(self, **data): 2219 return add_local_role(self, 3,**data)2219 return add_local_role(self,3,**data) 2220 2220 2221 2221 @action(_('Remove selected local roles')) -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/students/browser_templates/clearanceeditpage.pt
r11013 r11105 16 16 <div class="tab-content"> 17 17 <div id="tab1" class="active tab-pane"> 18 <br /> 18 19 <table class="form-table"> 19 20 <tbody> … … 30 31 31 32 <div id="tab2" class="tab-pane"> 33 <br /> 32 34 <table class="form-table"> 33 35 <tbody> -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/students/viewlets.py
r11013 r11105 825 825 size = file_size(upload) 826 826 if size > max_size: 827 view.flash(_('Uploaded file is too big.') )827 view.flash(_('Uploaded file is too big.'), type="danger") 828 828 return False 829 829 upload.seek(0) # file pointer moved when determining size … … 831 831 upload.seek(0) # same here 832 832 if file_format is None: 833 view.flash(_('Could not determine file type.') )833 view.flash(_('Could not determine file type.'), type="danger") 834 834 return False 835 835 basename, expected_ext = os.path.splitext(download_name) … … 837 837 if '.' + file_format != expected_ext: 838 838 view.flash(_('${a} file extension expected.', 839 mapping = {'a':expected_ext[1:]}) )839 mapping = {'a':expected_ext[1:]}), type="danger") 840 840 return False 841 841 else: … … 843 843 view.flash( 844 844 _('Only the following extensions are allowed: ${a}', 845 mapping = {'a':', '.join(ALLOWED_FILE_EXTENSIONS)})) 845 mapping = {'a':', '.join(ALLOWED_FILE_EXTENSIONS)}), 846 type="danger") 846 847 return False 847 848 download_name += '.' + file_format … … 891 892 template = default_fileupload_template 892 893 grok.require('waeup.uploadStudentFile') 893 tab_redirect = '#tab2 '894 tab_redirect = '#tab2-top' 894 895 mus = 1024 * 150 895 896 upload_button =_('Upload new file') … … 931 932 self.context, self.view.__name__) + self.tab_redirect) 932 933 else: 933 self.view.flash(_('No local file selected.') )934 self.view.flash(_('No local file selected.'), type="danger") 934 935 self.view.redirect( 935 936 self.view.url( … … 986 987 mus = 1024 * 150 987 988 download_name = u'birth_certificate' 988 tab_redirect = '#tab2 '989 tab_redirect = '#tab2-top' 989 990 990 991 class Image(grok.View): -
main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/widgets/sequencewidget.pt
r11103 r11105 1 <table border="0" class="sequencewidget" 2 i18n:domain="waeup.kofa"> 1 <table i18n:domain="waeup.kofa"> 3 2 <tr tal:repeat="widget view/widgets"> 4 3 <td>
Note: See TracChangeset for help on using the changeset viewer.