Changeset 12314 for main/waeup.ikoba/trunk/src/waeup
- Timestamp:
- 24 Dec 2014, 14:18:18 (10 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/products/interfaces.py
r12262 r12314 22 22 ContextualDictSourceFactoryBase) 23 23 from waeup.ikoba.interfaces import MessageFactory as _ 24 from waeup.ikoba.products.productoptions import ProductOptionEntryField 24 25 25 26 class ConCatSource(ContextualDictSourceFactoryBase): … … 62 63 required = True, 63 64 ) 65 66 options = schema.List( 67 title = _(u'Options/Fees'), 68 value_type = ProductOptionEntryField(), 69 required = False, 70 readonly = False, 71 default = [], 72 ) -
main/waeup.ikoba/trunk/src/waeup/ikoba/widgets/objectwidget.pt
r7802 r12314 1 <span tal:repeat="widget context/subwidgets"> 2 <span tal:define="error widget/error" 3 tal:replace="structure error" tal:condition="error" /> 4 <span tal:replace="structure widget" /> 5 </span> 1 <div class="form-inline"> 2 <span tal:repeat="widget context/subwidgets"> 3 <div class="form-group"> 4 <span for="field.name" title="The widget's hint" 5 tal:attributes="for widget/name; title widget/hint" 6 tal:replace="widget/label" 7 i18n:translate=""> 8 LABEL 9 </span>: 10 <tal:block define="error widget/error" 11 condition="error" content="structure error"> 12 ERROR 13 </tal:block> 14 <div tal:replace="structure widget"> 15 WIDGET 16 </div> 17 </div> 18 </span> 19 </div> -
main/waeup.ikoba/trunk/src/waeup/ikoba/widgets/objectwidget.py
r11949 r12314 28 28 template = ViewPageTemplateFile('objectwidget.pt') 29 29 30 class IkobaObjectWidgetDisplayView(ObjectWidgetView): 31 template = ViewPageTemplateFile('objectdisplaywidget.pt') 32 30 33 class IkobaObjectWidget(ObjectWidget): 31 34 32 35 def __init__(self, context, request, factory, **kw): 33 #super(ResultsEntryWidget, self).__init__(context, request)34 36 super(ObjectWidget, self).__init__(context, request) 35 37 … … 49 51 # set up my subwidgets 50 52 self._setUpWidgets() 51 53 52 54 def subwidgets(self): 53 55 result = [self.getSubWidget(name) for name in self.names] … … 55 57 56 58 def _setUpWidgets(self): 57 return self._setUpEditWidgets() 59 self._setUpEditWidgets() 60 # enlarge title widgets 61 for subwidget in self.subwidgets(): 62 if 'title' in subwidget.name: 63 subwidget.displayWidth = '50%' 64 return 58 65 59 66 def _getView(self, request): … … 73 80 def _setUpWidgets(self): 74 81 return self._setUpDisplayWidgets() 82 83 def _getView(self, request): 84 return IkobaObjectWidgetDisplayView(self, request)
Note: See TracChangeset for help on using the changeset viewer.