Changeset 15946 for main/waeup.kofa/trunk/src/waeup/kofa
- Timestamp:
- 23 Jan 2020, 14:19:15 (5 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/applicants
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r15943 r15946 1003 1003 return False 1004 1004 1005 def display_fileupload(self, filename): 1006 """This method can be used in custom packages to avoid unneccessary 1007 file uploads. 1008 """ 1009 return True 1010 1005 1011 @property 1006 1012 def form_fields(self): … … 1059 1065 else: 1060 1066 self.upload_success = False 1061 self.max_file_upload_size = 1024 * getUtility(IStudentsUtils).MAX_KB 1067 self.max_file_upload_size = string_from_bytes( 1068 1024*getUtility(IStudentsUtils).MAX_KB) 1062 1069 return 1063 1070 -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicantdisplaypage.pt
r15943 r15946 20 20 <table i18n:domain="waeup.kofa" class="form-table"> 21 21 <tbody> 22 <tal:files condition="view/file_links"> 23 <tr> 24 <td class="separator" colspan=2> 25 Files 26 </td> 27 </tr> 28 <tr> 29 <td colspan=2> 30 <span tal:replace="structure view/file_links" /> 31 </td> 32 </tr> 33 </tal:files> 22 34 <tal:widgets content="structure provider:widgets" /> 23 35 <tr tal:condition="view/getCourseAdmitted"> … … 37 49 </td> 38 50 </tr> 39 <tal:files>40 <tr>41 <td class="separator" colspan=2>42 Files43 </td>44 </tr>45 <tr>46 <td colspan=2>47 <span tal:replace="structure view/file_links" />48 </td>49 </tr>50 </tal:files>51 51 </tbody> 52 52 </table> -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicanteditpage.pt
r15943 r15946 46 46 <tal:files> 47 47 <tr tal:repeat="filename view/additional_files"> 48 <td class="fieldname"> 49 <span tal:replace="python:filename[0]">FILENAME</span> 50 </td> 51 <td> 52 <p tal:condition="python:view.file_exists(filename[1])"> 53 <a tal:attributes="href python:filename[1]"i18n:translate=""> 54 Download pdf file 55 </a> 56 </p> 57 <div class="input-group half"> 58 <div class="input-group-btn"> 59 <div class="btn btn-default btn-file"> 60 Select… 61 <input type="file" tal:attributes="name python:filename[1]" /> 48 <tal:cond tal:condition="python:view.display_fileupload(filename)"> 49 <td class="fieldname"> 50 <span tal:replace="python:filename[0]">FILENAME</span>: 51 </td> 52 <td> 53 <p tal:condition="python:view.file_exists(filename[1])"> 54 <a tal:attributes="href python:filename[1]"i18n:translate=""> 55 Download pdf file 56 </a> 57 </p> 58 <div class="input-group half"> 59 <div class="input-group-btn"> 60 <div class="btn btn-default btn-file"> 61 Select… 62 <input type="file" tal:attributes="name python:filename[1]" /> 63 </div> 62 64 </div> 65 <input type="text" class="form-control" readonly> 63 66 </div> 64 <input type="text" class="form-control" readonly> 65 </div> 66 <span i18n:translate=""> 67 PDF files only. Max. file size: 68 </span> 69 <span tal:replace="view/max_file_upload_size">10 KB</span> 70 </td> 67 <span i18n:translate=""> 68 PDF files only. Max. file size: 69 </span> 70 <span tal:replace="view/max_file_upload_size">10 KB</span> 71 </td> 72 </tal:cond> 71 73 </tr> 72 74 </tal:files> -
main/waeup.kofa/trunk/src/waeup/kofa/applicants/utils.py
r15943 r15946 44 44 #: respective display or input widget. 45 45 SEPARATORS_DICT = { 46 'form.applicant_id': _(u'Base Data'), 46 47 'form.course1': _(u'Desired Study Courses'), 47 48 'form.notice': _(u'Application Process Data'),
Note: See TracChangeset for help on using the changeset viewer.