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

netbox: adjusted where IP address form buttons rendered to be

more in line with other two-column add/edit pages.
This commit is contained in:
Zach Moody
2016-03-06 14:58:13 -06:00
parent 61cbee15ca
commit 03d5540fc8

View File

@ -45,18 +45,6 @@
{% 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">
@ -80,6 +68,18 @@
</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 %}