diff --git a/src/app/sms-gateway/sms-gateway.component.html b/src/app/sms-gateway/sms-gateway.component.html index fbff712..c9abc50 100644 --- a/src/app/sms-gateway/sms-gateway.component.html +++ b/src/app/sms-gateway/sms-gateway.component.html @@ -1 +1,280 @@ -

sms-gateway works!

+
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+
+
+ + {{(selectedGateway === selectedGatewayType.SYRIATEL ? 'syriatelCredentials' : (selectedGateway === selectedGatewayType.TWILIO ? 'twilioCredentials' : (selectedGateway === selectedGatewayType.JAZZ ? 'jazzCredentials' : ''))) | translate}} + +
+
+
+
+
+
+ +
+
+ + + +
+ +
+
+ +
+
+
+ +
+ + + + + +
+
+
+ +
+
+
+
+ +
+ + + + +
+
+
+
+ +
+
+ +
+
+
+ +
+
+ + +
+
+ + +
+
+
+
+
+
+ +
+
+ + +
+
+ + +
+
+
+
+
+ +
+
+ + + +
+
+ + +
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+ +
+
+
+
+ +
+
+
+ +
+ +
+
+
+
+ +
+
+ +
+
+
+ +
+
+ + +
+
+ + +
+
+
+
+
+
+ +
+
+ + +
+
+ + +
+
+
+
+
+ +
+
+ +
+
+
+ +
+
+
+
+
+
+
+
+
+
+ +
+
+
\ No newline at end of file diff --git a/src/app/sms-gateway/sms-gateway.component.ts b/src/app/sms-gateway/sms-gateway.component.ts index 88205c2..0b3e169 100644 --- a/src/app/sms-gateway/sms-gateway.component.ts +++ b/src/app/sms-gateway/sms-gateway.component.ts @@ -1,11 +1,18 @@ +import { CommonModule } from '@angular/common'; import { Component } from '@angular/core'; +import { FormsModule } from '@angular/forms'; +import { NgSelectComponent } from '@ng-select/ng-select'; +import { TranslateModule } from '@ngx-translate/core'; +import { selectedGatewayType } from '../utils/enums'; @Component({ selector: 'app-sms-gateway', - imports: [], + imports: [TranslateModule, FormsModule, CommonModule], templateUrl: './sms-gateway.component.html', styleUrl: './sms-gateway.component.scss' }) export class SmsGatewayComponent { +selectedGateway: string = ''; +selectedGatewayType = selectedGatewayType } diff --git a/src/app/utils/enums.ts b/src/app/utils/enums.ts index 73cc2c1..076b4cc 100644 --- a/src/app/utils/enums.ts +++ b/src/app/utils/enums.ts @@ -18,4 +18,10 @@ export enum directions{ export enum APP_URL_KEY{ API_PATH = 'API_PATH' +} + +export enum selectedGatewayType{ + SYRIATEL = 'Syriatel', + TWILIO = 'Twilio', + JAZZ = 'Jazz' } \ No newline at end of file diff --git a/src/assets/i18n/Arabic.json b/src/assets/i18n/Arabic.json index 5130ffc..24865ce 100644 --- a/src/assets/i18n/Arabic.json +++ b/src/assets/i18n/Arabic.json @@ -113,12 +113,18 @@ "SMSGatewaySyriatel":"سيريتل", "SMSGatewayTwillio":"تويليو", "SMSGatewayJazz":"جاز", - "SyriatelCredentials":"أوراق اعتماد سيريتل", - "TwilioCredentials":"أوراق اعتماد تويليو", - "JazzCredentials":"أوراق اعتماد جاز", - "AccountSID":"الحساب SID", - "AuthToken":"رمز المصادقة", + "syriatelCredentials":"أوراق اعتماد سيريتل", + "twilioCredentials":"أوراق اعتماد تويليو", + "jazzCredentials":"أوراق اعتماد جاز", + "accountSID":"الحساب SID", + "authToken":"رمز المصادقة", "fromNumber":"من الرقم", + "senderName":"اسم المرسل", + "senderNamePlaceHolder":"أدخل اسم المرسل", + "message": "رسالة", + "template": "قالب", + "language":"اللغة", + "notificationType": "نوع الإشعار", "sinceLastDay":"منذ اليوم الماضي", "TodayTotalErrorRequest":"طلب إجمالي الخطأ اليوم", "TodayTotalPendingSms":"مجموع الرسائل القصيرة المعلقة اليوم", diff --git a/src/assets/i18n/English.json b/src/assets/i18n/English.json index e435561..318aaf3 100644 --- a/src/assets/i18n/English.json +++ b/src/assets/i18n/English.json @@ -71,10 +71,13 @@ "smsBankingChildTitle":"SMS Logger", "smsTrackingID":"Tracking ID", "smsMessage":"Message", + "message": "Message", + "template": "Template", "smsNo":"Phone Number", "smsOrgaCode":"Organization Code", "smsDate":"Date", "smsStatus":"Status", + "language":"Language", "viewThirdPartyAccounts":"View Accounts", "ThirdPartyID":"Third Party ID", "name":"Name", @@ -112,12 +115,13 @@ "SMSGatewaySyriatel":"Syriatel", "SMSGatewayTwillio":"Twilio", "SMSGatewayJazz":"Jazz", - "SyriatelCredentials":"Syriatel Credentials", - "TwilioCredentials":"Twilio Credentials", - "JazzCredentials":"Jazz Credentials", - "AccountSID":"Account SID", - "AuthToken":"Auth Token", + "syriatelCredentials":"Syriatel Credentials", + "twilioCredentials":"Twilio Credentials", + "jazzCredentials":"Jazz Credentials", + "accountSID":"Account SID", + "authToken":"Auth Token", "fromNumber":"From Number", + "notificationType":"Notification Type", "sinceLastDay":"Since last day", "TodayTotalErrorRequest":"Today Total Error Request", "TodayTotalPendingSms":"Today Total Pending Sms", @@ -159,7 +163,7 @@ "feedbackSetup": "Feedback Setup", "credentials": "Credentials", "credentialsTitle": "Feedback Credentials Setup", - "passwordPlaceholder": "Enter password", + "passwordPlaceholder": "Enter Password", "confirmPasswordPlaceholder": "Enter confirm password", "newPasswordPlaceholder": "Enter new password", "confirmPassword": "Confirm Password",