products/CPSonFive.old

changeset 5:c6b4dc97c687

Removed the uncesseary HTML tags
author lregebro
date Wed, 29 Jun 2005 11:00:50 +0000
parents 4d3bd6f09b25
children a8a86c796382
files form/widget.py widget_macros.pt
diffstat 2 files changed, 19 insertions(+), 21 deletions(-) [+]
line diff
     1.1 --- a/form/widget.py
     1.2 +++ b/form/widget.py
     1.3 @@ -27,7 +27,7 @@
     1.4  from Products.CMFCore.utils import getToolByName
     1.5  
     1.6  from zope.i18nmessageid import MessageIDFactory
     1.7 -_ = MessageIDFactory("calendar")
     1.8 +_ = MessageIDFactory("Default")
     1.9  
    1.10  class DocumentBrowserWidget(TextWidget):
    1.11  
     2.1 --- a/widget_macros.pt
     2.2 +++ b/widget_macros.pt
     2.3 @@ -1,22 +1,20 @@
     2.4 -<html>
     2.5 -  <body>
     2.6 -    <metal:block define-macro="widget_rows">
     2.7 -      <div class="row" tal:repeat="widget view/widgets">
     2.8 -        <metal:block define-macro="widget_row">
     2.9 -          <div tal:attributes="class python:'label ' + (widget.required and 'required' or '')">
    2.10 -            <label for="field.name" title="The widget's hint"
    2.11 -              tal:attributes="for widget/name; title widget/hint"
    2.12 -              tal:content="widget/label">The Label</label>:
    2.13 -          </div>
    2.14 -          <div class="field">
    2.15 -            <tal:block tal:content="structure widget"/>
    2.16 -            <span tal:define="error widget/error"
    2.17 -              tal:condition="error" tal:content="structure error">
    2.18 -              The Error
    2.19 -            </span>
    2.20 -          </div>
    2.21 -        </metal:block>
    2.22 +<metal:block define-macro="widget_rows">
    2.23 +  <div class="row" tal:repeat="widget view/widgets">
    2.24 +    <metal:block define-macro="widget_row">
    2.25 +      <div tal:attributes="class python:'label ' + (widget.required and 'required' or '')">
    2.26 +        <label for="field.name" title="The widget's hint"
    2.27 +          tal:attributes="for widget/name; title widget/hint"
    2.28 +          tal:content="widget/label"
    2.29 +          i18n:translate="" i18n:attributes="title">The Label</label>:
    2.30 +      </div>
    2.31 +      <div class="field">
    2.32 +        <tal:block tal:content="structure widget"/>
    2.33 +        <span tal:define="error widget/error"
    2.34 +          tal:condition="error" tal:content="structure error"
    2.35 +          i18n:translate="" >
    2.36 +          The Error
    2.37 +        </span>
    2.38        </div>
    2.39      </metal:block>
    2.40 -  </body>
    2.41 -</html>
    2.42 \ No newline at end of file
    2.43 +  </div>
    2.44 +</metal:block>