Allow setting & saving storages per type
This commit is contained in:
parent
2fe28af74f
commit
e19b9824cd
4 changed files with 36 additions and 32 deletions
|
@ -3,19 +3,17 @@
|
|||
<div id="adminpage" class="adminpage generic-page-wrapper">
|
||||
<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}}
|
||||
<input type="submit" name="page_storage" class="btn btn-primary" value="{{$submit}}"/>
|
||||
<div class="well well-lg">
|
||||
Current Storage Backend: <b>{{$storagebackend}}</b>
|
||||
</div>
|
||||
|
||||
<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}}">
|
||||
<div class="panel">
|
||||
<div class="section-subtitle-wrapper panel-heading" role="tab" id="admin-settings-{{$storage.prefix}}">
|
||||
<div class="section-subtitle-wrapper panel-title" role="tab" id="admin-settings-{{$storage.prefix}}">
|
||||
<h3>
|
||||
<a class="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">
|
||||
{{$storage.name}}
|
||||
|
@ -29,10 +27,14 @@
|
|||
{{/foreach}}
|
||||
</div>
|
||||
<div class="panel-footer">
|
||||
<input type="submit" name="page_storage" class="btn btn-primary" value="{{$submit}}"/>
|
||||
{{if $storage.form}}
|
||||
<input type="submit" name="submit_save" class="btn btn-primary" value="{{$save}}"/>
|
||||
{{/if}}
|
||||
<input type="submit" name="submit_save_set" class="btn btn-primary" value="{{$save_set}}"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
{{/foreach}}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue