2018-08-30 22:45:59 +02:00
|
|
|
<div class="input-group {{#if is_nested}}disableable{{/if}} {{#if_not_a_or_b_and_not_c is_parent_setting_enabled push_notifications_tooltip page_params.realm_push_notifications_enabled}}control-label-disabled{{/if_not_a_or_b_and_not_c}}">
|
2018-03-23 19:52:46 +01:00
|
|
|
<label class="checkbox">
|
2019-03-06 17:24:14 +01:00
|
|
|
<input type="checkbox" class="inline-block setting-widget" name="{{setting_name}}" data-setting-widget-type="bool"
|
2018-04-03 10:07:23 +02:00
|
|
|
id="{{prefix}}{{setting_name}}"
|
2018-08-30 22:45:59 +02:00
|
|
|
{{#if_not_a_or_b_and_not_c is_parent_setting_enabled push_notifications_tooltip page_params.realm_push_notifications_enabled}}disabled="disabled"{{/if_not_a_or_b_and_not_c}}
|
2018-04-03 10:07:23 +02:00
|
|
|
{{#if is_checked}}
|
2018-08-30 22:45:59 +02:00
|
|
|
{{#unless_a_not_b push_notifications_tooltip page_params.realm_push_notifications_enabled}}
|
2018-04-03 10:07:23 +02:00
|
|
|
checked="checked"
|
2018-08-30 22:45:59 +02:00
|
|
|
{{/unless_a_not_b}}
|
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}}
|
|
|
|
<i class="fa fa-question-circle settings-info-icon" {{#if page_params.realm_push_notifications_enabled}}style="display:none"{{/if}} data-toggle="tooltip"
|
|
|
|
title="{{t 'Mobile push notifications are not configured on this server.' }}"></i>
|
|
|
|
{{/if}}
|
2018-03-23 19:52:46 +01:00
|
|
|
{{{end_content}}}
|
|
|
|
</div>
|