2021-11-22 00:49:07 +01:00
|
|
|
<div class="section-subtitle-wrapper panel-heading" role="tab" id="{{$connector}}-settings-title">
|
|
|
|
<h2>
|
|
|
|
<button class="btn-link accordion-toggle{{if !$open}} collapsed{{/if}}" data-toggle="collapse" data-parent="#settings-connectors" href="#{{$connector}}-settings-content" aria-expanded="false" aria-controls="{{$connector}}-settings-content">
|
|
|
|
<img class="connector{{if !$enabled}}-disabled{{/if}}" src="{{$image}}" /> {{$title}}
|
|
|
|
</button>
|
|
|
|
</h2>
|
|
|
|
</div>
|
|
|
|
<div id="{{$connector}}-settings-content" class="panel-collapse collapse{{if $open}} in{{/if}}" role="tabpanel" aria-labelledby="{{$connector}}-settings-title">
|
|
|
|
<div class="panel-body">
|
|
|
|
{{$html nofilter}}
|
|
|
|
</div>
|
|
|
|
<div class="panel-footer">
|
|
|
|
{{if $submit}}
|
2023-05-24 04:09:55 +02:00
|
|
|
{{if $submit}}
|
2021-11-22 00:49:07 +01:00
|
|
|
<button type="submit" name="{{$connector}}-submit" class="btn btn-primary settings-submit" value="{{$submit}}">{{$submit}}</button>
|
|
|
|
{{else}}
|
|
|
|
{{$count = 1}}
|
|
|
|
{{foreach $submit as $name => $label}}{{if $label}}
|
|
|
|
{{if $count == 1}}
|
|
|
|
<button type="submit" name="{{$name}}" class="btn btn-primary settings-submit" value="{{$label}}">{{$label}}</button>
|
|
|
|
{{/if}}
|
|
|
|
{{if $count == 2}}
|
|
|
|
<div class="btn-group" role="group" aria-label="...">
|
|
|
|
{{/if}}
|
|
|
|
{{if $count != 1}}
|
|
|
|
<button type="submit" name="{{$name}}" class="btn btn-default settings-submit" value="{{$label}}">{{$label}}</button>
|
|
|
|
{{/if}}
|
|
|
|
{{$count = $count + 1}}
|
|
|
|
{{/if}}{{/foreach}}
|
|
|
|
{{if $submit|count > 1}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|