<metal:block define-macro="widget-rows">
  <tal:block repeat="widget view/widgets/values">
    <div id="" class="row"
         tal:attributes="id string:${widget/id}-row"
         tal:condition="python:widget.mode != 'hidden'">
      <metal:block define-macro="widget-row">
        <div class="label">
          <label tal:attributes="for widget/id" 
                 tal:content="widget/label">label</label>
          <span class="required"
                 tal:condition="widget/required">*</span>
        </div>
        <div class="widget" tal:content="structure widget/render">
          <input type="text" size="24" value="" />
        </div>
        <div class="error"
             tal:condition="widget/error">
          <span tal:replace="structure widget/error/render">error</span>
        </div>
      </metal:block>
    </div>
    <input type="hidden" value=""
           tal:condition="python:widget.mode == 'hidden'"
           tal:replace="structure widget/render" />
  </tal:block>
</metal:block>

