Next major version 2 with PHP 8.1, Symfony 6, Tabler UI, 2FA ... (#2902)

This commit is contained in:
Kevin Papst
2022-12-31 21:19:55 +01:00
committed by GitHub
parent 95e06746bd
commit 90a0fd8a22
2164 changed files with 83700 additions and 86426 deletions

View File

@@ -1,10 +1,7 @@
{% extends 'base.html.twig' %}
{% import "macros/widgets.html.twig" as widgets %}
{% block page_title %}{{ 'dashboard.title'|trans }}{% endblock %}
{% block page_subtitle %}{{ 'dashboard.subtitle'|trans }}{% endblock %}
{% block page_content_class %}{{ parent() }} dashboard{% endblock %}
{% block page_class %}dashboard{% endblock %}
{% block stylesheets %}
{{ parent() }}
@@ -16,14 +13,25 @@
{{ encore_entry_script_tags('chart') }}
{% endblock %}
{% block footer %}
{% if 'dashboard' in app.request.attributes.get('_route') %}
{{ parent() }}
{% endif %}
{% endblock %}
{% block main %}
{% if widgets is empty %}
{{ widgets.nothing_found() }}
{% else %}
{% for row in widgets %}
{{ render_widget(row) }}
<div class="row row-deck row-cards">
{% for widget in widgets %}
{% set columnSize = widget.width %}
<div class="col-md-{{ columnSize * 3 }}{% if columnSize <= 2 %} col-sm-{{ columnSize * 6 }}{% endif %}" id="{{ widget.id }}">
{{ render_widget(widget) }}
</div>
{% endfor %}
</div>
{% endif %}
{% endblock %}