Changeset 12316 for main/waeup.ikoba/trunk/src/waeup/ikoba/widgets
- Timestamp:
- 25 Dec 2014, 08:27:45 (10 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba/widgets
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/widgets/objectwidget.py
r12314 r12316 28 28 template = ViewPageTemplateFile('objectwidget.pt') 29 29 30 class I kobaObjectWidgetDisplayView(ObjectWidgetView):31 template = ViewPageTemplateFile(' objectdisplaywidget.pt')30 class IProductOptionWidgetDisplayView(ObjectWidgetView): 31 template = ViewPageTemplateFile('productoptiondisplaywidget.pt') 32 32 33 33 class IkobaObjectWidget(ObjectWidget): … … 82 82 83 83 def _getView(self, request): 84 return IkobaObjectWidgetDisplayView(self, request) 84 if self.context.schema.__name__ == 'IProductOptionEntry': 85 return IProductOptionWidgetDisplayView(self, request) 86 return IkobaObjectWidgetView(self, request) -
main/waeup.ikoba/trunk/src/waeup/ikoba/widgets/productoptiondisplaywidget.pt
r12314 r12316 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> 1 <span tal:repeat="widget context/subwidgets"> 2 <div tal:replace="structure widget"> 3 WIDGET 17 4 </div> 18 <br /> 19 </span> 20 </div> 5 <span tal:condition="python: not 'fee' in widget.name and not 'currency' in widget.name">@</span> 6 </span>
Note: See TracChangeset for help on using the changeset viewer.