Changeset 6029 for main/waeup.sirp/trunk/src/waeup/sirp
- Timestamp:
- 6 May 2011, 07:16:31 (14 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp/applicants
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
r6015 r6029 226 226 return self.view.application_url('applicants') 227 227 228 class ApplicantsContainerPage(WAeUP Page):228 class ApplicantsContainerPage(WAeUPDisplayFormPage): 229 229 """The standard view for regular applicant containers. 230 230 """ 231 231 grok.context(IApplicantsContainer) 232 232 grok.name('index') 233 grok.template('applicantscontainerpage') 233 234 pnav = 3 234 235 … … 243 244 244 245 def descriptionToHTML(self): 245 return ReST2HTML(self.context.description) 246 if self.context.description: 247 return ReST2HTML(self.context.description) 248 else: 249 return 246 250 247 251 class ManageApplicantsContainerActionButton(ManageActionButton): -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/applicantscontainerpage.pt
r5863 r6029 1 < div>1 <h2> 2 2 <span tal:content="context/title">Title</span> 3 </div> 3 </h2> 4 4 5 <div tal:content="structure view/descriptionToHTML"> 5 6 Description 6 7 </div> 8 9 <table class="zebra"> 10 <tbody> 11 <tal:block repeat="widget view/widgets"> 12 <tal:condition condition="python:widget.name not in ['form.description','form.title']"> 13 <tr> 14 <td class="fieldname"> 15 <tal:block content="python:widget.label"/>: 16 </td> 17 <td class="field"> 18 <input tal:replace="structure widget" /> 19 </td> 20 </tr> 21 </tal:condition> 22 </tal:block> 23 </tbody> 24 </table> -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/interfaces.py
r5980 r6029 104 104 """ 105 105 title = schema.TextLine( 106 title = u' Short descriptionof the type of applicants stored here.',106 title = u'Title of the type of applicants stored here.', 107 107 required = True, 108 108 default = u'Untitled',
Note: See TracChangeset for help on using the changeset viewer.