2016-06-12 00:15:48 +02:00
|
|
|
<div class="generic-page-wrapper">
|
2020-04-02 00:27:14 +02:00
|
|
|
<h1>{{$title}}</h1>
|
2016-06-12 00:15:48 +02:00
|
|
|
<form action="settings/features" method="post" autocomplete="off">
|
2020-04-02 00:27:14 +02:00
|
|
|
<input type="hidden" name="form_security_token" value="{{$form_security_token}}">
|
2016-06-12 00:15:48 +02:00
|
|
|
{{* We organize the settings in collapsable panel-groups *}}
|
2016-06-12 19:59:27 +02:00
|
|
|
<div class="panel-group panel-group-settings" id="settings" role="tablist" aria-multiselectable="true">
|
2016-06-12 00:15:48 +02:00
|
|
|
{{foreach $features as $g => $f}}
|
|
|
|
<div class="panel">
|
2020-04-02 00:27:14 +02:00
|
|
|
<div class="section-subtitle-wrapper panel-heading" role="tab" id="{{$g}}-settings-title">
|
|
|
|
<h2>
|
2017-10-20 15:21:42 +02:00
|
|
|
<a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#settings" href="#{{$g}}-settings-content" aria-expanded="true" aria-controls="{{$g}}-settings-content">
|
2016-06-12 00:15:48 +02:00
|
|
|
{{$f.0}}
|
|
|
|
</a>
|
2020-04-02 00:27:14 +02:00
|
|
|
</h2>
|
2016-06-12 00:15:48 +02:00
|
|
|
</div>
|
|
|
|
<div id="{{$g}}-settings-content" class="panel-collapse collapse" role="tabpanel" aria-labelledby="{{$g}}-settings-title">
|
2020-04-02 00:27:14 +02:00
|
|
|
<div class="panel-body">
|
2016-06-12 00:15:48 +02:00
|
|
|
{{foreach $f.1 as $fcat}}
|
2020-02-05 09:08:32 +01:00
|
|
|
{{include file="field_checkbox.tpl" field=$fcat}}
|
2016-06-12 00:15:48 +02:00
|
|
|
{{/foreach}}
|
2020-04-02 00:27:14 +02:00
|
|
|
</div>
|
|
|
|
<div class="panel-footer">
|
|
|
|
<button type="submit" name="submit" class="btn btn-primary" value="{{$submit}}">{{$submit}}</button>
|
2016-06-12 00:15:48 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/foreach}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
</div>
|