]> git.mxchange.org Git - friendica.git/blobdiff - view/templates/admin/storage.tpl
Allow setting & saving storages per type
[friendica.git] / view / templates / admin / storage.tpl
index 760d97a6498f8cc4246077e57b112b03ce06e6d5..bfe6511bf0697a36ddbd8374f7c186f497b1bec0 100644 (file)
@@ -1,24 +1,23 @@
 <div id='adminpage'>
        <h1>{{$title}} - {{$page}}</h1>
 
-       <form action="{{$baseurl}}/admin/storage" method="post">
-               <input type='hidden' name='form_security_token' value="{{$form_security_token}}">
-
-               <h2>Storage Backend</h2>
-
-               {{include file="field_select.tpl" field=$storagebackend}}
-               <div class="submit"><input type="submit" name="page_logs" value="{{$submit}}" /></div>
+               <h2>Current Storage Backend: <b>{{$storagebackend}}</b></h2>
 
                <h2>Storage Configuration</h2>
 
                {{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}}">
                <h3>{{$storage.name}}</h3>
                {{foreach from=$storage.form item=$field}}
                {{include file=$field.field field=$field}}
                {{/foreach}}
-               {{/foreach}}
-
-               <div class="submit"><input type="submit" name="page_logs" value="{{$submit}}" /></div>
 
+               {{if $storage.form}}
+               <div class="submit"><input type="submit" name="submit_save" value="{{$save}}" /></div>
+               {{/if}}
+               <div class="submit"><input type="submit" name="submit_save_set" value="{{$save_set}}" /></div>
        </form>
+               {{/foreach}}
+
 </div>