Commit 1e4baed0 by DESKTOP-HF0LVOG\myhr

Update แยกประเภทการค้นหาและปุ่มค้นหา

parent 2e1d1840
...@@ -48,15 +48,15 @@ ...@@ -48,15 +48,15 @@
<div class="card"> <div class="card">
<div class="card-body"> <div class="card-body">
<div ngbDropdown class="d-inline-block"> <div ngbDropdown class="d-inline-block">
<button class="btn btn-outline-primary" id="dropdownBasic1" <button class="btn btn-sm btn-outline-primary" id="dropdownBasic1"
ngbDropdownToggle>ค้นหา</button> ngbDropdownToggle>ประเภทการค้นหา</button>
<div ngbDropdownMenu aria-labelledby="dropdownBasic1"> <div ngbDropdownMenu aria-labelledby="dropdownBasic1">
<button ngbDropdownItem>รอดำเนินการ</button> <button ngbDropdownItem>รอดำเนินการ</button>
<button ngbDropdownItem>อนุมัติ</button> <button ngbDropdownItem>อนุมัติ</button>
<button ngbDropdownItem>ยกเลิก</button> <button ngbDropdownItem>ยกเลิก</button>
<button ngbDropdownItem>สำเร็จแล้ว</button> <button ngbDropdownItem>สำเร็จแล้ว</button>
</div> </div>
<button class="btn btn-outline-success" type="submit">Search</button> <button class="btn btn-sm btn-outline-success" type="submit">Search</button>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -48,15 +48,15 @@ ...@@ -48,15 +48,15 @@
<div class="card"> <div class="card">
<div class="card-body"> <div class="card-body">
<div ngbDropdown class="d-inline-block"> <div ngbDropdown class="d-inline-block">
<button class="btn btn-outline-primary" id="dropdownBasic1" <button class="btn btn-sm btn-outline-primary" id="dropdownBasic1"
ngbDropdownToggle>ค้นหา</button> ngbDropdownToggle>ประเภทการค้นหา</button>
<div ngbDropdownMenu aria-labelledby="dropdownBasic1"> <div ngbDropdownMenu aria-labelledby="dropdownBasic1">
<button ngbDropdownItem>รอดำเนินการ</button> <button ngbDropdownItem>รอดำเนินการ</button>
<button ngbDropdownItem>อนุมัติ</button> <button ngbDropdownItem>อนุมัติ</button>
<button ngbDropdownItem>ยกเลิก</button> <button ngbDropdownItem>ยกเลิก</button>
<button ngbDropdownItem>สำเร็จแล้ว</button> <button ngbDropdownItem>สำเร็จแล้ว</button>
</div> </div>
<button class="btn btn-outline-success" type="submit">Search</button> <button class="btn btn-sm btn-outline-success" type="submit">Search</button>
</div> </div>
</div> </div>
</div> </div>
...@@ -68,16 +68,16 @@ ...@@ -68,16 +68,16 @@
<div class="card"> <div class="card">
<div class="card-body"> <div class="card-body">
<ul ngbNav #nav="ngbNav" [(activeId)]="active" (navChange)="onNavChange($event)" class="nav-tabs"> <ul ngbNav #nav="ngbNav" [(activeId)]="active" (navChange)="onNavChange($event)" class="nav-tabs">
<li [ngbNavItem]="1"> <li [ngbNavItem]="1">
<a ngbNavLink>ปฏิทินการจองห้อง</a> <a ngbNavLink>ปฏิทินการจองห้อง</a>
<ng-template ngbNavContent> <ng-template ngbNavContent>
<full-calendar #calendarBook [options]="calendarOptions"></full-calendar> <full-calendar #calendarBook [options]="calendarOptions"></full-calendar>
</ng-template> </ng-template>
</li> </li>
<li [ngbNavItem]="2"> <li [ngbNavItem]="2">
<a ngbNavLink>ปฏิทินการยืมรถ</a> <a ngbNavLink>ปฏิทินการยืมรถ</a>
<ng-template ngbNavContent> <ng-template ngbNavContent>
<full-calendar #calendar [options]="calendarOptions"></full-calendar> <full-calendar #calendar [options]="calendarOptions"></full-calendar>
</ng-template> </ng-template>
</li> </li>
</ul> </ul>
......
...@@ -80,6 +80,7 @@ export class HomePageComponent implements OnInit { ...@@ -80,6 +80,7 @@ export class HomePageComponent implements OnInit {
calendarOptions: CalendarOptions; calendarOptions: CalendarOptions;
showBook = false; showBook = false;
handleDateClick(arg) { handleDateClick(arg) {
alert('date click! ' + arg.dateStr) alert('date click! ' + arg.dateStr)
} }
...@@ -132,8 +133,6 @@ export class HomePageComponent implements OnInit { ...@@ -132,8 +133,6 @@ export class HomePageComponent implements OnInit {
onNavChange(changeEvent: NgbNavChangeEvent) { onNavChange(changeEvent: NgbNavChangeEvent) {
setTimeout(function () { setTimeout(function () {
window.dispatchEvent(new Event('resize')) window.dispatchEvent(new Event('resize'))
},250); },250);
......
...@@ -48,15 +48,15 @@ ...@@ -48,15 +48,15 @@
<div class="card"> <div class="card">
<div class="card-body"> <div class="card-body">
<div ngbDropdown class="d-inline-block"> <div ngbDropdown class="d-inline-block">
<button class="btn btn-outline-primary" id="dropdownBasic1" <button class="btn btn-sm btn-outline-primary" id="dropdownBasic1"
ngbDropdownToggle>ค้นหา</button> ngbDropdownToggle>ประเภทการค้นหา</button>
<div ngbDropdownMenu aria-labelledby="dropdownBasic1"> <div ngbDropdownMenu aria-labelledby="dropdownBasic1">
<button ngbDropdownItem>รอดำเนินการ</button> <button ngbDropdownItem>รอดำเนินการ</button>
<button ngbDropdownItem>อนุมัติ</button> <button ngbDropdownItem>อนุมัติ</button>
<button ngbDropdownItem>ยกเลิก</button> <button ngbDropdownItem>ยกเลิก</button>
<button ngbDropdownItem>สำเร็จแล้ว</button> <button ngbDropdownItem>สำเร็จแล้ว</button>
</div> </div>
<button class="btn btn-outline-success" type="submit">Search</button> <button class="btn btn-sm btn-outline-success" type="submit">Search</button>
</div> </div>
</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