2020-01-15 12:27:14 +00:00
|
|
|
<vn-dialog
|
|
|
|
vn-id="SMSDialog"
|
2020-05-06 12:38:09 +00:00
|
|
|
on-response="$ctrl.onResponse($response)"
|
|
|
|
message="Send SMS">
|
2020-01-15 12:27:14 +00:00
|
|
|
<tpl-body>
|
|
|
|
<section class="SMSDialog">
|
|
|
|
<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-15 12:27:14 +00:00
|
|
|
</vn-textfield>
|
|
|
|
</vn-horizontal>
|
|
|
|
<vn-horizontal >
|
|
|
|
<vn-textarea vn-one
|
|
|
|
vn-id="message"
|
|
|
|
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-15 12:27:14 +00:00
|
|
|
rows="5"
|
2020-02-10 12:22:43 +00:00
|
|
|
required="true"
|
2020-01-15 12:27:14 +00:00
|
|
|
rule>
|
|
|
|
</vn-textarea>
|
|
|
|
</vn-horizontal>
|
|
|
|
<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-15 12:27:14 +00:00
|
|
|
</span>
|
|
|
|
</vn-horizontal>
|
|
|
|
</section>
|
|
|
|
</tpl-body>
|
|
|
|
<tpl-buttons>
|
|
|
|
<input type="button" response="cancel" translate-attr="{value: 'Cancel'}"/>
|
|
|
|
<button response="accept" translate>Send</button>
|
|
|
|
</tpl-buttons>
|
|
|
|
</vn-dialog>
|