Ignore:
Timestamp:
19 Jul 2019, 06:06:17 (5 years ago)
Author:
Henrik Bettermann
Message:

Adjust to changes in base package.

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

    r15459 r15503  
    450450        # Temporarily enable passport upload also for cert and trans
    451451        # applications.
    452         if True: # not self.target[:4] in ('cert', 'tran'):
     452        if self.context.__parent__.with_picture:
    453453            if not store.getFileByContext(self.context, attr=u'passport.jpg'):
    454454                return _('No passport picture uploaded.')
  • main/waeup.aaue/trunk/src/waeup/aaue/applicants/browser_templates/applicantdisplaypage.pt

    r15265 r15503  
    1515</div>
    1616
    17 <img  src="" height="180px" tal:attributes="src view/passport_url" />
     17<img tal:condition="python: context.__parent__.with_picture"
     18     src="" height="180px" tal:attributes="src view/passport_url" />
    1819
    1920<table i18n:domain="waeup.kofa" class="form-table">
  • main/waeup.aaue/trunk/src/waeup/aaue/applicants/browser_templates/applicanteditpage.pt

    r15265 r15503  
    9494  </table>
    9595
    96   <div tal:condition="python: not view.manage_applications and not view.target in ('trans', 'cert')">
     96  <div tal:condition="python: not view.manage_applications
     97                              and not view.target in ('trans', 'cert')
     98                              and context.__parent__.with_picture">
    9799    <input id="confirm_passport" name="confirm_passport"
    98100           type="checkbox" value="True"/>&nbsp;&nbsp;
     
    107109    </span>
    108110  </div>
    109   <div tal:condition="python: not view.manage_applications and view.target not in ('trans', 'cert')">
     111  <div tal:condition="python: not view.manage_applications
     112                              and view.target not in ('trans', 'cert')
     113                              and context.__parent__.with_picture">
    110114    <input id="confirm_passport" name="confirm_passport"
    111115           type="checkbox" value="True"/>&nbsp;&nbsp;
Note: See TracChangeset for help on using the changeset viewer.