mirror of
https://github.com/netbox-community/netbox.git
synced 2025-09-06 14:23:36 -06:00
Fixes #20282: Fix styling of warning for missing prerequisite objects
This commit is contained in:
parent
fcb380b5c5
commit
98d66d2ed8
@ -1,16 +1,14 @@
|
|||||||
{% load buttons %}
|
{% load buttons %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
<div class="alert alert-warning" role="alert">
|
<div class="alert alert-warning d-flex align-items-center" role="alert">
|
||||||
<div class="d-flex justify-content-between">
|
<span class="text-warning fs-1">
|
||||||
<div>
|
<i class="mdi mdi-alert"></i>
|
||||||
<i class="mdi mdi-alert p-2"></i>
|
</span>
|
||||||
|
<span class="flex-fill">
|
||||||
{% blocktrans trimmed with model=model|meta:"verbose_name" prerequisite_model=prerequisite_model|meta:"verbose_name" %}
|
{% blocktrans trimmed with model=model|meta:"verbose_name" prerequisite_model=prerequisite_model|meta:"verbose_name" %}
|
||||||
Before you can add a {{ model }} you must first create a <strong>{{ prerequisite_model }}</strong>.
|
Before you can add a {{ model }} you must first create a <strong>{{ prerequisite_model }}</strong>.
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
</div>
|
</span>
|
||||||
<div>
|
|
||||||
{% add_button prerequisite_model return_url=request.path %}
|
{% add_button prerequisite_model return_url=request.path %}
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user