Changeset 9078


Ignore:
Timestamp:
30 Jul 2012, 04:50:09 (12 years ago)
Author:
Henrik Bettermann
Message:

Show start and end dates and application fee on ApplicantsContainerPage? also to anonymous.

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

    r9051 r9078  
    307307    pnav = 3
    308308
    309     form_fields = grok.AutoFields(IApplicantsContainer).omit('title')
    310     form_fields['description'].custom_widget = HTMLDisplayWidget
    311     form_fields[
    312         'startdate'].custom_widget = FriendlyDatetimeDisplayWidget('le')
    313     form_fields[
    314         'enddate'].custom_widget = FriendlyDatetimeDisplayWidget('le')
     309    @property
     310    def form_fields(self):
     311        form_fields = grok.AutoFields(IApplicantsContainer).omit('title')
     312        form_fields['description'].custom_widget = HTMLDisplayWidget
     313        form_fields[
     314            'startdate'].custom_widget = FriendlyDatetimeDisplayWidget('le')
     315        form_fields[
     316            'enddate'].custom_widget = FriendlyDatetimeDisplayWidget('le')
     317        if self.request.principal.id == 'zope.anybody':
     318            form_fields = form_fields.omit(
     319                'code', 'prefix', 'year', 'mode',
     320                'strict_deadline', 'application_category')
     321        return form_fields
    315322
    316323    @property
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicantscontainerpage.pt

    r8406 r9078  
    1 <span tal:condition="view/introduction" tal:omit-tag="">
    2   <p tal:content="structure view/introduction">INTRODUCTION</p>
    3 </span>
    4 
    5 <table class="form-table" tal:condition="layout/isAuthenticated">
     1<table class="form-table">
    62  <tbody>
    73    <tal:block repeat="widget view/widgets">
     
    1915  </tbody>
    2016</table>
     17
     18<span tal:condition="view/introduction" tal:omit-tag="">
     19  <p tal:content="structure view/introduction">INTRODUCTION</p>
     20</span>
Note: See TracChangeset for help on using the changeset viewer.