mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-02 16:18:53 +00:00
74 lines
3.3 KiB
HTML
74 lines
3.3 KiB
HTML
<!-- INCLUDE overall_header.html -->
|
|
|
|
<a id="maincontent"></a>
|
|
|
|
<h1>{{ lang('STORAGE_TITLE') }}</h1>
|
|
|
|
<p>{{ lang('STORAGE_TITLE_EXPLAIN') }}</p>
|
|
|
|
<form id="acp_storage" method="post" action="{U_ACTION}">
|
|
|
|
{% for storage in STORAGES %}
|
|
<fieldset>
|
|
<legend>{{ lang('STORAGE_' ~ storage.get_name | upper ~ '_TITLE') }}</legend>
|
|
<dl>
|
|
<dt><label for="{{ storage.get_name }}">{{ lang('STORAGE_SELECT') }}{{ lang('COLON') }}</label><br /><span>{{ lang('STORAGE_SELECT_DESC') }}</span></dt>
|
|
<dd>
|
|
<select id="{{ storage.get_name }}" name="{{ storage.get_name }}[provider]" data-togglable-settings="true">
|
|
{% for provider in PROVIDERS if provider.is_available %}
|
|
<option value="{{ provider.get_class }}"{{ attribute(config, 'storage\\' ~ storage.get_name ~ '\\provider') == provider.get_class ? ' selected' : '' }} data-toggle-setting="#{{ storage.get_name }}_{{ provider.get_name }}_settings">
|
|
{{ lang('STORAGE_ADAPTER_' ~ provider.get_name | upper ~ '_NAME') }}
|
|
</option>
|
|
{% endfor %}
|
|
</select>
|
|
</dd>
|
|
</dl>
|
|
</fieldset>
|
|
|
|
{% for provider in PROVIDERS if provider.is_available %}
|
|
<fieldset id="{{ storage.get_name }}_{{ provider.get_name }}_settings">
|
|
<legend>{{ lang('STORAGE_' ~ storage.get_name | upper ~ '_TITLE') }} - {{ lang('STORAGE_ADAPTER_' ~ provider.get_name | upper ~ '_NAME') }}</legend>
|
|
{% for name, options in provider.get_options %}
|
|
<dl>
|
|
<dt>
|
|
<label for="">{{ lang('STORAGE_ADAPTER_' ~ provider.get_name | upper ~ '_OPTION_' ~ name | upper) }}{{ lang('COLON') }}</label>{% if description is not empty %}<br /><span>{{ lang(description) }}</span>{% endif %}
|
|
</dt>
|
|
<dd>
|
|
{% set input_type = options['type'] %}
|
|
{% set input_name = storage.get_name ~ '[' ~ name ~ ']' %}
|
|
{% set input_value = attribute(CONFIG, 'storage\\' ~ storage.get_name ~ '\\config\\' ~ name) %}
|
|
|
|
{% if
|
|
input_type == 'text' or
|
|
input_type == 'password' or
|
|
input_type == 'email' %}
|
|
<input id="" type="{{ input_type }}" name="{{ input_name }}" value="{{ input_value }}" maxlength="{{ options['maxlength'] ?: 255 }}" />
|
|
{% elseif input_type == 'textarea' %}
|
|
<textarea id="" name="{{ input_name }}">{{ input_value }}</textarea>
|
|
{% elseif input_type == 'radio' %}
|
|
{% for option_name, option_value in options['options'] %}
|
|
<label><input type="radio" name="{{ input_name }}" value="{{ option_value }}" class="radio" id=""{{ (option_value == input_value) ? ' checked="checked"' }}> {{ lang(option_name) }}</label>
|
|
{% endfor %}
|
|
{% elseif input_type == 'select' %}
|
|
<select name="{{ input_name }}">
|
|
{% for option_name, option_value in options['options'] %}
|
|
<option value="{{ option_value }}"{{ (option_value == input_value) ? ' selected' }}>{{ lang(option_name) }}</option>
|
|
{% endfor %}
|
|
</select>
|
|
{% endif %}
|
|
</dd>
|
|
</dl>
|
|
{% endfor %}
|
|
</fieldset>
|
|
{% endfor %}
|
|
{% endfor %}
|
|
|
|
<fieldset class="submit-buttons">
|
|
<legend>{{ lang('SUBMIT') }}</legend>
|
|
<input class="button1" type="submit" id="submit" name="submit" value="{{ lang('SUBMIT') }}" />
|
|
<input class="button2" type="reset" id="reset" name="reset" value="{{ lang('RESET') }}" />
|
|
{S_FORM_TOKEN}
|
|
</fieldset>
|
|
</form>
|
|
|
|
<!-- INCLUDE overall_footer.html -->
|