2019-06-25 02:54:18 +02:00
|
|
|
{{#unless (eq render_only false)}}
|
|
|
|
<div class="input-group {{#if is_nested}}disableable{{/if}} {{#if (and push_notifications_tooltip (not realm_push_notifications_enabled))}}control-label-disabled{{/if}}">
|
2018-03-23 19:52:46 +01:00
|
|
|
<label class="checkbox">
|
2019-04-04 16:36:12 +02:00
|
|
|
<input type="checkbox" class="inline-block setting-widget prop-element" name="{{setting_name}}" data-setting-widget-type="bool"
|
2018-04-03 10:07:23 +02:00
|
|
|
id="{{prefix}}{{setting_name}}"
|
2019-06-25 02:54:18 +02:00
|
|
|
{{#if (and push_notifications_tooltip (not realm_push_notifications_enabled))}}disabled="disabled"{{/if}}
|
2018-04-03 10:07:23 +02:00
|
|
|
{{#if is_checked}}
|
2019-06-25 02:54:18 +02:00
|
|
|
{{#unless (and push_notifications_tooltip (not realm_push_notifications_enabled))}}
|
2018-04-03 10:07:23 +02:00
|
|
|
checked="checked"
|
2019-06-25 02:54:18 +02:00
|
|
|
{{/unless}}
|
2018-04-03 10:07:23 +02:00
|
|
|
{{/if}} />
|
2018-03-23 19:52:46 +01:00
|
|
|
<span></span>
|
|
|
|
</label>
|
2018-04-01 11:14:24 +02:00
|
|
|
<label for="{{prefix}}{{setting_name}}" class="inline-block" id="{{prefix}}{{setting_name}}_label">
|
2018-04-26 08:01:51 +02:00
|
|
|
{{{label}}}
|
2018-03-23 19:52:46 +01:00
|
|
|
</label>
|
2018-08-30 22:45:59 +02:00
|
|
|
{{#if push_notifications_tooltip}}
|
2019-06-12 19:36:48 +02:00
|
|
|
<i class="fa fa-question-circle settings-info-icon" {{#if realm_push_notifications_enabled}}style="display:none"{{/if}} data-toggle="tooltip"
|
2018-08-30 22:45:59 +02:00
|
|
|
title="{{t 'Mobile push notifications are not configured on this server.' }}"></i>
|
|
|
|
{{/if}}
|
2018-03-23 19:52:46 +01:00
|
|
|
</div>
|
2019-06-25 02:54:18 +02:00
|
|
|
{{/unless}}
|