1
0
Fork 0
friendica_2020-09-1_sharedH.../view/templates/admin/storage.tpl

37 lines
1.1 KiB
Smarty
Raw Normal View History

<div id='adminpage'>
<h1>{{$title}} - {{$page}}</h1>
2021-09-01 14:00:23 +02:00
<h2>{{$label_current}}: <b>{{$storagebackend}}</b></h2>
{{$storagebackend_ro_txt nofilter}}
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}}
<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
<h3>{{$storage.name}}</h3>
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}}
{{if $storage.form}}
2021-07-24 18:57:29 +02:00
<input type="submit" name="submit_save" value="{{$save}}"/>
{{if $is_writable}}
{{if $storage.active}}
2021-07-24 18:57:29 +02:00
<input type="submit" name="submit_save_set" value="{{$save_reload}}"/>
{{else}}
2021-09-02 23:27:35 +02:00
<input type="submit" name="submit_save_set" value="{{$save_use}}"/>
{{/if}}
2021-07-24 18:57:29 +02:00
{{/if}}
{{elseif $is_writable}}
2021-09-02 23:27:35 +02:00
<br /><input type="submit" name="submit_save_set" {{if $storage.active}}disabled="disabled"{{/if}} value="{{$use}}"/>
{{/if}}
</form>
{{/foreach}}
</div>