2022-01-28 12:17:21 +02:00
|
|
|
<form [formGroup]="smppSmsProviderConfigurationFormGroup" style="padding-bottom: 16px;">
|
2022-02-07 12:06:51 +02:00
|
|
|
<div fxLayout="row wrap" fxLayoutGap="6px">
|
|
|
|
|
<mat-form-field fxFlex.lt-sm="100" fxFlex.gt-sm="15" class="mat-block">
|
|
|
|
|
<mat-label translate>admin.smpp-provider.smpp-version</mat-label>
|
|
|
|
|
<mat-select formControlName="protocolVersion">
|
|
|
|
|
<mat-option *ngFor="let smppVersion of smppVersions" [value]="smppVersion.value">
|
|
|
|
|
{{smppVersion.value}}
|
|
|
|
|
</mat-option>
|
|
|
|
|
</mat-select>
|
2022-01-28 12:17:21 +02:00
|
|
|
</mat-form-field>
|
|
|
|
|
<mat-form-field fxFlex class="mat-block">
|
2022-02-07 12:06:51 +02:00
|
|
|
<mat-label translate>admin.smpp-provider.smpp-host</mat-label>
|
2022-01-28 12:17:21 +02:00
|
|
|
<input required matInput formControlName="host">
|
|
|
|
|
<mat-error *ngIf="smppSmsProviderConfigurationFormGroup.get('host').hasError('required')">
|
2022-02-07 12:06:51 +02:00
|
|
|
{{'admin.smpp-provider.smpp-host-required' | translate}}
|
2022-01-28 12:17:21 +02:00
|
|
|
</mat-error>
|
|
|
|
|
</mat-form-field>
|
2022-02-07 12:06:51 +02:00
|
|
|
<mat-form-field fxFlex.lt-sm="100" fxFlex.gt-sm="30" class="mat-block">
|
|
|
|
|
<mat-label translate>admin.smpp-provider.smpp-port</mat-label>
|
2022-01-28 12:17:21 +02:00
|
|
|
<input required matInput type="number" formControlName="port">
|
|
|
|
|
<mat-error *ngIf="smppSmsProviderConfigurationFormGroup.get('port').hasError('required')">
|
2022-02-07 12:06:51 +02:00
|
|
|
{{'admin.smpp-provider.smpp-port-required' | translate}}
|
2022-01-28 12:17:21 +02:00
|
|
|
</mat-error>
|
|
|
|
|
</mat-form-field>
|
2022-02-07 12:06:51 +02:00
|
|
|
</div>
|
|
|
|
|
<div fxLayout="row wrap" fxLayoutGap="6px">
|
2022-01-28 12:17:21 +02:00
|
|
|
<mat-form-field fxFlex class="mat-block">
|
2022-02-07 12:06:51 +02:00
|
|
|
<mat-label translate>admin.smpp-provider.system-id</mat-label>
|
2022-01-28 12:17:21 +02:00
|
|
|
<input required matInput formControlName="systemId">
|
|
|
|
|
<mat-error *ngIf="smppSmsProviderConfigurationFormGroup.get('systemId').hasError('required')">
|
2022-02-07 12:06:51 +02:00
|
|
|
{{'admin.smpp-provider.system-id-required' | translate}}
|
2022-01-28 12:17:21 +02:00
|
|
|
</mat-error>
|
|
|
|
|
</mat-form-field>
|
2022-02-07 12:06:51 +02:00
|
|
|
<mat-form-field fxFlex class="mat-block">
|
|
|
|
|
<mat-label translate>admin.smpp-provider.password</mat-label>
|
|
|
|
|
<input required matInput type="password" autocomplete="new-password" formControlName="password">
|
|
|
|
|
<tb-toggle-password matSuffix></tb-toggle-password>
|
2022-01-28 12:17:21 +02:00
|
|
|
<mat-error *ngIf="smppSmsProviderConfigurationFormGroup.get('password').hasError('required')">
|
2022-02-07 12:06:51 +02:00
|
|
|
{{'admin.smpp-provider.password-required' | translate}}
|
2022-01-28 12:17:21 +02:00
|
|
|
</mat-error>
|
|
|
|
|
</mat-form-field>
|
2022-02-07 12:06:51 +02:00
|
|
|
</div>
|
|
|
|
|
<mat-accordion multi>
|
|
|
|
|
<mat-expansion-panel>
|
|
|
|
|
<mat-expansion-panel-header>
|
|
|
|
|
<mat-panel-title translate>
|
|
|
|
|
admin.smpp-provider.type-settings
|
|
|
|
|
</mat-panel-title>
|
|
|
|
|
</mat-expansion-panel-header>
|
|
|
|
|
<ng-template matExpansionPanelContent>
|
|
|
|
|
<mat-form-field class="mat-block">
|
|
|
|
|
<mat-label translate>admin.smpp-provider.system-type</mat-label>
|
|
|
|
|
<input matInput formControlName="systemType">
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
<mat-form-field class="mat-block">
|
|
|
|
|
<mat-label translate>admin.smpp-provider.bind-type</mat-label>
|
|
|
|
|
<mat-select formControlName="bindType">
|
|
|
|
|
<mat-option *ngFor="let bindType of bindTypes" [value]="bindType">
|
|
|
|
|
{{bindTypesTranslation.get(bindType) | translate}}
|
|
|
|
|
</mat-option>
|
|
|
|
|
</mat-select>
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
<mat-form-field class="mat-block">
|
|
|
|
|
<mat-label translate>admin.smpp-provider.service-type</mat-label>
|
|
|
|
|
<input matInput formControlName="serviceType">
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
</ng-template>
|
|
|
|
|
</mat-expansion-panel>
|
|
|
|
|
<mat-expansion-panel>
|
|
|
|
|
<mat-expansion-panel-header>
|
|
|
|
|
<mat-panel-title translate>
|
|
|
|
|
admin.smpp-provider.source-settings
|
|
|
|
|
</mat-panel-title>
|
|
|
|
|
</mat-expansion-panel-header>
|
|
|
|
|
<ng-template matExpansionPanelContent>
|
|
|
|
|
<mat-form-field class="mat-block">
|
|
|
|
|
<mat-label translate>admin.smpp-provider.source-address</mat-label>
|
|
|
|
|
<input matInput formControlName="sourceAddress">
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
<mat-form-field class="mat-block">
|
|
|
|
|
<mat-label translate>admin.smpp-provider.source-ton</mat-label>
|
|
|
|
|
<mat-select formControlName="sourceTon">
|
|
|
|
|
<mat-option *ngFor="let sourceTon of typeOfNumber" [value]="typeOfNumberMap.get(sourceTon).value">
|
|
|
|
|
{{typeOfNumberMap.get(sourceTon).name | translate}}
|
|
|
|
|
</mat-option>
|
|
|
|
|
</mat-select>
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
<mat-form-field class="mat-block">
|
|
|
|
|
<mat-label translate>admin.smpp-provider.source-npi</mat-label>
|
|
|
|
|
<mat-select formControlName="sourceNpi">
|
|
|
|
|
<mat-option *ngFor="let sourceNpi of numberingPlanIdentification" [value]="numberingPlanIdentificationMap.get(sourceNpi).value">
|
|
|
|
|
{{numberingPlanIdentificationMap.get(sourceNpi).name | translate}}
|
|
|
|
|
</mat-option>
|
|
|
|
|
</mat-select>
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
</ng-template>
|
|
|
|
|
</mat-expansion-panel>
|
|
|
|
|
<mat-expansion-panel>
|
|
|
|
|
<mat-expansion-panel-header>
|
|
|
|
|
<mat-panel-title translate>
|
|
|
|
|
admin.smpp-provider.destination-settings
|
|
|
|
|
</mat-panel-title>
|
|
|
|
|
</mat-expansion-panel-header>
|
|
|
|
|
<ng-template matExpansionPanelContent>
|
|
|
|
|
<mat-form-field class="mat-block">
|
|
|
|
|
<mat-label translate>admin.smpp-provider.destination-ton</mat-label>
|
|
|
|
|
<mat-select formControlName="destinationTon">
|
|
|
|
|
<mat-option *ngFor="let destinationTon of typeOfNumber" [value]="typeOfNumberMap.get(destinationTon).value">
|
|
|
|
|
{{typeOfNumberMap.get(destinationTon).name | translate}}
|
|
|
|
|
</mat-option>
|
|
|
|
|
</mat-select>
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
<mat-form-field class="mat-block">
|
|
|
|
|
<mat-label translate>admin.smpp-provider.destination-npi</mat-label>
|
|
|
|
|
<mat-select formControlName="destinationNpi">
|
|
|
|
|
<mat-option *ngFor="let destinationNpi of numberingPlanIdentification" [value]="numberingPlanIdentificationMap.get(destinationNpi).value">
|
|
|
|
|
{{numberingPlanIdentificationMap.get(destinationNpi).name | translate}}
|
|
|
|
|
</mat-option>
|
|
|
|
|
</mat-select>
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
</ng-template>
|
|
|
|
|
</mat-expansion-panel>
|
|
|
|
|
<mat-expansion-panel>
|
|
|
|
|
<mat-expansion-panel-header>
|
|
|
|
|
<mat-panel-title translate>
|
|
|
|
|
admin.smpp-provider.additional-settings
|
|
|
|
|
</mat-panel-title>
|
|
|
|
|
</mat-expansion-panel-header>
|
|
|
|
|
<ng-template matExpansionPanelContent>
|
|
|
|
|
<mat-form-field class="mat-block">
|
|
|
|
|
<mat-label translate>admin.smpp-provider.address-range</mat-label>
|
|
|
|
|
<input matInput formControlName="addressRange">
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
<mat-form-field class="mat-block">
|
|
|
|
|
<mat-label translate>admin.smpp-provider.coding-scheme</mat-label>
|
|
|
|
|
<mat-select formControlName="codingScheme">
|
|
|
|
|
<mat-option *ngFor="let codingScheme of codingSchemes" [value]="codingSchemesMap.get(codingScheme).value">
|
|
|
|
|
{{codingSchemesMap.get(codingScheme).name | translate}}
|
|
|
|
|
</mat-option>
|
|
|
|
|
</mat-select>
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
</ng-template>
|
|
|
|
|
</mat-expansion-panel>
|
|
|
|
|
</mat-accordion>
|
2022-01-28 12:17:21 +02:00
|
|
|
</form>
|