{% load i18n %}
<table id='networks' class="zebra-striped">
  <tr id='headings'>
    <th>{% trans "ID"%}</th>
    <th>{% trans "Name"%}</th>
    <th>{% trans "Ports"%}</th>
    <th>{% trans "Available"%}</th>
    <th>{% trans "Used"%}</th>
    <th>{% trans "Action"%}</th>
  </tr>
  <tbody class='main'>
    {% for network in networks %}
      <tr class="{% cycle 'odd' 'even' %}" id="{{ network.id }}">
          <td><a href='{% url horizon:nova:networks:detail network.id %}'>{{ network.id }}</a></td>
          <td class="name">{{ network.name }}</td>
          <td>{{ network.total }}</td>
          <td>{{ network.available }}</td>
          <td>{{ network.used }}</td>
          <td id="actions" class="single">
            <ul>
              <li><a class='btn small' href='{% url horizon:nova:networks:rename network.id %}'>{% trans "Rename"%}</a></li>
              <li class="form">{% include "nova/networks/_delete.html" with form=delete_form %}</li>
            </ul>
        </td>
      </tr>
    {% endfor %}
  </tbody>
</table>
