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

Tweak display of prerequisite model warning

This commit is contained in:
jeremystretch
2022-08-25 14:11:46 -04:00
parent 32615befd5
commit 1379b9c9fb
2 changed files with 11 additions and 7 deletions

View File

@@ -1,6 +1,9 @@
{% 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 class="alert alert-warning text-end" role="alert">
<div class="float-start">
<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" }}</strong>.
</div>
{% add_button prerequisite_model %}
</div>