46 lines
2.2 KiB
HTML
46 lines
2.2 KiB
HTML
<!--
|
|
|
|
Copyright © 2016-2024 The Thingsboard Authors
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
|
|
-->
|
|
<form [formGroup]="twilioSmsProviderConfigurationFormGroup" style="padding-bottom: 16px;">
|
|
<mat-form-field class="mat-block" subscriptSizing="dynamic">
|
|
<mat-label translate>admin.number-from</mat-label>
|
|
<input type="tel" required [pattern]="phoneNumberPatternTwilio" matInput formControlName="numberFrom">
|
|
<mat-error *ngIf="twilioSmsProviderConfigurationFormGroup.get('numberFrom').hasError('required')">
|
|
{{ 'admin.number-from-required' | translate }}
|
|
</mat-error>
|
|
<mat-error *ngIf="twilioSmsProviderConfigurationFormGroup.get('numberFrom').hasError('pattern')">
|
|
{{ 'admin.phone-number-pattern-twilio' | translate }}
|
|
</mat-error>
|
|
<mat-hint innerHTML="{{ 'admin.phone-number-hint-twilio' | translate }}"></mat-hint>
|
|
</mat-form-field>
|
|
<mat-form-field class="mat-block">
|
|
<mat-label translate>admin.twilio-account-sid</mat-label>
|
|
<input required matInput formControlName="accountSid">
|
|
<mat-error *ngIf="twilioSmsProviderConfigurationFormGroup.get('accountSid').hasError('required')">
|
|
{{ 'admin.twilio-account-sid-required' | translate }}
|
|
</mat-error>
|
|
</mat-form-field>
|
|
<mat-form-field class="mat-block">
|
|
<mat-label translate>admin.twilio-account-token</mat-label>
|
|
<input required type="password" autocomplete="new-password" matInput formControlName="accountToken">
|
|
<tb-toggle-password matSuffix></tb-toggle-password>
|
|
<mat-error *ngIf="twilioSmsProviderConfigurationFormGroup.get('accountToken').hasError('required')">
|
|
{{ 'admin.twilio-account-token-required' | translate }}
|
|
</mat-error>
|
|
</mat-form-field>
|
|
</form>
|