2019-03-29 06:29:09 +00:00
|
|
|
<vn-dialog
|
|
|
|
vn-id="SMSDialog"
|
2020-07-29 08:47:48 +00:00
|
|
|
on-accept="$ctrl.onResponse()">
|
2019-03-29 06:29:09 +00:00
|
|
|
<tpl-body>
|
2020-01-09 12:58:50 +00:00
|
|
|
<section class="SMSDialog">
|
|
|
|
<h5 class="vn-py-sm" translate>Send SMS</h5>
|
|
|
|
<vn-horizontal>
|
|
|
|
<vn-textfield
|
|
|
|
vn-one
|
|
|
|
label="Destination"
|
2020-02-10 12:22:43 +00:00
|
|
|
ng-model="$ctrl.sms.destination"
|
|
|
|
required="true"
|
|
|
|
rule>
|
2020-01-09 12:58:50 +00:00
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
2020-02-14 11:01:17 +00:00
|
|
|
<vn-horizontal>
|
2020-01-09 12:58:50 +00:00
|
|
|
<vn-textarea vn-one
|
2020-01-14 08:10:54 +00:00
|
|
|
vn-id="message"
|
2020-01-09 12:58:50 +00:00
|
|
|
label="Message"
|
|
|
|
ng-model="$ctrl.sms.message"
|
2020-02-14 11:01:17 +00:00
|
|
|
info="Special characters like accents counts as a multiple"
|
2020-01-09 12:58:50 +00:00
|
|
|
rows="5"
|
2020-02-10 12:22:43 +00:00
|
|
|
required="true"
|
2020-01-09 12:58:50 +00:00
|
|
|
rule>
|
|
|
|
</vn-textarea>
|
|
|
|
</vn-horizontal>
|
2020-01-14 08:10:54 +00:00
|
|
|
<vn-horizontal>
|
|
|
|
<span>
|
2020-02-14 11:01:17 +00:00
|
|
|
{{'Characters remaining' | translate}}:
|
|
|
|
<vn-chip translate-attr="{title: 'Packing'}" ng-class="{
|
|
|
|
'colored': $ctrl.charactersRemaining() > 25,
|
|
|
|
'warning': $ctrl.charactersRemaining() <= 25,
|
|
|
|
'alert': $ctrl.charactersRemaining() < 0,
|
|
|
|
}">
|
|
|
|
{{$ctrl.charactersRemaining()}}
|
|
|
|
</vn-chip>
|
2020-01-14 08:10:54 +00:00
|
|
|
</span>
|
|
|
|
</vn-horizontal>
|
2020-01-09 12:58:50 +00:00
|
|
|
</section>
|
2019-03-29 06:29:09 +00:00
|
|
|
</tpl-body>
|
|
|
|
<tpl-buttons>
|
2019-10-30 15:57:14 +00:00
|
|
|
<input type="button" response="cancel" translate-attr="{value: 'Cancel'}"/>
|
|
|
|
<button response="accept" translate>Send</button>
|
2019-03-29 06:29:09 +00:00
|
|
|
</tpl-buttons>
|
|
|
|
</vn-dialog>
|