vlan_list.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {% extends '_base.html' %}
  2. {% load helpers %}
  3. {% load form_helpers %}
  4. {% block title %}VLANs{% endblock %}
  5. {% block content %}
  6. <div class="pull-right">
  7. {% if perms.ipam.add_vlan %}
  8. <a href="{% url 'ipam:vlan_add' %}" class="btn btn-primary">
  9. <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
  10. Add a VLAN
  11. </a>
  12. <a href="{% url 'ipam:vlan_import' %}" class="btn btn-info">
  13. <span class="glyphicon glyphicon-import" aria-hidden="true"></span>
  14. Import VLANs
  15. </a>
  16. {% endif %}
  17. {% include 'inc/export_button.html' with obj_type='VLANs' %}
  18. </div>
  19. <h1>VLANs</h1>
  20. <div class="row">
  21. <div class="col-md-9">
  22. {% include 'utilities/obj_table.html' with bulk_edit_url='ipam:vlan_bulk_edit' bulk_delete_url='ipam:vlan_bulk_delete' %}
  23. </div>
  24. <div class="col-md-3">
  25. <div class="panel panel-default">
  26. <div class="panel-heading">
  27. <span class="glyphicon glyphicon-search" aria-hidden="true"></span>
  28. <strong>Search by ID</strong>
  29. </div>
  30. <div class="panel-body">
  31. <form action="{% url 'ipam:vlan_list' %}" method="get">
  32. <div class="input-group">
  33. <input type="text" name="vid" class="form-control" placeholder="VLAN ID" {% if request.GET.vid %}value="{{ request.GET.vid }}" {% endif %}/>
  34. <span class="input-group-btn">
  35. <button type="submit" class="btn btn-primary">
  36. <span class="glyphicon glyphicon-search" aria-hidden="true"></span>
  37. </button>
  38. </span>
  39. </div>
  40. </form>
  41. </div>
  42. </div>
  43. {% include 'inc/filter_panel.html' %}
  44. </div>
  45. </div>
  46. {% endblock %}