also show add flavor button if there is not any

This commit is contained in:
catborise
2021-09-13 10:26:42 +03:00
parent 536caacc80
commit 890f592148

View File

@@ -59,6 +59,8 @@
<!-- Tab panes -->
<div class="tab-content">
<div role="tabpanel" class="tab-pane tab-pane-bordered active" id="flavor">
{% include 'create_flav_block.html' %}
<h3 class="page-header">{% trans "Create from flavor" %}</h3>
{% if not flavors %}
<div class="col-lg-12">
<div class="alert alert-warning shadow-sm">
@@ -66,8 +68,6 @@
</div>
</div>
{% else %}
{% include 'create_flav_block.html' %}
<h3 class="page-header">{% trans "Create from flavor" %}</h3>
<div class="table-responsive">
<table class="table table-hover">
<thead>