1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

49 lines
1.5 KiB
HTML
Raw Normal View History

2020-11-11 16:58:29 -05:00
{% extends 'generic/object_edit.html' %}
2018-11-02 14:42:15 -04:00
{% load static %}
{% load form_helpers %}
{% load helpers %}
2021-12-14 16:44:03 -05:00
{% load render_table from django_tables2 %}
2021-05-23 13:21:52 -07:00
{% block title %}Assign an IP Address{% endblock title %}
2021-04-18 00:22:52 -07:00
2021-08-06 16:11:02 -04:00
{% block tabs %}
2021-12-18 13:52:39 -05:00
{% include 'ipam/inc/ipaddress_edit_header.html' with active_tab='assign' %}
2021-08-06 16:11:02 -04:00
{% endblock %}
{% block form %}
<form action="{% querystring request %}" method="post" class="form form-horizontal">
{% csrf_token %}
{% for field in form.hidden_fields %}
{{ field }}
{% endfor %}
2021-04-18 00:22:52 -07:00
<div class="row mb-3">
2021-05-23 13:21:52 -07:00
<div class="col col-md-8 offset-md-2">
<div class="field-group">
<h6>Select IP Address</h6>
{% render_field form.vrf_id %}
{% render_field form.q %}
</div>
</div>
</div>
2021-04-18 00:22:52 -07:00
<div class="row mb-3">
2021-05-23 13:21:52 -07:00
<div class="col col-md-8 offset-md-2 text-end">
2021-04-18 00:22:52 -07:00
<a href="{{ return_url }}" class="btn btn-outline-danger">Cancel</a>
<button type="submit" class="btn btn-primary">Search</button>
</div>
</div>
</form>
{% if table %}
2021-04-18 00:22:52 -07:00
<div class="row mb-3">
2021-04-30 15:55:37 -07:00
<div class="col col-md-12">
<h3>Search Results</h3>
2021-12-14 16:44:03 -05:00
<div class="table-responsive">
{% render_table table 'inc/table.html' %}
</div>
</div>
</div>
{% endif %}
{% endblock form %}
{% block buttons %}
{% endblock buttons%}