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

Merge pull request #10096 from arthanson/art-6454

Fixes #6454 - Adds warning for prerequisite models
This commit is contained in:
Jeremy Stretch
2022-08-22 16:09:59 -04:00
committed by GitHub
16 changed files with 112 additions and 2 deletions

View File

@@ -0,0 +1,6 @@
{% load buttons %}
<div class="alert alert-warning" role="alert">
<i class="mdi mdi-alert"></i> Before you can add a {{ model|meta:"verbose_name" }} you must first create a
<strong>{{ prerequisite_model|meta:"verbose_name"|title }}</strong> which can be added here: {% add_button prerequisite_model %}
</div>