Changeset 16578


Ignore:
Timestamp:
19 Aug 2021, 20:28:54 (3 years ago)
Author:
Henrik Bettermann
Message:

Make pictures editable by officers even if applicants are not allowed to change their picture.

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

Legend:

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

    r16564 r16578  
    11731173        return False
    11741174
     1175    @property
     1176    def picture_editable(self):
     1177        return self.context.__parent__.with_picture
     1178
    11751179    # This method is also used by the ApplicantEditFormPage
    11761180    def delPaymentTickets(self, **data):
     
    12731277                [_('Remove selected tickets')]]
    12741278        return actions
     1279
     1280    @property
     1281    def picture_editable(self):
     1282        return self.context.__parent__.picture_editable
    12751283
    12761284    def unremovable(self, ticket):
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicanteditpage.pt

    r16545 r16578  
    2222    <tbody>
    2323      <tal:widgets content="structure provider:widgets" />
    24       <tr tal:condition="python: context.__parent__.picture_editable">
     24      <tr tal:condition="view/picture_editable">
    2525        <td class="fieldname" i18n:translate="">
    2626          Passport Photo:
Note: See TracChangeset for help on using the changeset viewer.