Compare commits
2 Commits
a455f43df6
...
06a7c9b249
Author | SHA1 | Date |
---|---|---|
|
06a7c9b249 | |
|
876f039603 |
|
@ -13,7 +13,7 @@
|
||||||
href="https://allbestsistem.com/"
|
href="https://allbestsistem.com/"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
style="background-color: #000000 !important;"
|
style="background-color: #000000 !important;"
|
||||||
>Smart Building Management Systems (V@2024-07-10.04)
|
>Smart Building Management Systems (V@2024-07-11.01)
|
||||||
</a></span
|
</a></span
|
||||||
>
|
>
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -57,9 +57,9 @@ export class AddEditMasterBuildingComponent {
|
||||||
id: this.dataRow.id,
|
id: this.dataRow.id,
|
||||||
name: [this.dataRow.name, Validators.required],
|
name: [this.dataRow.name, Validators.required],
|
||||||
statusId: [this.dataRow.status_id, Validators.required],
|
statusId: [this.dataRow.status_id, Validators.required],
|
||||||
email: [this.dataRow.email, [Validators.required, Validators.email]],
|
email: [this.dataRow.email, [Validators.required, Validators.pattern(/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/)]],
|
||||||
owner: [this.dataRow.owner, Validators.required],
|
owner: [this.dataRow.owner, Validators.required],
|
||||||
address: [this.dataRow.address, Validators.required],
|
address: [this.dataRow.address, [Validators.required, Validators.pattern(/^[0-9]{10,15}$/)]],
|
||||||
phone: [
|
phone: [
|
||||||
this.dataRow.phone,
|
this.dataRow.phone,
|
||||||
[Validators.required, Validators.pattern("^[0-9]*$")],
|
[Validators.required, Validators.pattern("^[0-9]*$")],
|
||||||
|
|
|
@ -17,19 +17,11 @@
|
||||||
formControlName="firstName"
|
formControlName="firstName"
|
||||||
maxlength="20"
|
maxlength="20"
|
||||||
placeholder="John Vander"
|
placeholder="John Vander"
|
||||||
[ngClass]="{
|
[ngClass]="{'is-invalid': profilInfo.get('firstName').invalid && profilInfo.get('firstName').touched}"
|
||||||
'is-invalid': submitted && f.firstName.errors
|
|
||||||
}"
|
|
||||||
/>
|
/>
|
||||||
<small
|
<div *ngIf="profilInfo.get('firstName').invalid && profilInfo.get('firstName').touched" class="text-danger">
|
||||||
class="form-text text-muted danger"
|
First name is required.
|
||||||
*ngIf="submitted && f.firstName.errors"
|
|
||||||
class="invalid-feedback"
|
|
||||||
>
|
|
||||||
<div *ngIf="f.firstName.errors.required">
|
|
||||||
Full First Name is required
|
|
||||||
</div>
|
</div>
|
||||||
</small>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="lastName" style="color: #ffffff">Last Name</label>
|
<label for="lastName" style="color: #ffffff">Last Name</label>
|
||||||
|
@ -40,19 +32,11 @@
|
||||||
formControlName="lastName"
|
formControlName="lastName"
|
||||||
maxlength="20"
|
maxlength="20"
|
||||||
placeholder="John Vander"
|
placeholder="John Vander"
|
||||||
[ngClass]="{
|
[ngClass]="{'is-invalid': profilInfo.get('lastName').invalid && profilInfo.get('lastName').touched}"
|
||||||
'is-invalid': submitted && f.lastName.errors
|
|
||||||
}"
|
|
||||||
/>
|
/>
|
||||||
<small
|
<div *ngIf="profilInfo.get('firstName').invalid && profilInfo.get('firstName').touched" class="text-danger">
|
||||||
class="form-text text-muted danger"
|
Last name is required.
|
||||||
*ngIf="submitted && f.lastName.errors"
|
|
||||||
class="invalid-feedback"
|
|
||||||
>
|
|
||||||
<div *ngIf="f.lastName.errors.required">
|
|
||||||
Full lastName is required
|
|
||||||
</div>
|
</div>
|
||||||
</small>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="email" style="color: #ffffff">Email</label>
|
<label for="email" style="color: #ffffff">Email</label>
|
||||||
|
@ -63,17 +47,11 @@
|
||||||
formControlName="email"
|
formControlName="email"
|
||||||
placeholder="email@email.com"
|
placeholder="email@email.com"
|
||||||
maxlength="50"
|
maxlength="50"
|
||||||
[ngClass]="{
|
[ngClass]="{'is-invalid': profilInfo.get('email').invalid && profilInfo.get('email').touched}"
|
||||||
'is-invalid': submitted && f.email.errors
|
|
||||||
}"
|
|
||||||
/>
|
/>
|
||||||
<small
|
<div *ngIf="profilInfo.get('email').invalid && profilInfo.get('email').touched" class="text-danger">
|
||||||
class="form-text text-muted danger"
|
Please enter a valid email.
|
||||||
*ngIf="submitted && f.email.errors"
|
</div>
|
||||||
class="invalid-feedback"
|
|
||||||
>
|
|
||||||
<div *ngIf="f.email.errors.required">Email is required</div>
|
|
||||||
</small>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="phone" style="color: #ffffff">Phone</label>
|
<label for="phone" style="color: #ffffff">Phone</label>
|
||||||
|
@ -85,17 +63,11 @@
|
||||||
maxlength="13"
|
maxlength="13"
|
||||||
placeholder="08**************"
|
placeholder="08**************"
|
||||||
pattern="^[0-9]*$"
|
pattern="^[0-9]*$"
|
||||||
[ngClass]="{
|
[ngClass]="{'is-invalid': profilInfo.get('phone').invalid && profilInfo.get('phone').touched}"
|
||||||
'is-invalid': submitted && f.phone.errors
|
|
||||||
}"
|
|
||||||
/>
|
/>
|
||||||
<small
|
<div *ngIf="profilInfo.get('phone').invalid && profilInfo.get('phone').touched" class="text-danger">
|
||||||
class="form-text text-muted danger"
|
Please enter a valid phone number.
|
||||||
*ngIf="submitted && f.phone.errors"
|
</div>
|
||||||
class="invalid-feedback"
|
|
||||||
>
|
|
||||||
<div *ngIf="f.phone.errors.required">Phone is required</div>
|
|
||||||
</small>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-4 d-flex justify-content-center align-items-center">
|
<div class="col-md-4 d-flex justify-content-center align-items-center">
|
||||||
|
|
|
@ -138,7 +138,7 @@
|
||||||
<p
|
<p
|
||||||
class="card-subtitle line-on-side text-muted text-center font-small-3 mx-2 my-1"
|
class="card-subtitle line-on-side text-muted text-center font-small-3 mx-2 my-1"
|
||||||
>
|
>
|
||||||
<span>(v@2024.07.10.04)</span>
|
<span>(v@2024.07.11.05)</span>
|
||||||
</p>
|
</p>
|
||||||
<!-- <div class="card-body">
|
<!-- <div class="card-body">
|
||||||
<a
|
<a
|
||||||
|
|
Loading…
Reference in New Issue