<div class="field" tal:attributes="style view/style|nothing" i18n:domain="senaite.core">

  <label i18n:translate="">Sample type</label>

  <select name="SampleTypeUID:ignore_empty"
          class="form-control form-control-sm"
          id="SampleTypeUID">
    <option tal:condition="python:view.allow_blank" value=""/>
    <tal:sampletypes tal:repeat="sampletype view/sampletypes">
      <option value=""
              tal:define="sampletype_uid python:sampletype.UID"
              tal:attributes="value sampletype_uid;
                              selected python:request.get('SampleTypeUID', '') == sampletype_uid and 'selected' or ''"
              tal:content="sampletype/Title">
      </option>
    </tal:sampletypes>
  </select>

</div>
