|
|
<div class="monster-feature-popup-container" data-feature="next_action">
|
|
|
<div class="feature-popup-title">
|
|
|
<div class="feature-fa-wrapper">
|
|
|
<i class="{{group.extra.mapFeatures.next_action.icon}}"></i>
|
|
|
</div>
|
|
|
{{ i18n.groups.nextAction.headline }}
|
|
|
<div class="switch">
|
|
|
{{#monsterSwitch}}
|
|
|
<input class="switch-state" type="checkbox" data-on="{{i18n.enabled}}" data-off="{{i18n.disabled}}"{{#if group.extra.mapFeatures.next_action.active}} checked="checked"{{/if}}></input>
|
|
|
{{/monsterSwitch}}
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="content{{#unless group.extra.mapFeatures.next_action.active}} disabled{{/unless}}">
|
|
|
|
|
|
<div class="next-action">
|
|
|
<span>{{ i18n.groups.nextAction.label }}</span>
|
|
|
<select class="next-action-select">
|
|
|
<optgroup label="{{ i18n.groups.nextAction.menu }}">
|
|
|
{{#if mainMenu}}
|
|
|
<option value="{{mainMenu.id}}" data-module="callflow" {{#compare selectedEntity '===' mainMenu.id}}selected{{/compare}}>{{ i18n.groups.nextAction.mainMenu }}</option>
|
|
|
{{/if}}
|
|
|
</optgroup>
|
|
|
<optgroup label="{{ i18n.groups.nextAction.voicemails }}">
|
|
|
{{#each voicemails}}
|
|
|
<option value="{{id}}" data-module="voicemail" {{#compare ../selectedEntity '===' id}}selected{{/compare}}>{{name}}</option>
|
|
|
{{/each}}
|
|
|
</optgroup>
|
|
|
<optgroup label="{{ i18n.groups.nextAction.users }}">
|
|
|
{{#each userCallflows}}
|
|
|
<option value="{{id}}" data-module="callflow" {{#compare ../selectedEntity '===' id}}selected{{/compare}}>{{userName}}</option>
|
|
|
{{/each}}
|
|
|
</optgroup>
|
|
|
<optgroup label="{{ i18n.groups.nextAction.devices }}">
|
|
|
{{#each devices}}
|
|
|
<option value="{{id}}" data-module="device" {{#compare ../selectedEntity '===' id}}selected{{/compare}}>{{name}}</option>
|
|
|
{{/each}}
|
|
|
</optgroup>
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="actions clearfix">
|
|
|
<div class="pull-right">
|
|
|
<a class="cancel-link monster-link blue" href="javascript:void(0);">{{ i18n.cancel }}</a>
|
|
|
<button type="button" class="monster-button monster-button-success save">{{ i18n.saveChanges }}</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|