_network-port-add.html 1 KB
Newer Older
1
{% load i18n %}
2
<div class="vm-details-network-port-add pull-right">
3
  <form action="{{ op.add_port.get_url }}" method="POST">
4
    {% csrf_token %}
5
    <input type="hidden" name="host" value="{{ i.host.pk }}"/>
6 7 8 9
    <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="number" class="form-control" size="5" min="1" max="65535"
Bach Dániel committed
11
             style="width: 80px;" name="port" required/>
12
      <span class="input-group-addon">/</span>
13
      <select class="form-control" name="proto" style="width: 70px;"><option>tcp</option><option>udp</option></select>
14
      <div class="input-group-btn">
15
        <button type="submit" class="btn btn-success btn-sm
16
          {% if not op.add_port %}disabled{% endif %}">
17 18 19
          <span class="hidden-xs">{% trans "Add" %}</span>
          <span class="visible-xs"><i class="fa fa-plus-circle"></i></span>
        </button>
20 21 22 23
      </div>
    </div>
  </form>
</div>