Commit 05949bf0 by Chanachai

Update แก้code

parent 85dab53d
...@@ -146,8 +146,7 @@ ...@@ -146,8 +146,7 @@
<input class=" form-control" placeholder="" type="text" <input class=" form-control" placeholder="" type="text"
[(ngModel)]="modelEquirment.eqName" value="" formControlName="eqName" /> [(ngModel)]="modelEquirment.eqName" value="" formControlName="eqName" />
<div style="color: red;" *ngIf="myFormEquir.controls.eqName.status=='INVALID'"> <div style="color: red;" *ngIf="myFormEquir.controls.eqName.status=='INVALID'">
Invalid กรุณากรอกชื่อ</div>
Equirment Name.</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -163,8 +162,7 @@ ...@@ -163,8 +162,7 @@
<option value="5">Company</option> <option value="5">Company</option>
</select> </select>
<div style="color: red;" *ngIf="myFormEquir.controls.eqType.status=='INVALID'"> <div style="color: red;" *ngIf="myFormEquir.controls.eqType.status=='INVALID'">
Invalid กรุณากรอกหมวดหมู่.</div>
Equirment Type.</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -176,8 +174,7 @@ ...@@ -176,8 +174,7 @@
placeholder="......" [(ngModel)]="modelEquirment.eqDesc" placeholder="......" [(ngModel)]="modelEquirment.eqDesc"
formControlName="eqDesc"></textarea> formControlName="eqDesc"></textarea>
<div style="color: red;" *ngIf="myFormEquir.controls.eqDesc.status=='INVALID'"> <div style="color: red;" *ngIf="myFormEquir.controls.eqDesc.status=='INVALID'">
Invalid กรุณากรอกรายละเอียด.</div>
Equirment Desc.</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -209,9 +206,7 @@ ...@@ -209,9 +206,7 @@
<label> ชื่อ </label> <label> ชื่อ </label>
<input class=" form-control" placeholder="" type="text" [(ngModel)]="modelRoom.rName" <input class=" form-control" placeholder="" type="text" [(ngModel)]="modelRoom.rName"
formControlName="rName"> formControlName="rName">
<div style="color: red;" *ngIf="myFormRoom.controls.rName.status=='INVALID'"> <div style="color: red;" *ngIf="myFormRoom.controls.rName.status=='INVALID'">กรุณากรอกชื่อ.</div>
Invalid
Name.</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -225,9 +220,7 @@ ...@@ -225,9 +220,7 @@
<option value="1">ห้อง</option> <option value="1">ห้อง</option>
<option value="2">รถ</option> <option value="2">รถ</option>
</select> </select>
<div style="color: red;" *ngIf="myFormRoom.controls.rType.status=='INVALID'"> <div style="color: red;" *ngIf="myFormRoom.controls.rType.status=='INVALID'">กรุณากรอกประเภท</div>
Invalid
Type.</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -239,8 +232,7 @@ ...@@ -239,8 +232,7 @@
placeholder="......" [(ngModel)]="modelRoom.rDesc" placeholder="......" [(ngModel)]="modelRoom.rDesc"
formControlName="rDesc"></textarea> formControlName="rDesc"></textarea>
<div style="color: red;" *ngIf="myFormRoom.controls.rDesc.status=='INVALID'"> <div style="color: red;" *ngIf="myFormRoom.controls.rDesc.status=='INVALID'">
Invalid กรุณากรอกรายละเอียด</div>
Desc.</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -271,24 +263,21 @@ ...@@ -271,24 +263,21 @@
<input class=" form-control" type="text" [(ngModel)]="listRoomModelEdit.rName" <input class=" form-control" type="text" [(ngModel)]="listRoomModelEdit.rName"
formControlName="rName"> formControlName="rName">
<div style="color: red;" *ngIf="myFormRoom.controls.rName.status=='INVALID'"> <div style="color: red;" *ngIf="myFormRoom.controls.rName.status=='INVALID'">
Invalid กรุณากรอกชื่อ</div>
Name.</div>
</div> </div>
<div class=" col-md-12"> <div class=" col-md-12">
<label>ประเภท</label> <label>ประเภท</label>
<input class=" form-control" type="text" [(ngModel)]="listRoomModelEdit.rType" <input class=" form-control" type="text" [(ngModel)]="listRoomModelEdit.rType"
formControlName="rType"> formControlName="rType">
<div style="color: red;" *ngIf="myFormRoom.controls.rType.status=='INVALID'"> <div style="color: red;" *ngIf="myFormRoom.controls.rType.status=='INVALID'">
Invalid กรุณากรอกประเภท.</div>
Type.</div>
</div> </div>
<div class=" col-md-12"> <div class=" col-md-12">
<label>รายละเอียด</label> <label>รายละเอียด</label>
<input class=" form-control" type="text" [(ngModel)]="listRoomModelEdit.rDesc" <input class=" form-control" type="text" [(ngModel)]="listRoomModelEdit.rDesc"
formControlName="rDesc"> formControlName="rDesc">
<div style="color: red;" *ngIf="myFormRoom.controls.rDesc.status=='INVALID'"> <div style="color: red;" *ngIf="myFormRoom.controls.rDesc.status=='INVALID'">
Invalid กรุณากรอกรายละเอียด.</div>
Desc.</div>
</div> </div>
</div> </div>
</form> </form>
...@@ -316,22 +305,19 @@ ...@@ -316,22 +305,19 @@
<label>ชื่ออุปกรณ์</label> <label>ชื่ออุปกรณ์</label>
<input class=" form-control" type="text" [(ngModel)]="listEquirmentModelEdit.eqName" formControlName="eqName"> <input class=" form-control" type="text" [(ngModel)]="listEquirmentModelEdit.eqName" formControlName="eqName">
<div style="color: red;" *ngIf="myFormEquir.controls.eqName.status=='INVALID'"> <div style="color: red;" *ngIf="myFormEquir.controls.eqName.status=='INVALID'">
Invalid กรุณากรอกชื่ออุปกรณ์</div>
Desc.</div>
</div> </div>
<div class=" col-md-12"> <div class=" col-md-12">
<label>ประเภทอุปกรณ์</label> <label>ประเภทอุปกรณ์</label>
<input class=" form-control" type="text" [(ngModel)]="listEquirmentModelEdit.eqType" formControlName="eqType"> <input class=" form-control" type="text" [(ngModel)]="listEquirmentModelEdit.eqType" formControlName="eqType">
<div style="color: red;" *ngIf="myFormEquir.controls.eqType.status=='INVALID'"> <div style="color: red;" *ngIf="myFormEquir.controls.eqType.status=='INVALID'">
Invalid กรุณากรอกประเภทอุปกรณ์</div>
Desc.</div>
</div> </div>
<div class=" col-md-12"> <div class=" col-md-12">
<label>รายละเอียดอุปกรณ์</label> <label>รายละเอียดอุปกรณ์</label>
<input class=" form-control" type="text" [(ngModel)]="listEquirmentModelEdit.eqDesc" formControlName="eqDesc"> <input class=" form-control" type="text" [(ngModel)]="listEquirmentModelEdit.eqDesc" formControlName="eqDesc">
<div style="color: red;" *ngIf="myFormEquir.controls.eqDesc.status=='INVALID'"> <div style="color: red;" *ngIf="myFormEquir.controls.eqDesc.status=='INVALID'">
Invalid กรุณากรอกรายละเอียดอุปกรณ์</div>
Desc.</div>
</div> </div>
</div> </div>
</form> </form>
......
...@@ -289,14 +289,14 @@ ...@@ -289,14 +289,14 @@
<div class="row"> <div class="row">
<div class="col-sm-12 mb-1"> <div class="col-sm-12 mb-1">
<label for="exampleFormControlSelect1">ชื่อห้อง</label> <label for="exampleFormControlSelect1">ชื่อห้อง</label>
<input class="form-control" type="text" [(ngModel)]="modelRoomDetail.room.rName" <input readonly class="form-control" type="text" [(ngModel)]="modelRoomDetail.room.rName"
formControlName="rName"> formControlName="rName">
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-sm-12 mb-1"> <div class="col-sm-12 mb-1">
<label for="exampleFormControlSelect1">รายละเอียด</label> <label for="exampleFormControlSelect1">รายละเอียด</label>
<input class="form-control" type="text" [(ngModel)]="modelRoomDetail.room.rDesc" <input readonly class="form-control" type="text" [(ngModel)]="modelRoomDetail.room.rDesc"
formControlName="rDesc"> formControlName="rDesc">
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment