{% extends "layout.html" %}

{% block content_header %}
  {{ build_breadcrumbs([
    { 'name': _('Transports'), 'link': url_for('.TransportView:index'), 'icon': 'asterisk' }
  ]) }}
{% endblock %}

{% block content %}
  <section class="content">
    {% call build_list_containers(_('Transport'), 'asterisk') %}
      {% call build_list_table() %}
        {% call build_list_table_headers(get=url_for('.TransportView:get', id=''), delete=url_for('.TransportView:delete', id=''), add=url_for('.TransportView:new')) %}
          <th>{{ _('Name') }}</th>
          <th>{{ _('Protocol') }}</th>
        {% endcall %}
        {% call(transport) build_list_table_rows(resource_list['items']) %}
          <td>{{ transport.name }}</td>
          {% for key, value in transport.options %}
            {% if key == "protocol" %}
              <td>{{ value }}</td>
            {% endif %}
          {% else %}
            <td>Undefined</td>
          {% endfor %}
        {% endcall %}
      {% endcall %}
    {% endcall %}
  </section>
{% endblock %}
