ui-fix
This commit is contained in:
parent
06f94d9d63
commit
bcfb808241
@ -4,6 +4,7 @@
|
||||
<form [formGroup]="form" (ngSubmit)="submit()">
|
||||
<div mat-dialog-content class="my-table">
|
||||
<mat-form-field appearance="outline" *ngIf="action != 'Delete'; else elseTemplate" class="mat-pane">
|
||||
<mat-label>ServiceName</mat-label>
|
||||
<input placeholder="servicesName" matInput formControlName="servicesName">
|
||||
<mat-error *ngIf="myError('servicesName', 'required')">ServiceName is required</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-form-field>
|
||||
<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">
|
||||
<mat-error *ngIf="myError('fees', 'required')">Fees is required</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-label>Description</mat-label>
|
||||
<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>
|
||||
<ng-template #elseTemplate>
|
||||
Sure to delete <b>{{local_data.servicesName}}</b>?
|
||||
|
||||
@ -67,14 +67,15 @@
|
||||
<mat-form-field appearance="outline" class="mat-pane user-mate" *ngIf="action != 'Update'">
|
||||
<mat-label>Password</mat-label>
|
||||
<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">
|
||||
Password length must be greater than or equal to 8 and password must contain one or more uppercase ,
|
||||
lowercase , numeric and special characters
|
||||
Password length must be greater than or equal to 8 and password must contain one or more uppercase , lowercase , numeric and special characters
|
||||
</mat-error>
|
||||
<mat-error *ngIf="form.get('password')?.invalid && (form.get('password')?.dirty || form.get('password')?.touched) && form.get('password')?.errors?.required">
|
||||
Password is required
|
||||
</mat-error>
|
||||
</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="imageViewStatus == true" class="image mb-2" [src]="url" height="150" width="150"><br/>
|
||||
|
||||
@ -46,6 +46,7 @@ export class AddUserComponent implements OnInit {
|
||||
|
||||
|
||||
ngOnInit() {
|
||||
this.hide = true;
|
||||
this.disableBus = localStorage.getItem('go_admin')
|
||||
let userrole = localStorage.getItem('user_role')
|
||||
this.form = new FormGroup({
|
||||
|
||||
@ -64,6 +64,7 @@ $main-color: #f44336;
|
||||
font-weight: 400;
|
||||
color: #02475bcf;
|
||||
padding: 10px 0 0;
|
||||
line-height: 17px!important;
|
||||
// border-top: 1px solid rgba(2,71,91,.3);
|
||||
}
|
||||
|
||||
@ -78,7 +79,7 @@ $main-color: #f44336;
|
||||
border-radius: 10px !important;
|
||||
position: relative;
|
||||
// min-height: 60px;
|
||||
height: 65px;
|
||||
height: 85px;
|
||||
}
|
||||
// .mb{
|
||||
// margin-bottom: 0.60rem;
|
||||
|
||||
@ -10,9 +10,9 @@ export const environment = {
|
||||
// apiEndpoint:'http://192.168.1.20:8080/api/',
|
||||
// apiEndpoint:'https://api.venbait.in/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
|
||||
endUserUrl:'https://venbainfotech.com/appointment/#/customer/',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user