@@ -1,14 +1,28 @@
|
||||
{% macro fieldrow(id, field, norow = false, nohide = false) %}
|
||||
{% macro fieldrow(id, field, norow = false, nohide = false, em = false) %}
|
||||
{% if field.visible is not defined or (field.visible is defined and field.visible) or nohide == true %}
|
||||
{% if norow == false and field.type != 'hidden' %}
|
||||
<div class="row mb-3 pb-3 border-bottom">
|
||||
{% if field.label is iterable %}
|
||||
<label for="{{ id }}" class="col-sm-4 col-form-label">{{ field.label.title|raw }}
|
||||
<label for="{{ id }}" class="col-sm-4 col-form-label">
|
||||
{% if em %}
|
||||
<mark>
|
||||
{% endif %}
|
||||
{{ field.label.title|raw }}
|
||||
{% if em %}
|
||||
</mark>
|
||||
{% endif %}
|
||||
{% if field.label.description is defined and field.label.description is not empty %}<br><small>{{ field.label.description|raw }}</small>
|
||||
{% endif %}
|
||||
</label>
|
||||
{% else %}
|
||||
<label for="{{ id }}" class="col-sm-4 col-form-label">{{ field.label|raw }}
|
||||
<label for="{{ id }}" class="col-sm-4 col-form-label">
|
||||
{% if em %}
|
||||
<mark>
|
||||
{% endif %}
|
||||
{{ field.label|raw }}
|
||||
{% if em %}
|
||||
</mark>
|
||||
{% endif %}
|
||||
{% if field.desc is defined and field.desc is not empty %}<br><small>{{ field.desc|raw }}</small>
|
||||
{% endif %}
|
||||
</label>
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
<div class="card-body">
|
||||
{% for id,setting in fields %}
|
||||
{% if id != '_group' %}
|
||||
{{ formfields.fieldrow(id, setting, false, (get_setting('system.hide_incompatible_settings') == '0')) }}
|
||||
{% set isEm = em is defined and em == id %}
|
||||
{{ formfields.fieldrow(id, setting, false, (get_setting('system.hide_incompatible_settings') == '0'), isEm) }}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
@@ -5,8 +5,8 @@ $(document).ready(function () {
|
||||
input: '.js-typeahead-search_v1',
|
||||
order: "desc",
|
||||
dynamic: true,
|
||||
display: ['data.title'],
|
||||
href: "{{url}}",
|
||||
display: ['title'],
|
||||
href: "{{href}}",
|
||||
emptyTemplate: "No results for {{query}}",
|
||||
debug: true,
|
||||
source: {
|
||||
@@ -14,7 +14,7 @@ $(document).ready(function () {
|
||||
ajax: {
|
||||
method: "post",
|
||||
url: "lib/ajax.php?action=searchsetting&theme=" + window.$theme + "&s=" + window.$session,
|
||||
path: "title",
|
||||
path: "settings",
|
||||
data: {
|
||||
searchtext: '{{query}}'
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user