Improved title for admin pages.

This commit is contained in:
Jan Böhmer 2020-06-07 19:58:05 +02:00
parent bebe70d28e
commit e7e73602a0

View file

@ -1,16 +1,24 @@
{% extends "main_card.html.twig" %}
{% block card_type %}
{% block title %}
{% if entity.id is null %}
{{ block("new_title") }}
{% else %}
{{ block("edit_title") }}
{% endif %}
{% endblock %}
{% block card_type %}
{% if timeTravel is defined and timeTravel is not null %}
bg-primary-striped text-white
{% else %}
bg-primary text-white
{% endif %}
{% endblock %}
{% endblock %}
{% form_theme form.log_comment 'bootstrap_4_layout.html.twig' %}
{% form_theme form.log_comment 'bootstrap_4_layout.html.twig' %}
{% block card_content %}
{% block card_content %}
<div class="row">
<div class="col-sm-4">
@ -194,4 +202,4 @@
</div>
</div>
{% endblock %}
{% endblock %}