Changeset 9078 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 30 Jul 2012, 04:50:09 (12 years ago)
- 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 307 307 pnav = 3 308 308 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 315 322 316 323 @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"> 6 2 <tbody> 7 3 <tal:block repeat="widget view/widgets"> … … 19 15 </tbody> 20 16 </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.