Commit c2cd2e83 by Chanachai

Edit button center

parent f44d0a6f
......@@ -37,12 +37,10 @@
</div>
<div class="text-center">
<div class="d-grid gap-2 a-md-flex justify-content-md-end ">
<button class="btn btn-sm btn-outline-primary"
(click)="Ropen(editroom,((pageListRoom-1) * pageSizeListRoom)+i)">แก้ไข</button>
<button class="btn btn-sm btn-danger" type="button.dispose"
(click)="openDelete(deleteRoomPopup,item)">ลบ</button>
</div>
<button class="btn btn-sm btn-outline-primary"
(click)="Ropen(editroom,((pageListRoom-1) * pageSizeListRoom)+i)">แก้ไข</button>
<button class="btn btn-sm btn-danger" type="button.dispose"
(click)="openDelete(deleteRoomPopup,item)">ลบ</button>
</div>
</div>
</div>
......@@ -96,12 +94,10 @@
</div>
<div class="text-center">
<div class="d-grid gap-2 a-md-flex justify-content-md-end">
<button class="btn btn-sm btn-outline-primary"
(click)="Eopen(editLend,((page-1) * pageSize)+i)">แก้ไข</button>
<button class="btn btn-sm btn-danger"
(click)="openDeleteEquirment(deleteEquirPopup,item)">ลบ</button>
</div>
<button class="btn btn-sm btn-outline-primary"
(click)="Eopen(editLend,((page-1) * pageSize)+i)">แก้ไข</button>
<button class="btn btn-sm btn-danger"
(click)="openDeleteEquirment(deleteEquirPopup,item)">ลบ</button>
</div>
</div>
</div>
......@@ -179,12 +175,13 @@
</div>
</div>
<label for="exampleFormControlFile">แนบไฟล์รูปภาพ</label>
<input type="file" class="form-control-file" id="exampleFormControlFile" >
<input type="file" class="form-control-file" id="exampleFormControlFile">
</form>
</div>
<div class=" card-footer">
<button class=" btn btn-fill btn-danger" [disabled]="myFormEquir.invalid" type="submit" (click)="saveEquirment()">Save</button>
<button class=" btn btn-fill btn-danger" [disabled]="myFormEquir.invalid" type="submit"
(click)="saveEquirment()">Save</button>
<button class=" btn btn-fill btn-danger" type="cancel"
(click)="modal.dismiss('Cross click')">Cancel</button>
</div>
......@@ -204,7 +201,8 @@
<div class=" col-md-12">
<div class=" form-group">
<label> ชื่อ </label>
<input class=" form-control" placeholder="" type="text" [(ngModel)]="modelRoom.rName" formControlName="rName">
<input class=" form-control" placeholder="" type="text" [(ngModel)]="modelRoom.rName"
formControlName="rName">
<div style="color: red;" *ngIf="myFormRoom.controls.rName.status=='INVALID'">
กรุณากรอกชื่อ.</div>
</div>
......@@ -242,7 +240,8 @@
</form>
</div>
<div class=" card-footer">
<button class=" btn btn-fill btn-danger" [disabled]="myFormRoom.invalid" type="submit" (click)="saveRoom()">Save</button>
<button class=" btn btn-fill btn-danger" [disabled]="myFormRoom.invalid" type="submit"
(click)="saveRoom()">Save</button>
<button class=" btn btn-fill btn-danger" type="cancel"
(click)="modal.dismiss('Cross click')">Cancel</button>
</div>
......
......@@ -33,10 +33,8 @@
</div>
<div class="text-center">
<div class="d-grid gap-2 a-md-flex justify-content-md-end ">
<button class="btn btn-sm btn-outline-primary"
(click)="bookRoom(Room,item)">จอง</button>
</div>
<button class="btn btn-sm btn-outline-primary"
(click)="bookRoom(Room,item)">จอง</button>
</div>
</div>
</div>
......@@ -86,10 +84,8 @@
</div>
<div class="text-center">
<div class="d-grid gap-2 a-md-flex justify-content-md-end">
<button class="btn btn-sm btn-outline-primary"
(click)="bookEquir(Lend,item)">เบิก</button>
</div>
<button class="btn btn-sm btn-outline-primary"
(click)="bookEquir(Lend,item)">เบิก</button>
</div>
</div>
</div>
......@@ -317,7 +313,8 @@
<div class="col-12 mb-1">
<div class=" form-check">
<label class=" form-check-label">
<input class=" form-check" type="checkbox" [(ngModel)]="modelRoomDetail.allDay" formControlName="allDay" />
<input class=" form-check" type="checkbox" [(ngModel)]="modelRoomDetail.allDay"
formControlName="allDay" />
<span class=" form-check-sign">
<span class="check">ทั้งวัน</span>
</span>
......@@ -329,7 +326,7 @@
<div class="col-6 mb-1">
<label for="exampleFormControlSelect1">เวลาที่เริ่มต้น</label>
<input class="form-control" type="time" [(ngModel)]="modelRoomDetail.sTime"
formControlName="sTime"/>
formControlName="sTime" />
<div style="color: red;" *ngIf="myFormRoom.controls.sTime.status=='INVALID'">
กรุณากรอกเวลาที่เริ่มต้นการจอง.
</div>
......@@ -357,8 +354,10 @@
</form>
</div>
<div class=" card-footer">
<button class=" btn btn-fill btn-danger" [disabled]="myFormRoom.invalid" type="button" (click)="saveBook()">บันทึก</button>
<button class=" btn btn-fill btn-danger" type="cancel" (click)="modal.dismiss('Cross click')">ยกเลิก</button>
<button class=" btn btn-fill btn-danger" [disabled]="myFormRoom.invalid" type="button"
(click)="saveBook()">บันทึก</button>
<button class=" btn btn-fill btn-danger" type="cancel"
(click)="modal.dismiss('Cross click')">ยกเลิก</button>
</div>
</div>
</div>
......@@ -455,8 +454,10 @@
</form>
</div>
<div class=" card-footer">
<button class=" btn btn-fill btn-danger" [disabled]="myFormEquir.invalid" type="submit" (click)="saveLend()">Save</button>
<button class=" btn btn-fill btn-danger" type="cancel" (click)="modal.dismiss('Cross click')">Cancel</button>
<button class=" btn btn-fill btn-danger" [disabled]="myFormEquir.invalid" type="submit"
(click)="saveLend()">Save</button>
<button class=" btn btn-fill btn-danger" type="cancel"
(click)="modal.dismiss('Cross click')">Cancel</button>
</div>
</div>
</div>
......
......@@ -285,7 +285,7 @@
<div class=" row">
<div class=" col-sm-12 mb-1">
<div class=" form-group">
<label> ชื่อผู้จอง </label>
<label> ชื่อผู้เบิก</label>
<input readonly class=" form-control" placeholder="" type="text"
[(ngModel)]="modelItemDetail.userName" />
</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