|
|
|
@ -93,32 +93,44 @@ |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="tabs-section clearfix" data-section="restrictions"> |
|
|
|
<div class="restriction-matcher-div"> |
|
|
|
<i class="help-popover icon-question-sign icon-large" data-original-title="{{i18n.devices.popupSettings.restrictions.matcher.help}}" data-placement="top" data-toggle="tooltip"></i> |
|
|
|
<input type="text" class="restriction-matcher-input" placeholder="{{i18n.devices.popupSettings.restrictions.matcher.placeholder}}" /> |
|
|
|
<button type="button" class="btn btn-primary restriction-matcher-button">{{i18n.devices.popupSettings.restrictions.matcher.button}}</button> |
|
|
|
</div> |
|
|
|
<div class="title"> |
|
|
|
{{ i18n.devices.popupSettings.restrictions.sectionTitle }} |
|
|
|
</div> |
|
|
|
<div class="restriction-list"> |
|
|
|
{{#each extra.restrictions}} |
|
|
|
<div class="control-group restriction-line{{#if this.disabled}} disabled{{/if}}" data-restriction="{{@key}}"> |
|
|
|
<label class="control-label">{{this.friendly_name}} |
|
|
|
{{#if this.help}} |
|
|
|
<i class="help-popover icon-question-sign" data-original-title="{{this.help}}" data-placement="top" data-toggle="tooltip"></i> |
|
|
|
{{/if}} |
|
|
|
</label> |
|
|
|
<div class="controls"> |
|
|
|
<div class="switch" data-on="success" data-off="danger" data-on-label="{{../i18n.devices.popupSettings.restrictions.allow}}" data-off-label="{{../i18n.devices.popupSettings.restrictions.deny}}"> |
|
|
|
<input class="not-pretty" type="checkbox" name="call_restriction.{{@key}}.action" {{#compare this.action '===' 'inherit'}}{{#unless this.disabled}} checked{{/unless}}{{/compare}}{{#if this.disabled}} disabled{{/if}}></input> |
|
|
|
<div class="restrictions-container"> |
|
|
|
<div class="restriction-matcher-div"> |
|
|
|
<i class="help-popover icon-question-sign icon-large" data-original-title="{{i18n.devices.popupSettings.restrictions.matcher.help}}" data-placement="top" data-toggle="tooltip"></i> |
|
|
|
<input type="text" class="restriction-matcher-input" placeholder="{{i18n.devices.popupSettings.restrictions.matcher.placeholder}}" /> |
|
|
|
<button type="button" class="btn btn-primary restriction-matcher-button">{{i18n.devices.popupSettings.restrictions.matcher.button}}</button> |
|
|
|
</div> |
|
|
|
<div class="title"> |
|
|
|
{{ i18n.devices.popupSettings.restrictions.sectionTitle }} |
|
|
|
</div> |
|
|
|
<div class="restriction-list"> |
|
|
|
{{#each extra.restrictions}} |
|
|
|
<div class="control-group restriction-line{{#if this.disabled}} disabled{{/if}}" data-restriction="{{@key}}"> |
|
|
|
<label class="control-label">{{this.friendly_name}} |
|
|
|
{{#if this.help}} |
|
|
|
<i class="help-popover icon-question-sign" data-original-title="{{this.help}}" data-placement="top" data-toggle="tooltip"></i> |
|
|
|
{{/if}} |
|
|
|
</label> |
|
|
|
<div class="controls"> |
|
|
|
<div class="switch" data-on="success" data-off="danger" data-on-label="{{../i18n.devices.popupSettings.restrictions.allow}}" data-off-label="{{../i18n.devices.popupSettings.restrictions.deny}}"> |
|
|
|
<input class="not-pretty" type="checkbox" name="call_restriction.{{@key}}.action" {{#compare this.action '===' 'inherit'}}{{#unless this.disabled}} checked{{/unless}}{{/compare}}{{#if this.disabled}} disabled{{/if}}></input> |
|
|
|
</div> |
|
|
|
<i class="restriction-matcher-sign icon-large icon-ok icon-green"></i> |
|
|
|
</div> |
|
|
|
<i class="restriction-matcher-sign icon-large icon-ok icon-green"></i> |
|
|
|
</div> |
|
|
|
{{/each}} |
|
|
|
</div> |
|
|
|
{{/each}} |
|
|
|
</div> |
|
|
|
<div class="restriction-message help-box"> |
|
|
|
<div class="restriction-message help-box"> |
|
|
|
</div> |
|
|
|
{{#if extra.hasDisabledRestrictions}} |
|
|
|
<div class="disabled-restrictions-info help-box gray-box"> |
|
|
|
<div class="wrapper-icon"> |
|
|
|
<i class="icon-info-sign2"></i> |
|
|
|
</div> |
|
|
|
<div class="text-wrapper"> |
|
|
|
<p>{{ i18n.devices.popupSettings.restrictions.disabledRestrictionsInfo }}</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{{/if}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|