Browse Source

UI-2119: Fix data context access in templates

4.3
Joris Tirado 10 years ago
parent
commit
60df6cda43
6 changed files with 12 additions and 13 deletions
  1. +4
    -4
      views/devices-sip_device.html
  2. +2
    -2
      views/groups-numbers.html
  3. +1
    -1
      views/strategy-callsTab.html
  4. +2
    -2
      views/strategy-numbers.html
  5. +1
    -2
      views/users-feature-caller_id.html
  6. +2
    -2
      views/users-numbers.html

+ 4
- 4
views/devices-sip_device.html View File

@ -284,7 +284,7 @@
<div class="controls">
<select name="provision.feature_keys[{{@key}}].type" class="feature-key-type span2">
{{#select type}}
{{#each ../../extra.featureKeys.types}}
{{#each ../extra.featureKeys.types}}
<option value="{{id}}">{{text}}</option>
{{/each}}
{{/select}}
@ -292,7 +292,7 @@
<div class="feature-key-value" data-type="presence">
<label for="provision.feature_keys[{{@key}}].value">{{ @root.i18n.devices.popupSettings.featureKeys.labels.user }}</label>
<select name="provision.feature_keys[{{@key}}].value" class="chosen-feature-key-user">
{{#each ../../extra.users}}
{{#each ../extra.users}}
<option value="{{id}}">{{first_name}} {{last_name}}</option>
{{/each}}
</select>
@ -300,7 +300,7 @@
<div class="feature-key-value" data-type="parking">
<label for="provision.feature_keys[{{@key}}].value">{{ @root.i18n.devices.popupSettings.featureKeys.labels.parkingSpot }}</label>
<select class="span1" name="provision.feature_keys[{{@key}}].value">
{{#each ../../extra.featureKeys.parkingSpots}}
{{#each ../extra.featureKeys.parkingSpots}}
<option value="{{this}}">{{this}}</option>
{{/each}}
</select>
@ -308,7 +308,7 @@
<div class="feature-key-value" data-type="personal_parking">
<label for="provision.feature_keys[{{@key}}].value">{{ @root.i18n.devices.popupSettings.featureKeys.labels.user }}</label>
<select name="provision.feature_keys[{{@key}}].value" class="chosen-feature-key-user">
{{#each ../../extra.users}}
{{#each ../extra.users}}
<option value="{{id}}">{{first_name}} {{last_name}}</option>
{{/each}}
</select>


+ 2
- 2
views/groups-numbers.html View File

@ -14,10 +14,10 @@
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-cog"></i></a>
<ul class="dropdown-menu">
{{#unless isLocal}}
{{#if ../../isCnamEnabled}}
{{#if ../isCnamEnabled}}
<li><a class="callerId-number" href="#"><i class="fa fa-user"></i>{{ @root.i18n.callerId }}</a></li>
{{/if}}
{{#if ../../isE911Enabled}}
{{#if ../isE911Enabled}}
<li><a class="e911-number" href="#"><i class="fa fa-ambulance"></i>{{ @root.i18n.e911 }}</a></li>
{{/if}}
{{/unless}}


+ 1
- 1
views/strategy-callsTab.html View File

@ -97,7 +97,7 @@
{{#each callEntities}}
{{#compare groupType '===' 'advancedCallflows'}}
{{#each entities}}
<option value="{{id}}" data-type="{{module}}"{{#compare ../../../callOption.callEntityId '===' id}} selected{{/compare}}>{{name}}</option>
<option value="{{id}}" data-type="{{module}}"{{#compare ../../callOption.callEntityId '===' id}} selected{{/compare}}>{{name}}</option>
{{/each}}
{{/compare}}
{{/each}}


+ 2
- 2
views/strategy-numbers.html View File

@ -14,10 +14,10 @@
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-cog"></i></a>
<ul class="dropdown-menu">
{{#unless isLocal}}
{{#if ../../isCnamEnabled}}
{{#if ../isCnamEnabled}}
<li><a class="callerId-number" href="#"><i class="fa fa-user"></i>{{ @root.i18n.callerId }}</a></li>
{{/if}}
{{#if ../../isE911Enabled}}
{{#if ../isE911Enabled}}
<li><a class="e911-number" href="#"><i class="fa fa-ambulance"></i>{{ @root.i18n.e911 }}</a></li>
{{/if}}
{{/unless}}


+ 1
- 2
views/users-feature-caller_id.html View File

@ -10,12 +10,11 @@
{{/monsterSwitch}}
</div>
</div>
<div class="content{{#unless extra.mapFeatures.caller_id.active}} disabled{{/unless}}">
{{ i18n.users.caller_id.dropdownLabel }}
<select class="caller-id-select">
{{#each extra.listCallerId}}
<option{{#compare ../this.caller_id.internal.number "===" this}} selected{{/compare}} value="{{this}}">{{this}}</option>
<option{{#compare ../this.caller_id.external.number "===" this}} selected{{/compare}} value="{{this}}">{{this}}</option>
{{/each}}
</select>


+ 2
- 2
views/users-numbers.html View File

@ -15,10 +15,10 @@
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-cog"></i></a>
<ul class="dropdown-menu">
{{#unless this.isLocal}}
{{#if ../../../isCnamEnabled}}
{{#if ../isCnamEnabled}}
<li><a class="callerId-number" href="#"><i class="fa fa-user"></i>{{ @root.i18n.callerId }}</a></li>
{{/if}}
{{#if ../../../isE911Enabled}}
{{#if ../isE911Enabled}}
<li><a class="e911-number" href="#"><i class="fa fa-ambulance"></i>{{ @root.i18n.e911 }}</a></li>
{{/if}}
{{/unless}}


Loading…
Cancel
Save