{% 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') }} - {{ provider.get_title }} {% for name, options in provider.get_options %}
{% if options.description %}
{{ options.description }} {% endif %}
{% set input_name = storage.get_name ~ '[' ~ name ~ ']' %} {% set input_value = attribute(config, 'storage\\' ~ storage.get_name ~ '\\config\\' ~ name) %} {% set form_macro = options.form_macro %} {% if form_macro.tag == 'input' %} {{ FormsInput(form_macro | merge({"name": input_name, "value": input_value})) }} {% elseif form_macro.tag == 'textarea' %} {{ FormsTextarea(form_macro | merge({"name": input_name, "content": input_value})) }} {% elseif form_macro.tag == 'radio' %} {% set buttons = [] %} {% for button in form_macro.buttons %} {% set new_button = button | merge({"name": input_name, "checked": button.value == input_value}) %} {% set buttons = buttons | merge([new_button]) %} {% endfor %} {{ FormsRadioButtons(form_macro | merge({"buttons": buttons})) }} {% elseif form_macro.tag == 'select' %} {% set select_options = [] %} {% for option in form_macro.options %} {% set new_option = option | merge({"selected": option.value == input_value}) %} {% set select_options = select_options | merge([new_option]) %} {% endfor %} {{ FormsSelect(form_macro | merge({"name": input_name, "options": select_options})) }} {% endif %}
{% endfor %}
{% endif %} {% endfor %} {% endfor %}
{{ lang('SUBMIT') }}   {{ S_FORM_TOKEN }}
{% include 'overall_footer.html' %}