This commit is contained in:
Smart 2023-04-25 16:11:00 +05:30
parent 06f94d9d63
commit bcfb808241
5 changed files with 11 additions and 6 deletions

View File

@ -4,6 +4,7 @@
<form [formGroup]="form" (ngSubmit)="submit()"> <form [formGroup]="form" (ngSubmit)="submit()">
<div mat-dialog-content class="my-table"> <div mat-dialog-content class="my-table">
<mat-form-field appearance="outline" *ngIf="action != 'Delete'; else elseTemplate" class="mat-pane"> <mat-form-field appearance="outline" *ngIf="action != 'Delete'; else elseTemplate" class="mat-pane">
<mat-label>ServiceName</mat-label>
<input placeholder="servicesName" matInput formControlName="servicesName"> <input placeholder="servicesName" matInput formControlName="servicesName">
<mat-error *ngIf="myError('servicesName', 'required')">ServiceName is required</mat-error> <mat-error *ngIf="myError('servicesName', 'required')">ServiceName is required</mat-error>
<mat-error *ngIf="myError('servicesName', 'maxlength')">Limit exceed</mat-error> <mat-error *ngIf="myError('servicesName', 'maxlength')">Limit exceed</mat-error>
@ -19,6 +20,7 @@
<mat-error *ngIf="myError('duration', 'required')">Duration is required</mat-error> <mat-error *ngIf="myError('duration', 'required')">Duration is required</mat-error>
</mat-form-field> </mat-form-field>
<mat-form-field appearance="outline" *ngIf="action != 'Delete'; else elseTemplate" class="mat-pane"> <mat-form-field appearance="outline" *ngIf="action != 'Delete'; else elseTemplate" class="mat-pane">
<mat-label>Fees</mat-label>
<input type="number" placeholder="Fees" matInput formControlName="fees"> <input type="number" placeholder="Fees" matInput formControlName="fees">
<mat-error *ngIf="myError('fees', 'required')">Fees is required</mat-error> <mat-error *ngIf="myError('fees', 'required')">Fees is required</mat-error>
<!-- <mat-error *ngIf="myError('fees', 'maxlength')">Limit exceed</mat-error> --> <!-- <mat-error *ngIf="myError('fees', 'maxlength')">Limit exceed</mat-error> -->
@ -26,7 +28,7 @@
<mat-form-field appearance="outline" *ngIf="action != 'Delete'; else elseTemplate" class="mat-pane"> <mat-form-field appearance="outline" *ngIf="action != 'Delete'; else elseTemplate" class="mat-pane">
<mat-label>Description</mat-label> <mat-label>Description</mat-label>
<textarea row="5" cols="7" matInput placeholder="Description" formControlName="description"></textarea> <textarea row="5" cols="7" matInput placeholder="Description" formControlName="description"></textarea>
<mat-error *ngIf="myError('description', 'required')">Duration is required</mat-error> <mat-error *ngIf="myError('description', 'required')">Description is required</mat-error>
</mat-form-field> </mat-form-field>
<ng-template #elseTemplate> <ng-template #elseTemplate>
Sure to delete <b>{{local_data.servicesName}}</b>? Sure to delete <b>{{local_data.servicesName}}</b>?

View File

@ -67,15 +67,16 @@
<mat-form-field appearance="outline" class="mat-pane user-mate" *ngIf="action != 'Update'"> <mat-form-field appearance="outline" class="mat-pane user-mate" *ngIf="action != 'Update'">
<mat-label>Password</mat-label> <mat-label>Password</mat-label>
<input matInput type="password" placeholder="Password" formControlName="password" [type]="hide ? 'password' : 'text'" name="password"> <input matInput type="password" placeholder="Password" formControlName="password" [type]="hide ? 'password' : 'text'" name="password">
<mat-icon class="passwordIcon" matSuffix (click)="hide = !hide">{{hide ? 'visibility_off' : 'visibility'}}</mat-icon>
<mat-error *ngIf="!form.get('password')?.errors?.required"> <mat-error *ngIf="!form.get('password')?.errors?.required">
Password length must be greater than or equal to 8 and password must contain one or more uppercase , Password length must be greater than or equal to 8 and password must contain one or more uppercase , lowercase , numeric and special characters
lowercase , numeric and special characters
</mat-error> </mat-error>
<mat-error *ngIf="form.get('password')?.invalid && (form.get('password')?.dirty || form.get('password')?.touched) && form.get('password')?.errors?.required"> <mat-error *ngIf="form.get('password')?.invalid && (form.get('password')?.dirty || form.get('password')?.touched) && form.get('password')?.errors?.required">
Password is required Password is required
</mat-error> </mat-error>
</mat-form-field> </mat-form-field>
<img *ngIf="action == 'Update' && imageViewStatus != true" class="image mb-2" [src]="image_view(local_data.logo)" height="150" width="150"/> <img *ngIf="action == 'Update' && imageViewStatus != true" class="image mb-2" [src]="image_view(local_data.logo)" height="150" width="150"/>
<img *ngIf="imageViewStatus == true" class="image mb-2" [src]="url" height="150" width="150"><br/> <img *ngIf="imageViewStatus == true" class="image mb-2" [src]="url" height="150" width="150"><br/>
<input type='file'accept="image/*" data-max-size="2048" style="width: 33%;" (change)="onSelectFile($event)" formControlName="logo"><br> <input type='file'accept="image/*" data-max-size="2048" style="width: 33%;" (change)="onSelectFile($event)" formControlName="logo"><br>

View File

@ -46,6 +46,7 @@ export class AddUserComponent implements OnInit {
ngOnInit() { ngOnInit() {
this.hide = true;
this.disableBus = localStorage.getItem('go_admin') this.disableBus = localStorage.getItem('go_admin')
let userrole = localStorage.getItem('user_role') let userrole = localStorage.getItem('user_role')
this.form = new FormGroup({ this.form = new FormGroup({

View File

@ -64,6 +64,7 @@ $main-color: #f44336;
font-weight: 400; font-weight: 400;
color: #02475bcf; color: #02475bcf;
padding: 10px 0 0; padding: 10px 0 0;
line-height: 17px!important;
// border-top: 1px solid rgba(2,71,91,.3); // border-top: 1px solid rgba(2,71,91,.3);
} }
@ -78,7 +79,7 @@ $main-color: #f44336;
border-radius: 10px !important; border-radius: 10px !important;
position: relative; position: relative;
// min-height: 60px; // min-height: 60px;
height: 65px; height: 85px;
} }
// .mb{ // .mb{
// margin-bottom: 0.60rem; // margin-bottom: 0.60rem;

View File

@ -10,9 +10,9 @@ export const environment = {
// apiEndpoint:'http://192.168.1.20:8080/api/', // apiEndpoint:'http://192.168.1.20:8080/api/',
// apiEndpoint:'https://api.venbait.in/api/', // apiEndpoint:'https://api.venbait.in/api/',
// apiEndpoint:'http://venbainfotech.com:5000/api/', // apiEndpoint:'http://venbainfotech.com:5000/api/',
apiEndpoint:'http://192.168.1.3:8080/api/', // apiEndpoint:'http://192.168.1.3:8080/api/',
// apiEndpoint:'https://api.venbait.in/api/', apiEndpoint:'https://api.venbait.in/api/',
//EndUser URL //EndUser URL
endUserUrl:'https://venbainfotech.com/appointment/#/customer/', endUserUrl:'https://venbainfotech.com/appointment/#/customer/',