{% if efi_data is defined %}

{% if efi_data['entries']|length > 0 %}

<div class="form-group mx-5">
  <label class="control-label">{{ _('Boot entries') }}</label>
  <table class="table table-bordered">
      <thead class="thead-light">
          <tr>
            <th>{{ _('Order') }}</th>
            <th>{{ _('Active') }}</th>
            <th>{{ _('Name') }}</th>
            <th>{{ _('Description') }}</th>
          </tr>
      </thead>
      <tbody>
          {% for entry_data in efi_data['entries'] %}
            <tr>
              <td>
                <p>
                  {% if entry_data['order'] is defined %}
                    {{ entry_data['order'] }}
                  {% else %}
                     -
                  {% endif %}
                </p>
              </td>
              <td>
                <p>
                  {% if entry_data['active'] == 1 %}
                      {{ _('yes') }}
                  {% else %}
                      {{ _('no') }}
                  {% endif %}
              </p>
              </td>
              <td>
                <p>{{ entry_data['name'] }}</p>
              </td>
              <td>
                <p>{{ entry_data['description'] }}</p>
              </td>
            </tr>
          {% endfor %}
      </tbody>
  </table>
</div>

{% else %}
<div class="card text-center p-3">
    <b>{{ _('No EFI contents') }}</b>
</div>
{% endif %}

{% endif %}
