Ignore:
Timestamp:
28 Jun 2020, 17:43:38 (4 years ago)
Author:
Henrik Bettermann
Message:

picture_editable

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

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicanteditpage.pt

    r15946 r16133  
    2222    <tbody>
    2323      <tal:widgets content="structure provider:widgets" />
    24       <tr tal:condition="python: context.__parent__.with_picture">
     24      <tr tal:condition="python: context.__parent__.picture_editable">
    2525        <td class="fieldname" i18n:translate="">
    2626          Passport Photo:
     
    4242          </span>
    4343          <span tal:replace="view/max_upload_size">10 KB</span>
     44        </td>
    4445      </tr>
    4546
     
    101102
    102103  <div tal:condition="python: not view.manage_applications
    103                               and context.__parent__.with_picture">
     104                              and context.__parent__.picture_editable">
    104105    <input id="confirm_passport" name="confirm_passport"
    105106           type="checkbox" value="True"/>&nbsp;&nbsp;
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/container.py

    r15517 r16133  
    5959        'waeup.local.ApplicationsManager',
    6060        ]
     61
     62    @property
     63    def picture_editable(self):
     64        # not used in base package
     65        return self.with_picture
    6166
    6267    def addApplicant(self, applicant):
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/interfaces.py

    r16058 r16133  
    193193    description_dict = Attribute('Language translation dictionary with values in HTML format')
    194194    local_roles = Attribute('List of local role names')
     195    picture_editable = Attribute('False if applicants are not allowed to edit uploaded pictures.')
    195196
    196197
Note: See TracChangeset for help on using the changeset viewer.