2023-12-25 19:26:19 +01:00
|
|
|
<link rel="stylesheet" href="view/theme/frio/css/mod_admin.css?v={{constant('\Friendica\App::VERSION')}}" type="text/css" media="screen"/>
|
2021-07-18 22:36:06 +02:00
|
|
|
|
|
|
|
<div id="adminpage" class="adminpage generic-page-wrapper">
|
|
|
|
<h1>{{$title}} - {{$page}}</h1>
|
|
|
|
|
2021-07-20 23:33:35 +02:00
|
|
|
<div class="well well-lg">
|
2021-09-01 14:00:23 +02:00
|
|
|
{{$label_current}}: <b>{{$storagebackend}}</b>
|
2023-03-26 13:39:11 +02:00
|
|
|
{{if $storagebackend_ro_txt}}
|
2023-03-27 00:17:40 +02:00
|
|
|
<br><i>{{$storagebackend_ro_txt nofilter}}</i>
|
2023-03-26 13:39:11 +02:00
|
|
|
{{/if}}
|
2021-07-20 23:33:35 +02:00
|
|
|
</div>
|
2021-07-18 22:36:06 +02:00
|
|
|
|
2021-09-01 14:00:23 +02:00
|
|
|
<h2>{{$label_config}}</h2>
|
2021-07-18 22:36:06 +02:00
|
|
|
|
|
|
|
{{foreach from=$availablestorageforms item=$storage}}
|
2021-07-20 23:33:35 +02:00
|
|
|
<form action="{{$baseurl}}/admin/storage/{{$storage.prefix}}" method="post">
|
|
|
|
<input type='hidden' name='form_security_token' value="{{$form_security_token}}">
|
2021-07-18 22:36:06 +02:00
|
|
|
<div class="panel">
|
2021-07-20 23:33:35 +02:00
|
|
|
<div class="section-subtitle-wrapper panel-title" role="tab" id="admin-settings-{{$storage.prefix}}">
|
2021-07-18 22:36:06 +02:00
|
|
|
<h3>
|
2021-11-20 08:16:30 +01:00
|
|
|
<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 22:36:06 +02:00
|
|
|
{{$storage.name}}
|
2021-11-20 08:16:30 +01:00
|
|
|
</button>
|
2021-07-18 22:36:06 +02:00
|
|
|
</h3>
|
|
|
|
</div>
|
2021-07-18 23:09:45 +02:00
|
|
|
<div id="admin-settings-{{$storage.prefix}}-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="admin-settings-{{$storage.prefix}}">
|
2021-07-18 22:36:06 +02:00
|
|
|
<div class="panel-body">
|
2021-07-24 18:57:29 +02:00
|
|
|
{{if $storage.form}}
|
|
|
|
{{foreach from=$storage.form item=$field}}
|
|
|
|
{{include file=$field.field field=$field}}
|
|
|
|
{{/foreach}}
|
|
|
|
{{else}}
|
|
|
|
{{$noconfig}}
|
|
|
|
{{/if}}
|
2021-07-18 22:36:06 +02:00
|
|
|
</div>
|
|
|
|
<div class="panel-footer">
|
2021-07-20 23:33:35 +02:00
|
|
|
{{if $storage.form}}
|
|
|
|
<input type="submit" name="submit_save" class="btn btn-primary" value="{{$save}}"/>
|
2023-03-27 00:17:40 +02:00
|
|
|
{{if $is_writable}}
|
2023-03-25 19:02:47 +01:00
|
|
|
{{if $storage.active}}
|
2021-07-24 18:57:29 +02:00
|
|
|
<input type="submit" name="submit_save_set" class="btn btn-primary" value="{{$save_reload}}"/>
|
2023-03-25 19:02:47 +01:00
|
|
|
{{else}}
|
2021-09-02 23:27:35 +02:00
|
|
|
<input type="submit" name="submit_save_set" class="btn btn-primary" value="{{$save_use}}"/>
|
2023-03-25 19:02:47 +01:00
|
|
|
{{/if}}
|
2021-07-24 18:57:29 +02:00
|
|
|
{{/if}}
|
2023-03-27 00:17:40 +02:00
|
|
|
{{elseif $is_writable}}
|
2021-09-02 23:27:35 +02:00
|
|
|
<input type="submit" name="submit_save_set" class="btn btn-primary" {{if $storage.active}}disabled="disabled"{{/if}} value="{{$use}}"/>
|
2021-07-20 23:33:35 +02:00
|
|
|
{{/if}}
|
2021-07-18 22:36:06 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-07-20 23:33:35 +02:00
|
|
|
</form>
|
2021-07-18 22:36:06 +02:00
|
|
|
|
|
|
|
{{/foreach}}
|
|
|
|
|
|
|
|
</form>
|
|
|
|
</div>
|