Changeset 6063 for main/waeup.sirp/trunk/src
- Timestamp:
- 12 May 2011, 15:50:57 (14 years ago)
- Location:
- main/waeup.sirp/trunk/src/waeup/sirp
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser.py
r6054 r6063 5 5 ## $Id$ 6 6 ## 7 ## Copyright (C) 2010 Uli Fouquet 7 ## Copyright (C) 2010 Uli Fouquet & Henrik Bettermann 8 8 ## This program is free software; you can redistribute it and/or modify 9 9 ## it under the terms of the GNU General Public License as published by … … 50 50 from waeup.sirp.widgets.datewidget import ( 51 51 FriendlyDateWidget, FriendlyDateDisplayWidget) 52 53 from waeup.sirp.widgets.restwidget import ReSTWidget 52 54 53 55 #from zope.formlib.objectwidget import ObjectWidget … … 235 237 form_fields['startdate'].custom_widget = FriendlyDateDisplayWidget('le') 236 238 form_fields['enddate'].custom_widget = FriendlyDateDisplayWidget('le') 239 form_fields['description'].custom_widget = ReSTWidget 237 240 238 241 @property … … 245 248 return self.title 246 249 247 def descriptionToHTML(self):248 if self.context.description:249 return ReST2HTML(self.context.description)250 else:251 return250 #def descriptionToHTML(self): 251 # if self.context.description: 252 # return ReST2HTML(self.context.description) 253 # else: 254 # return 252 255 253 256 class ManageApplicantsContainerActionButton(ManageActionButton): -
main/waeup.sirp/trunk/src/waeup/sirp/applicants/browser_templates/applicantscontainerpage.pt
r6031 r6063 1 1 <h2 tal:content="context/title">Title</h2> 2 2 3 < div tal:content="structure view/descriptionToHTML">4 Description 5 < /div>3 <span tal:replace="structure view/widgets/description">Title</span> 4 5 <br /> 6 6 7 7 <table class="zebra"> … … 19 19 <tr> 20 20 <td class="fieldname"> 21 <tal:block content="python:widget.label"/>:21 <tal:block replace="python:widget.label"/>: 22 22 </td> 23 23 <td class="field"> 24 < inputtal:replace="structure widget" />24 <tal:block tal:replace="structure widget" /> 25 25 </td> 26 26 </tr> -
main/waeup.sirp/trunk/src/waeup/sirp/browser/static/waeup-base.css
r6061 r6063 31 31 } 32 32 33 /* Define different styles for headlines in rendered restruc rured text */34 35 # h1h1 {33 /* Define different styles for headlines in rendered restructured text */ 34 35 #rest h1 { 36 36 font-size:130%; 37 37 } 38 38 39 # h2h2 {39 #rest h2 { 40 40 font-size:100%; 41 41 } 42 42 43 # h3h3 {43 #rest h3 { 44 44 font-size:100%; 45 45 } 46 46 47 47 48 # h4h4 {48 #rest h4 { 49 49 font-size:100%; 50 50 }
Note: See TracChangeset for help on using the changeset viewer.