Ignore:
Timestamp:
12 Dec 2018, 09:00:05 (6 years ago)
Author:
Henrik Bettermann
Message:

Enable passport upload also for cert and trans applications.

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

Legend:

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

    r15217 r15265  
    448448    def dataNotComplete(self):
    449449        store = getUtility(IExtFileStore)
    450         if not self.target[:4] in ('cert', 'tran'):
     450        # Temporarily enable passport upload also for cert and trans
     451        # applications.
     452        if True: # not self.target[:4] in ('cert', 'tran'):
    451453            if not store.getFileByContext(self.context, attr=u'passport.jpg'):
    452454                return _('No passport picture uploaded.')
    453             if not self.request.form.get('confirm_passport', False):
     455            if not self.target[:4] in ('cert', 'tran') and \
     456                not self.request.form.get('confirm_passport', False):
    454457                return _('Passport picture confirmation box not ticked.')
    455458        if self.target in ('trans', 'cert') and \
  • main/waeup.aaue/trunk/src/waeup/aaue/applicants/browser_templates/applicantdisplaypage.pt

    r15117 r15265  
    1515</div>
    1616
    17 <img  tal:condition="python: not view.target in ('trans', 'cert')"
    18       src="" height="180px" tal:attributes="src view/passport_url" />
     17<img  src="" height="180px" tal:attributes="src view/passport_url" />
    1918
    2019<table i18n:domain="waeup.kofa" class="form-table">
  • main/waeup.aaue/trunk/src/waeup/aaue/applicants/browser_templates/applicanteditpage.pt

    r15117 r15265  
    2222    <tbody>
    2323      <tal:widgets content="structure provider:widgets" />
    24       <tr tal:condition="python: not view.target in ('trans', 'cert')">
     24      <tr>
    2525        <td class="fieldname" i18n:translate="">
    2626          Passport Photo:
Note: See TracChangeset for help on using the changeset viewer.