_network-port-add.html 836 Bytes
Newer Older
1
{% load i18n %}
2 3 4 5 6 7 8 9
<div class="vm-details-network-port-add pull-right">
  <form action="" method="POST">
    {% csrf_token %}
    <input type="hidden" name="host_pk" value="{{ i.host.pk }}"/>
    <div class="input-group input-group-sm">
      <span class="input-group-addon">
        <i class="fa fa-plus"></i> <i class="fa fa-long-arrow-right"></i>
      </span>
10
      <input type="text" class="form-control" size="5" style="width: 80px;" name="port"/>
11
      <span class="input-group-addon">/</span>
12
      <select class="form-control" name="proto" style="width: 70px;"><option>tcp</option><option>udp</option></select>
13
      <div class="input-group-btn">
14 15
        <button type="submit" class="btn btn-success btn-sm
          {% if not is_operator %}disabled{% endif %}">{% trans "Add" %}</button>
16 17 18 19
      </div>
    </div>
  </form>
</div>