kopia lustrzana https://github.com/wagtail/wagtail
Use shared buttons.html include in generic title_cell.html template
rodzic
09d81eee9f
commit
a7f1719f64
|
@ -15,11 +15,7 @@
|
||||||
{% if buttons %}
|
{% if buttons %}
|
||||||
<ul class="actions">
|
<ul class="actions">
|
||||||
{% block buttons %}
|
{% block buttons %}
|
||||||
{% for button in buttons %}
|
{% include "wagtailadmin/shared/buttons.html" %}
|
||||||
{% if button.show %}
|
|
||||||
<li>{% component button %}</li>
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Ładowanie…
Reference in New Issue