<div class="field"  i18n:domain="senaite.core" tal:attributes="style view/style|nothing">
  <label for="CategoryUID" i18n:translate="">Analysis category</label>
  <select name="CategoryUID:ignore_empty"
          class="form-control form-control-sm"
          id="CategoryUID">
    <option value=""/>
    <tal:categories tal:repeat="category view/analysiscategories">
      <option
        value=""
        tal:define="category_uid python:category.UID"
        tal:attributes="
               value category_uid;
               selected python:request.get('CategoryUID', '') == category_uid and 'selected' or ''"
        tal:content="category/Title"></option>
    </tal:categories>
  </select>

</div>
