{% include 'overall_header.html' %}

{{ lang('STORAGE_TITLE') }}

{{ lang('STORAGE_TITLE_EXPLAIN') }}

{% for storage in STORAGE_STATS %} {% endfor %}
{{ lang('STORAGE_NAME') }} {{ lang('STORAGE_NUM_FILES') }} {{ lang('STORAGE_SIZE') }} {{ lang('STORAGE_FREE') }}
{{ storage.name }} {{ storage.files }} {{ storage.size }} {{ storage.free_space }}
{% if ERROR_MESSAGES is not empty %}

{{ lang('WARNING') }}

{% for ERROR_MESSAGE in ERROR_MESSAGES %}

{{ ERROR_MESSAGE }}

{% endfor %}
{% endif %}
{% for storage in STORAGES %}
{{ lang('STORAGE_' ~ storage.get_name | upper ~ '_TITLE') }}

{{ lang('STORAGE_SELECT_DESC') }}
{% for provider in PROVIDERS %} {% if provider.is_available %}
{{ lang('STORAGE_' ~ storage.get_name | upper ~ '_TITLE') }} - {{ lang('STORAGE_ADAPTER_' ~ provider.get_name | upper ~ '_NAME') }} {% for name, options in provider.get_options %}
{% set title = 'STORAGE_ADAPTER_' ~ provider.get_name | upper ~ '_OPTION_' ~ name | upper %} {% set description = 'STORAGE_ADAPTER_' ~ provider.get_name | upper ~ '_OPTION_' ~ name | upper ~ '_EXPLAIN' %} {% if lang_defined(description) %}
{{ lang(description) }} {% endif %}
{% set input_name = storage.get_name ~ '[' ~ name ~ ']' %} {% set input_value = attribute(config, 'storage\\' ~ storage.get_name ~ '\\config\\' ~ name) %} {% if options.tag == 'input' %} {{ FormsInput(options | merge({"name": input_name, "value": input_value})) }} {% elseif options.tag == 'textarea' %} {{ FormsTextarea(options | merge({"name": input_name, "content": input_value})) }} {% elseif options.tag == 'radio' %} {% set buttons = [] %} {% for button in options.buttons %} {% set new_button = button | merge({"name": input_name, "label": lang(button.label), "checked": button.value == input_value}) %} {% set buttons = buttons | merge([new_button]) %} {% endfor %} {{ FormsRadioButtons(options | merge({"buttons": buttons})) }} {% elseif options.tag == 'select' %} {% set select_options = [] %} {% for option in options.options %} {% set new_option = option | merge({"selected": option.value == input_value}) %} {% set select_options = select_options | merge([new_option]) %} {% endfor %} {{ FormsSelect(options | merge({"name": input_name, "options": select_options})) }} {% endif %}
{% endfor %}
{% endif %} {% endfor %} {% endfor %}
{{ lang('SUBMIT') }}   {{ S_FORM_TOKEN }}
{% include 'overall_footer.html' %}