Changeset 15835


Ignore:
Timestamp:
21 Nov 2019, 12:53:50 (5 years ago)
Author:
Henrik Bettermann
Message:

Show files at the top.

Provide application slip for all types of applications.

Location:
main/waeup.aaue/trunk/src/waeup/aaue/applicants
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/applicants/browser.py

    r15639 r15835  
    343343    @property
    344344    def target_url(self):
    345         if self.context.state in ('initialized', 'started', 'paid') \
    346             or self.context.special or self.view.target in ('trans', 'cert'):
     345        if self.context.state in ('initialized', 'started', 'paid'):
     346            # or self.context.special or self.view.target in ('trans', 'cert'):
    347347            return
    348348        return self.view.url(self.view.context, self.target)
     
    370370        if note:
    371371            return '<br /><br />' + note
     372        if self.target is not None and self.target in (
     373            'trans', 'cert', 'ver', 'send'):
     374            return
    372375        if self.context.sex == 'm':
    373376            pronoun = 'he'
     
    396399            for field in UDE_OMIT_PDF_FIELDS:
    397400                form_fields = form_fields.omit(field)
     401        elif self.target is not None and self.target == 'trans':
     402            form_fields = grok.AutoFields(ITranscriptApplicant).omit(
     403                'locked', 'suspended')
     404        elif self.target is not None and self.target == 'ver':
     405            form_fields = grok.AutoFields(IVerificationRequest).omit(
     406                'locked', 'suspended')
     407        elif self.target is not None and self.target == 'send':
     408            form_fields = grok.AutoFields(ISendByEmailRequest).omit(
     409                'locked', 'suspended')
     410        elif self.target is not None and self.target == 'cert':
     411            form_fields = grok.AutoFields(ICertificateRequest).omit(
     412                'locked', 'suspended')
    398413        else:
    399414            for field in UG_OMIT_PDF_FIELDS:
  • main/waeup.aaue/trunk/src/waeup/aaue/applicants/browser_templates/applicantdisplaypage.pt

    r15735 r15835  
    2020<table i18n:domain="waeup.kofa" class="form-table">
    2121  <tbody>
     22    <tal:files tal:condition="python: view.target in ('trans', 'cert', 'ver', 'send')">
     23      <tr>
     24        <td class="separator" colspan=2>
     25          Files
     26        </td>
     27      </tr>
     28      <tr>
     29        <td colspan=2>
     30 
     31          <span tal:replace="structure view/file_links" />
     32
     33        </td>
     34      </tr>
     35    </tal:files>
    2236    <tal:widgets content="structure provider:widgets" />
    2337    <tr tal:condition="view/getCourseAdmitted">
     
    3751      </td>
    3852    <tr>
    39     <tr tal:condition="python: view.target in ('trans', 'cert', 'ver', 'send')">
    40       <td class="fieldname" i18n:translate="">
    41         Files:
    42       </td>
    43       <td>
    44         <span tal:replace="structure view/file_links" />
    45       </td>
    46     </tr>
    4753  </tbody>
    4854</table>
Note: See TracChangeset for help on using the changeset viewer.