Ignore:
Timestamp:
25 Dec 2014, 08:27:45 (10 years ago)
Author:
Henrik Bettermann
Message:

Rename and dedicate the new display widget to product options only.

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  
    2828    template = ViewPageTemplateFile('objectwidget.pt')
    2929
    30 class IkobaObjectWidgetDisplayView(ObjectWidgetView):
    31     template = ViewPageTemplateFile('objectdisplaywidget.pt')
     30class IProductOptionWidgetDisplayView(ObjectWidgetView):
     31    template = ViewPageTemplateFile('productoptiondisplaywidget.pt')
    3232
    3333class IkobaObjectWidget(ObjectWidget):
     
    8282
    8383    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
    174    </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.