fix formfield visibility of ipandports:listen_statement; adjusted settings submit-buttons; fix traffic timescale-selectbox for responsive devices
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -55,7 +55,7 @@ return [
|
||||
'image' => 'icons/ipsports_add.png',
|
||||
'fields' => [
|
||||
'listen_statement' => [
|
||||
'visible' => !Settings::Get('system.webserver') == 'nginx',
|
||||
'visible' => Settings::Get('system.webserver') != 'nginx',
|
||||
'label' => lng('admin.ipsandports.create_listen_statement'),
|
||||
'type' => 'checkbox',
|
||||
'value' => '1',
|
||||
|
||||
@@ -56,7 +56,7 @@ return [
|
||||
'image' => 'icons/ipsports_edit.png',
|
||||
'fields' => [
|
||||
'listen_statement' => [
|
||||
'visible' => !Settings::Get('system.webserver') == 'nginx',
|
||||
'visible' => Settings::Get('system.webserver') != 'nginx',
|
||||
'label' => lng('admin.ipsandports.create_listen_statement'),
|
||||
'type' => 'checkbox',
|
||||
'value' => '1',
|
||||
|
||||
@@ -31,9 +31,9 @@
|
||||
<input type="hidden" name="action" value="{{ action }}"/>
|
||||
<input type="hidden" name="send" value="send"/>
|
||||
|
||||
<div class="col-12 text-end">
|
||||
<button type="reset" class="btn btn-outline-secondary">{{ lng('panel.cancel') }}</button>
|
||||
<button type="submit" class="btn btn-primary">{{ lng('panel.save') }}</button>
|
||||
<div class="col-12 text-center mb-2 d-grid gap-2 d-md-block">
|
||||
<button type="reset" class="btn btn-lg btn-outline-secondary me-md-3">{{ lng('panel.reset') }}</button>
|
||||
<button type="submit" class="btn btn-lg btn-primary">{{ lng('panel.save') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
|
||||
<!-- Range -->
|
||||
<!-- TODO: set url on change. e.g.: ?param=days:7 -->
|
||||
<div class="d-flex justify-content-end">
|
||||
<select class="form-select mb-4 w-auto mt-n4" aria-label="select the traffic range" name="range" data-baseref="{{ linker({'section':'traffic'}) }}">
|
||||
<div class="d-flex justify-content-center justify-content-md-end">
|
||||
<select class="form-select mb-3 mb-md-4 w-auto mt-md-n4" aria-label="select the traffic range" name="range" data-baseref="{{ linker({'section':'traffic'}) }}">
|
||||
<option value="hours:24" {% if range == 'hours:24' %}selected{% endif %}>last 24 hours</option>
|
||||
<option value="days:7" {% if range == 'days:7' %}selected{% endif %}>last 7 days</option>
|
||||
<option value="days:30" {% if range == 'days:30' %}selected{% endif %}>last 30 days</option>
|
||||
|
||||
Reference in New Issue
Block a user