Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions netbox/templates/ipam/ipaddress_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,6 @@ <h1>{% if ipaddress %}Editing IP Address {{ ipaddress }}{% else %}Add an IP Addr
{% render_field form.description %}
</div>
</div>
<div class="form-group">
<div class="col-md-9 col-md-offset-3">
{% if ipaddress %}
<button type="submit" name="_update" class="btn btn-primary">Update</button>
<a href="{% url 'ipam:ipaddress' pk=ipaddress.pk %}" class="btn btn-default">Cancel</a>
{% else %}
<button type="submit" name="_create" class="btn btn-primary">Create</button>
<button type="submit" name="_addanother" class="btn btn-primary">Create and Add Another</button>
<a href="{% url 'ipam:ipaddress_list' %}" class="btn btn-default">Cancel</a>
{% endif %}
</div>
</div>
</div>
<div class="col-md-6">
<div class="panel panel-default">
Expand All @@ -80,6 +68,18 @@ <h1>{% if ipaddress %}Editing IP Address {{ ipaddress }}{% else %}Add an IP Addr
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 text-right">
{% if ipaddress %}
<button type="submit" name="_update" class="btn btn-primary">Update</button>
<a href="{% url 'ipam:ipaddress' pk=ipaddress.pk %}" class="btn btn-default">Cancel</a>
{% else %}
<button type="submit" name="_create" class="btn btn-primary">Create</button>
<button type="submit" name="_addanother" class="btn btn-primary">Create and Add Another</button>
<a href="{% url 'ipam:ipaddress_list' %}" class="btn btn-default">Cancel</a>
{% endif %}
</div>
</div>
</form>
{% endblock %}

Expand Down