{% load i18n %}

<!-- UNKNOWN field format: {{ item.dataformat }} -->

{% if item.is_multi %}
<div class="mb-3 row">
  <label class="col-form-label col-sm-2">{{ item.displayname }}</label>
  <div class="form-check col-sm-10">
    Unsupported Multi-value
    <div class="form-text">/!\ UNKNOWN FORMAT {{ item.dataformat }}</div>
  </div>
</div>
{% else %}
<div class="mb-3 row">
  <label class="col-form-label col-sm-2">{{ item.displayname }}</label>
  <div class="form-check col-sm-10">
    <input type="text" class="form-control col-sm-10"
        id="{{ item.fieldname }}"
        name="{{ item.fieldname }}"
        value="{{ item.value.0|default_if_none:''}}">
    <div class="form-text">/!\ UNKNOWN FORMAT {{ item.dataformat }}: {{ item.description }}</div>
  </div>
</div>
{% endif %}
