friendica/view/theme/frio/templates/admin/storage.tpl

58 lines
2.2 KiB
Smarty
Raw Normal View History

2021-07-18 16:36:06 -04:00
<link rel="stylesheet" href="view/theme/frio/css/mod_admin.css?v={{$smarty.const.FRIENDICA_VERSION}}" type="text/css" media="screen"/>
<div id="adminpage" class="adminpage generic-page-wrapper">
<h1>{{$title}} - {{$page}}</h1>
<div class="well well-lg">
2021-09-01 08:00:23 -04:00
{{$label_current}}: <b>{{$storagebackend}}</b>
{{if $storagebackend_ro_txt}}
<p><p><i>{{$storagebackend_ro_txt nofilter}}</i>
{{/if}}
</div>
2021-07-18 16:36:06 -04:00
2021-09-01 08:00:23 -04:00
<h2>{{$label_config}}</h2>
2021-07-18 16:36:06 -04:00
{{foreach from=$availablestorageforms item=$storage}}
<form action="{{$baseurl}}/admin/storage/{{$storage.prefix}}" method="post">
<input type='hidden' name='form_security_token' value="{{$form_security_token}}">
2021-07-18 16:36:06 -04:00
<div class="panel">
<div class="section-subtitle-wrapper panel-title" role="tab" id="admin-settings-{{$storage.prefix}}">
2021-07-18 16:36:06 -04:00
<h3>
<button class="btn-link accordion-toggle collapsed" data-toggle="collapse" data-parent="#admin-settings" href="#admin-settings-{{$storage.prefix}}-collapse" aria-expanded="false" aria-controls="admin-settings-{{$storage.prefix}}-collapse">
2021-07-18 16:36:06 -04:00
{{$storage.name}}
</button>
2021-07-18 16:36:06 -04:00
</h3>
</div>
2021-07-18 17:09:45 -04:00
<div id="admin-settings-{{$storage.prefix}}-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="admin-settings-{{$storage.prefix}}">
2021-07-18 16:36:06 -04:00
<div class="panel-body">
2021-07-24 12:57:29 -04:00
{{if $storage.form}}
{{foreach from=$storage.form item=$field}}
{{include file=$field.field field=$field}}
{{/foreach}}
{{else}}
{{$noconfig}}
{{/if}}
2021-07-18 16:36:06 -04:00
</div>
<div class="panel-footer">
{{if $storage.form}}
<input type="submit" name="submit_save" class="btn btn-primary" value="{{$save}}"/>
{{if ! $storage.set_disabled}}
{{if $storage.active}}
2021-07-24 12:57:29 -04:00
<input type="submit" name="submit_save_set" class="btn btn-primary" value="{{$save_reload}}"/>
{{else}}
2021-09-02 17:27:35 -04:00
<input type="submit" name="submit_save_set" class="btn btn-primary" value="{{$save_use}}"/>
{{/if}}
2021-07-24 12:57:29 -04:00
{{/if}}
{{elseif ! $storage.set_disabled }}
2021-09-02 17:27:35 -04:00
<input type="submit" name="submit_save_set" class="btn btn-primary" {{if $storage.active}}disabled="disabled"{{/if}} value="{{$use}}"/>
{{/if}}
2021-07-18 16:36:06 -04:00
</div>
</div>
</div>
</form>
2021-07-18 16:36:06 -04:00
{{/foreach}}
</form>
</div>