added database driven system configurations with admin screen (#647)

This commit is contained in:
Kevin Papst
2019-03-22 20:58:38 +01:00
committed by GitHub
parent e990ae4800
commit 13d9f8f3f7
142 changed files with 2262 additions and 64727 deletions

View File

@@ -1,9 +1,6 @@
{% extends '@AdminLTE/layout/default-layout-avanzu.html.twig' %}
{% block avanzu_page_content_before %}
<div class="toolbar-pad no-print">
{% block main_before %}{% endblock %}
</div>
{% block avanzu_after_body_start %}
{% embed 'embeds/modal.html.twig' %}
{% block modal_id %}remote_form_modal{% endblock %}
{% block modal_title %}{% endblock %}
@@ -12,6 +9,12 @@
{% endembed %}
{% endblock %}
{% block avanzu_page_content_before %}
<div class="toolbar-pad no-print">
{% block main_before %}{% endblock %}
</div>
{% endblock %}
{% block avanzu_page_content_after %}
{% block main_after %}{% endblock %}
{% endblock %}

View File

@@ -2,7 +2,7 @@
<li class="dropdown messages-menu">
<a href="#" class="dropdown-toggle ddt-large ticktac" data-toggle="dropdown">
<i class="{{ 'start'|icon }} fa-2x"></i>
<span class="label label-{% if entries|length > kimai_context.active_warning %}danger{% else %}warning{% endif %}">{{ entries|length }}</span>
<span class="label label-{% if entries|length > soft_limit %}danger{% elseif entries|length == soft_limit %}warning{% else %}primary{% endif %}">{{ entries|length }}</span>
</a>
<ul class="dropdown-menu">
<li class="header">

View File

@@ -0,0 +1,15 @@
{% extends 'base.html.twig' %}
{% block page_title %}{{ 'title'|trans({}, 'system-configuration') }}{% endblock %}
{% block page_subtitle %}{{ 'subtitle'|trans({}, 'system-configuration') }}{% endblock %}
{% block main %}
{% for section in sections %}
{{ include('default/_form.html.twig', {
'title': section.model.section|trans({}, 'system-configuration'),
'form': section.form,
}) }}
{% endfor %}
{% endblock %}