Arvind Somya ca51e21e9f Merged quantum code into django-openstack module
- Merged django-quantum code into django-openstack.
- Added quantum connector to django_openstack's api.
- Moved creating networks to a separate page.
- Moved creating ports to a separate page.
- Aligned styles to the updated dashboard style.
- Checking in 1.8.xx jquery ui libs for dialog boxes.
- Moved port specific code to a separate port view.
2011-08-16 15:04:36 -04:00

16 lines
670 B
HTML

<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="port_up" type="submit" value="Port UP" />
{% else %}
<input name="state" type="hidden" value="DOWN" />
<input title="Turn port DOWN" id="port_up_{{port.id}}" class="port_down" type="submit" value="Port DOWN" />
{% endif %}
</form>