Update website

This commit is contained in:
Guilhem Lavaux 2025-02-11 21:30:02 +01:00
parent 0a686aeb9a
commit c4ffa0f6ee
4360 changed files with 1727 additions and 718385 deletions

View file

@ -1,78 +0,0 @@
<form method="post" action="{{ action|e('html_attr') }}" class="config-form disableAjax">
<input type="hidden" name="tab_hash" value="">
{% if has_check_page_refresh %}
<input type="hidden" name="check_page_refresh" id="check_page_refresh" value="">
{% endif %}
{{ get_hidden_inputs('', '', 0, 'server') }}
{{ get_hidden_fields(hidden_fields, '', true) }}
<ul class="nav nav-tabs" id="configFormDisplayTab" role="tablist">
{% for id, name in tabs %}
<li class="nav-item" role="presentation">
<a class="nav-link{{ loop.first ? ' active' }}" id="{{ id }}-tab" href="#{{ id }}" data-bs-toggle="tab" role="tab" aria-controls="{{ id }}" aria-selected="{{ loop.first ? 'true' : 'false' }}">{{ name }}</a>
</li>
{% endfor %}
</ul>
<div class="tab-content">
{% for form in forms %}
<div class="tab-pane fade{{ loop.first ? ' show active' }}" id="{{ form.name }}" role="tabpanel" aria-labelledby="{{ form.name }}-tab">
<div class="card border-top-0">
<div class="card-body">
<h5 class="card-title visually-hidden">{{ form.descriptions.name }}</h5>
{% if form.descriptions.desc is not empty %}
<h6 class="card-subtitle mb-2 text-muted">{{ form.descriptions.desc|raw }}</h6>
{% endif %}
<fieldset class="optbox">
<legend>{{ form.descriptions.name }}</legend>
{# This must match with displayErrors() in scripts.js #}
{% if form.errors is iterable and form.errors|length > 0 %}
<dl class="errors">
{% for error in form.errors %}
<dd>{{ error }}</dd>
{% endfor %}
</dl>
{% endif %}
<table class="table table-borderless">
{{ form.fields_html|raw }}
</table>
</fieldset>
</div>
{% if show_buttons %}
<div class="card-footer">
<input class="btn btn-primary" type="submit" name="submit_save" value="{% trans 'Apply' %}">
<input class="btn btn-secondary" type="button" name="submit_reset" value="{% trans 'Reset' %}">
</div>
{% endif %}
</div>
</div>
{% endfor %}
</div>
</form>
<script type="text/javascript">
if (typeof configInlineParams === 'undefined' || !Array.isArray(configInlineParams)) {
configInlineParams = [];
}
configInlineParams.push(function () {
{{ js_array|join(';\n')|raw }};
$.extend(Messages, {
'error_nan_p': '{{ 'Not a positive number!'|trans|e('js') }}',
'error_nan_nneg': '{{ 'Not a non-negative number!'|trans|e('js') }}',
'error_incorrect_port': '{{ 'Not a valid port number!'|trans|e('js') }}',
'error_invalid_value': '{{ 'Incorrect value!'|trans|e('js') }}',
'error_value_lte': '{{ 'Value must be less than or equal to %s!'|trans|e('js') }}',
});
$.extend(defaultValues, {
{{ js_default|join(",\n ")|raw }}
});
});
if (typeof configScriptLoaded !== 'undefined' && configInlineParams) {
loadInlineConfig();
}
</script>

View file

@ -1,6 +0,0 @@
<dl>
<dt>{{ name }}</dt>
{% for error in error_list %}
<dd>{{ error|raw }}</dd>
{% endfor %}
</dl>

View file

@ -1,5 +0,0 @@
<tr class="group-header group-header-{{ group }}">
<th colspan="{{ colspan }}">
{{ header_text }}
</th>
</tr>

View file

@ -1,85 +0,0 @@
{% if option_is_disabled %}
{% set tr_class = tr_class ~ ' disabled-field' %}
{% endif %}
<tr{% if tr_class %} class="{{ tr_class }}"{% endif %}>
<th>
<label for="{{ path }}">{{ name|raw }}</label>
{% if doc is not empty %}
<span class="doc">
<a href="{{ doc }}" target="documentation">{{- get_image('b_help', 'Documentation'|trans) -}}</a>
</span>
{% endif %}
{% if option_is_disabled %}
<span class="disabled-notice" title="{% trans 'This setting is disabled, it will not be applied to your configuration.' %}">
{% trans 'Disabled' %}
</span>
{% endif %}
{% if description is not empty %}
<small>{{ description|raw }}</small>
{% endif %}
</th>
<td>
{% if type == 'text' %}
<input type="text" name="{{ path }}" id="{{ path }}" value="{{ value }}" class="w-75{{ not value_is_default ? (has_errors ? ' custom field-error' : ' custom') }}">
{% elseif type == 'password' %}
<input type="password" name="{{ path }}" id="{{ path }}" value="{{ value }}" class="w-75{{ not value_is_default ? (has_errors ? ' custom field-error' : ' custom') }}" spellcheck="false">
{% elseif type == 'short_text' and value is not iterable %}
{# https://github.com/phpmyadmin/phpmyadmin/issues/11505 #}
<input type="text" size="25" name="{{ path }}" id="{{ path }}" value="{{ value }}" class="{{ not value_is_default ? (has_errors ? 'custom field-error' : 'custom') }}">
{% elseif type == 'number_text' %}
<input type="number" name="{{ path }}" id="{{ path }}" value="{{ value }}" class="{{ not value_is_default ? (has_errors ? 'custom field-error' : 'custom') }}">
{% elseif type == 'checkbox' %}
<span class="checkbox{{ not value_is_default ? (has_errors ? ' custom field-error' : ' custom') }}">
<input type="checkbox" name="{{ path }}" id="{{ path }}"{{ value ? ' checked' }}>
</span>
{% elseif type == 'select' %}
<select name="{{ path }}" id="{{ path }}" class="w-75{{ not value_is_default ? (has_errors ? ' custom field-error' : ' custom') }}">
{% for key, val in select_values %}
{% if val is same as(true) %}{% set val = 'Yes'|trans %}{% elseif val is same as(false) %}{% set val = 'No'|trans %}{% endif %}
<option value="{{ key }}"{{ key is same as(value) or (value is same as(true) and key is same as(1)) or (value is same as(false) and key is same as(0)) ? ' selected' }}{{ key in select_values_disabled ? ' disabled' }}>{{ val }}</option>
{% endfor %}
</select>
{% elseif type == 'list' %}
<textarea cols="35" rows="5" name="{{ path }}" id="{{ path }}" class="{{ not value_is_default ? (has_errors ? 'custom field-error' : 'custom') }}">
{%- for key, val in value %}{% if key != 'wrapper_params' %}{{ val }}{{ not loop.last ? "\n" }}{% endif %}{% endfor -%}
</textarea>
{% endif %}
{% if is_setup and comment %}
<a class="userprefs-comment" title="{{ comment }}">{{ get_image('b_tblops', 'Comment'|trans) }}</a>
{% endif %}
{% if set_value %}
<a class="set-value hide" href="#{{ path }}={{ set_value }}" title="{{ 'Set value: %s'|trans|format(set_value) }}">
{{- get_image('b_edit', 'Set value: %s'|trans|format(set_value)) -}}
</a>
{% endif %}
{% if show_restore_default %}
<a class="restore-default hide" href="#{{ path }}" title="{% trans 'Restore default value' %}">
{{- get_image('s_reload', 'Restore default value'|trans) -}}
</a>
{% endif %}
{# This must match with displayErrors() in scripts/config.js. #}
{% if has_errors %}
<dl class="inline_errors">
{% for error in errors %}
<dd>{{ error|raw }}</dd>
{% endfor %}
</dl>
{% endif %}
</td>
{% if is_setup and allows_customization is not null %}
<td class="userprefs-allow" title="{% trans 'Allow users to customize this value' %}">
<input type="checkbox" name="{{ path }}-userprefs-allow"{{ allows_customization ? ' checked' }} aria-label="{% trans 'Allow users to customize this value' %}">
</td>
{% elseif is_setup %}
<td>&nbsp;</td>
{% endif %}
</tr>