dokumen.pt 1.95 KB
<div i18n:domain="deform"
     tal:omit-tag=""
     tal:define="oid oid|field.oid;
                  name name|field.name;
                  css_class css_class|field.widget.css_class;
                  style style|field.widget.style;">
  ${field.start_mapping()}
  <div class="row">
    <div class="col-xs-4">
      <div class="input-group">
        <span class="input-group-addon">
          <input type="text" name="jenis" value="${jenis}"
                 class="span2 form-control readonly ${css_class or ''}"
                 tal:attributes="style style;
                       year_attributes|field.widget.year_attributes|{};"
                 maxlength="1" minlength="1" placeholder="Jenis"
                 id="${oid}"/>
        </span>
        <span class="input-group-addon">
          <input type="text" name="year" value="${year}"
                 class="span2 form-control ${css_class or ''}"
                 tal:attributes="style style;
                       year_attributes|field.widget.year_attributes|{};"
                 maxlength="4" minlength="4" placeholder="Tahun"
                 id="${oid}"/>
        </span>
        <span class="input-group-addon">
          <input type="text" name="bundle" value="${bundle}"
                 class="span2 form-control ${css_class or ''}"
                 tal:attributes="style style;
             				 bundle_attributes|field.widget.bundle_attributes|{};"
                 maxlength="4" minlength="4" placeholder="Bundle"
                 id="${oid}-bundle"/>
        </span>
        <span class="input-group-addon">
           <input type="text" name="seq" value="${seq}"
                  class="span2 form-control ${css_class or ''}"
                  tal:attributes="style style;
             				 seq_attributes|field.widget.seq_attributes|{};"
                  maxlength="3" minlength="3" placeholder="Urut"
                  id="${oid}-seq"/>
        </span>
      </div>
    </div>
  </div>
  ${field.end_mapping()}
</div>