mirror of
https://github.com/friendica/friendica
synced 2024-11-18 18:23:40 +00:00
fe74a3d697
The empty spans from the templates mess up the layout sometimes, and are useless weight anyway. Lets get rid of them.
21 lines
818 B
Smarty
21 lines
818 B
Smarty
|
|
<div class="field yesno">
|
|
<label for="id_{{$field.0}}">{{$field.1}}</label>
|
|
<div class="onoff toggle btn btn-xs pull-right" id="id_{{$field.0}}_onoff">
|
|
|
|
<div class="switchlabel toggle-group">
|
|
<input type="hidden" name="{{$field.0}}" id="id_{{$field.0}}" value="{{$field.2|escape:'html'}}" aria-describedby="{{$field.0}}_tip">
|
|
<label class="btn btn-default btn-xs active toggle-off">
|
|
{{if $field.4}}{{$field.4.0}}{{else}}OFF{{/if}}
|
|
</label>
|
|
<label class="btn btn-primary btn-xs toggle-on">
|
|
{{if $field.4}}{{$field.4.1}}{{else}}ON{{/if}}
|
|
</label>
|
|
<span class="toggle-handle btn btn-default btn-xs"></span>
|
|
</div>
|
|
</div>
|
|
{{if $field.3}}
|
|
<span class="help-block" id="{{$field.0}}_tip" role="tooltip">{{$field.3}}</span>
|
|
{{/if}}
|
|
</div>
|
|
<div class="clear"></div>
|