{% load i18n %}
<form id="port_toggle_form" class="form-toggle" method="post">
  {% csrf_token %}
  {% for hidden in form.hidden_fields %}
    {{hidden}}
  {% endfor %}
  <input name="network" type="hidden" value="{{network.id}}" />
  <input name="port" type="hidden" value="{{port.id}}" />
  {% if port.state == 'DOWN' %}
    <input name="state" type="hidden" value="ACTIVE" />
    <input title="Turn port UP" id="port_up_{{port.id}}" class="btn small port_up" type="submit" value="{% trans "Port UP"%}" />
  {% else %}
    <input name="state" type="hidden" value="DOWN" />
    <input title="Turn port DOWN" id="port_up_{{port.id}}" class="btn small port_down" type="submit" value="{% trans "Port DOWN"%}" />
  {% endif %}
</form>
