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

Added views for DeviceRoles

This commit is contained in:
Jeremy Stretch
2016-05-12 14:38:34 -04:00
parent 1fb2cc4b31
commit 21b3fbd50f
10 changed files with 157 additions and 20 deletions

View File

@@ -26,12 +26,11 @@
<div class="col-md-6 col-md-offset-3 text-right">
{% if obj %}
<button type="submit" name="_update" class="btn btn-primary">Update</button>
<a href="{{ obj.get_absolute_url }}" 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="{{ cancel_url }}" class="btn btn-default">Cancel</a>
{% endif %}
<a href="{{ cancel_url }}" class="btn btn-default">Cancel</a>
</div>
</div>
</form>