2025-11-21 10:24:49 +07:00
|
|
|
<div class="h-screen bg-gray-100 flex flex-col">
|
|
|
|
|
|
2025-11-28 20:39:48 +07:00
|
|
|
<header class="flex justify-between items-center py-4 px-6">
|
2025-11-21 10:24:49 +07:00
|
|
|
@if (mode == 'default') {
|
2025-11-28 20:39:48 +07:00
|
|
|
<div class="flex flex-col md:flex-row justify-between items-end mb-6 gap-4">
|
|
|
|
|
<div>
|
2025-11-28 19:44:32 +07:00
|
|
|
<h1 class="text-2xl font-bold text-gray-800 flex items-center gap-2">
|
2025-11-28 20:39:48 +07:00
|
|
|
<span class="w-2 h-8 bg-red-900 rounded-full"></span> รายการโครงการทั้งหมด
|
2025-11-28 19:44:32 +07:00
|
|
|
</h1>
|
2025-11-28 20:39:48 +07:00
|
|
|
<p class="text-gray-500 mt-1 text-sm pl-4">ติดตาม สถานะโครงการ และ เสนอโครงการ</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- <h1 class="text-3xl font-bold text-gray-800">โครงการทั้งหมด</h1> -->
|
|
|
|
|
} @else if (mode == 'add') {
|
|
|
|
|
<div class="flex flex-col md:flex-row justify-between items-end gap-4">
|
|
|
|
|
<div>
|
|
|
|
|
<h1 class="text-2xl font-bold text-gray-800 flex items-center gap-2">
|
|
|
|
|
<button (click)="onCancelProject()"
|
|
|
|
|
class="group flex items-center justify-center w-8 h-8 rounded-full hover:bg-gray-100 transition-all mr-1"
|
|
|
|
|
title="ย้อนกลับ">
|
|
|
|
|
<i class="fas fa-arrow-left text-gray-400 group-hover:text-red-900 text-lg"></i>
|
|
|
|
|
</button>
|
|
|
|
|
<div class="h-6 w-px bg-gray-200 mr-2"></div>
|
|
|
|
|
|
|
|
|
|
<span class="w-2 h-8 bg-red-900 rounded-full"></span> เพิ่มโครงการ
|
|
|
|
|
</h1>
|
|
|
|
|
<p class="text-gray-500 mt-1 text-sm pl-14">กรอกรายละเอียดเพื่อขออนุมัติงบประมาณ</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-21 10:24:49 +07:00
|
|
|
</header>
|
|
|
|
|
|
2025-11-28 20:39:48 +07:00
|
|
|
<div class="grow overflow-y-auto px-6 pb-6">
|
2025-11-21 10:24:49 +07:00
|
|
|
|
|
|
|
|
@if ( mode == 'default') {
|
|
|
|
|
<app-main-project></app-main-project>
|
|
|
|
|
} @else if ( mode == 'add') {
|
2025-11-28 20:39:48 +07:00
|
|
|
<app-main-project-add
|
|
|
|
|
(save)="onSaveProject($event)"
|
|
|
|
|
(cancel)="onCancelProject()">
|
|
|
|
|
</app-main-project-add>
|
2025-11-21 10:24:49 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|