more work on settings
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -8,9 +8,23 @@
|
||||
<div class="card-body">
|
||||
{% for id,setting in fields %}
|
||||
{% if id != '_group' %}
|
||||
{{ formfields.fieldrow(id, setting, false, true) }}
|
||||
{{ formfields.fieldrow(id, setting, false, (get_setting('system.hide_incompatible_settings') == '0')) }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card mb-3">
|
||||
<div class="card-body">
|
||||
<input type="hidden" name="s" value="{{ s }}"/>
|
||||
<input type="hidden" name="page" value="{{ page }}"/>
|
||||
<input type="hidden" name="action" value="{{ action }}"/>
|
||||
<input type="hidden" name="send" value="send"/>
|
||||
|
||||
<div class="col-12 text-center">
|
||||
<button type="reset" class="btn btn-warning">{{ lng('panel.cancel') }}</button>
|
||||
<button type="submit" class="btn btn-success">{{ lng('panel.save') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
@@ -8,7 +8,9 @@
|
||||
<form action="{{ action|default(filename) }}" method="post" enctype="application/x-www-form-urlencoded" class="form">
|
||||
<h3 class="page-header">
|
||||
<i class="fa-solid fa-gears"></i>
|
||||
{{ lng('admin.serversettings') }}{% if fields._group is defined %} » {{ fields._group.title }}{% endif %}
|
||||
{{ lng('admin.serversettings') }}
|
||||
{% if fields._group is defined %} » {{ fields._group.title }}
|
||||
{% endif %}
|
||||
</h3>
|
||||
|
||||
{% block settings %}
|
||||
@@ -17,14 +19,16 @@
|
||||
<div class="col">
|
||||
<div class="card h-100 border {% if field.activated %}border-primary{% else %}border-secondary bg-light{% endif %}">
|
||||
<div class="card-body text-center">
|
||||
{% if field.activated %}
|
||||
<a href="{{ linker({'section':'settings','page':'overview','part':field.part}) }}" class="btn btn-link stretched-link">
|
||||
<i class="{{ field.icon }} fa-4x"></i>
|
||||
</a>
|
||||
{% else %}
|
||||
<a href="{{ linker({'section':'settings','page':'overview','part':field.part}) }}" class="btn btn-link stretched-link">
|
||||
<i class="{{ field.icon }} fa-4x"></i>
|
||||
</a>
|
||||
<p class="card-text mt-2">{{ field.title }}
|
||||
{% if field.info is defined and field.info is not empty %}<br><small>{{ field.info|raw }}</small>
|
||||
{% endif %}
|
||||
</p>
|
||||
{% if field.activated == false %}
|
||||
<small class="text-danger">{{ lng('panel.not_activated') }}</small>
|
||||
{% endif %}
|
||||
<p class="card-text mt-2">{{ field.title }}{% if field.info is defined and field.info is not empty %}<br><small>{{ field.info|raw }}</small>{% endif %}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user