Ignore:
Timestamp:
5 Sep 2018, 11:10:00 (6 years ago)
Author:
Henrik Bettermann
Message:

Simplify pagetemplate.

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

Legend:

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

    r14850 r15125  
    272272           admitted.
    273273        """
    274         course_admitted = self.context.course_admitted
    275         if getattr(course_admitted, '__parent__',None) and \
    276             self.context.admchecking_fee_paid():
    277             url = self.url(course_admitted)
    278             title = course_admitted.title
    279             code = course_admitted.code
    280             return '<a href="%s">%s - %s</a>' %(url,code,title)
    281         return ''
     274        if self.admission_checking_info:
     275            return '<span class="hint">%s</span>' % self.admission_checking_info
     276        return super(CustomApplicantDisplayFormPage, self).getCourseAdmitted()
    282277
    283278    @property
     
    286281            not self.context.admchecking_fee_paid():
    287282            return _('You must pay the admission checking fee '
    288                      'to view your screening results and course admitted.')
     283                     'to view your screening results and your course admitted.')
    289284        return
    290285
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/browser_templates/applicantdisplaypage.pt

    r14139 r15125  
    7373      </td>
    7474    </tr>
    75     <tr tal:condition="view/admission_checking_info">
    76       <td class="fieldname" i18n:translate="">
    77           Admitted Course of Study:
    78       </td>
    79       <td>
    80         <span class="hint" tal:content="view/admission_checking_info" />
    81       </td>
    82     </tr>
    8375    <tr>
    8476      <td class="fieldname" i18n:translate="">
Note: See TracChangeset for help on using the changeset viewer.