Commit c2cd2e83 by Chanachai

Edit button center

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