Skip to content

Commit 6311699

Browse files
committed
feat: add text explaining closure submit override
1 parent 7e2c28e commit 6311699

2 files changed

Lines changed: 23 additions & 18 deletions

File tree

resources/js/Pages/ProjectApprovalIndex.vue

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,8 @@
44
<template #header>
55
<div class="flex flex-wrap gap-y-4 items-center">
66
<div class="flex-grow">
7-
<Link :href="route('projects.index')" class="mb-4 block flex items-center text-gray-700">
8-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" class="inline h-3 mr-2">
9-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 16l-4-4m0 0l4-4m-4 4h18"
10-
class="text-gray-500"/>
11-
</svg>
7+
<Link :href="route('projects.index')" class="mb-4 flex items-center text-gray-700">
8+
<ArrowLeftIcon class="inline h-3 mr-2"/>
129
<p>โครงการ</p>
1310
</Link>
1411
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
@@ -98,7 +95,11 @@
9895
</div>
9996
<p class="mt-6 mb-4 text-xs text-gray-500">
10097
สถานะโครงการ ได้แก่ <span class="bg-yellow-300">ส่งปิดโครง</span> > <span class="bg-blue-300">ผู้เกี่ยวข้องยืนยัน</span>ตามเกณฑ์ที่กำหนด
101-
> <span class="bg-green-300">อนุมัติ</span> หรือ <span class="bg-gray-300">ไม่อนุมัติ</span> หรือ <span class="bg-gray-300">ไม่อนุมัติ ให้แก้ไข</span>
98+
> <span class="bg-green-300">อนุมัติ</span> หรือ <span class="bg-gray-300">ไม่อนุมัติ</span> หรือ <span class="bg-gray-300">ไม่อนุมัติ ให้แก้ไข</span><br/>
99+
กรณีต้องการส่งขออนุมัติรายงานผลโครงการนอกกำหนดเวลา ให้แจ้งให้นิสิตบันทึกข้อมูลผลการดำเนินโครงการให้เรียบร้อย (กด "ไม่ส่ง"
100+
พิจารณาบันทึกลงใน Activity Transcript) แล้วให้อาจารย์กด "บันทึกผลการดำเนินโครงการ" จาก
101+
<Link :href="route('projects.index')" class="text-blue-600">หน้าข้อมูลโครงการ</Link>
102+
แทนนิสิต
102103
</p>
103104
</div>
104105
</AppLayout>
@@ -108,7 +109,7 @@
108109
import AppLayout from '@/Layouts/AppLayout.vue'
109110
import SearchInput from '@/Components/SearchInput.vue';
110111
import {Head, Link, router} from '@inertiajs/vue3';
111-
import {UserIcon} from '@heroicons/vue/20/solid';
112+
import {ArrowLeftIcon, UserIcon} from '@heroicons/vue/20/solid';
112113
import {ref, watch} from 'vue';
113114
import {debounce} from 'lodash';
114115

resources/js/Pages/ProjectShow.vue

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
<app-layout>
33
<Head :title="item.name"/>
44
<template #header>
5-
<inertia-link :href="route('projects.index')" class="mb-4 block flex items-center text-gray-700">
6-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" class="inline h-3 mr-2">
7-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 16l-4-4m0 0l4-4m-4 4h18" class="text-gray-500"/>
8-
</svg>
5+
<inertia-link :href="route('projects.index')" class="mb-4 flex items-center text-gray-700">
6+
<ArrowLeftIcon class="inline h-3 mr-2"/>
97
โครงการ
108
</inertia-link>
119
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
@@ -125,10 +123,7 @@
125123
<inertia-link v-if="item.can['update-project'] && (item.closure_status === 0 || item.closure_status === -2)"
126124
:href="route('projects.edit', {project: item.id})"
127125
class="text-yellow-600 hover:text-yellow-900 text-sm ml-4">
128-
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 inline" viewBox="0 0 20 20" fill="currentColor">
129-
<path
130-
d="M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"/>
131-
</svg>
126+
<PencilIcon class="h-5 w-5 inline"/>
132127
แก้ไขแผนโครงการ
133128
</inertia-link>
134129
</h3>
@@ -409,6 +404,12 @@
409404
<span v-if="item.updated_at && (item.created_at !== item.updated_at)">
410405
&emsp;แก้ไขเมื่อ {{ item.updated_at }}
411406
</span>
407+
<span v-if="item.closure_status <= 0 || item.can['update-project']">
408+
&emsp;
409+
<inertia-link :href="route('projects.closureForm', {project: item.id})" class="text-amber-600">
410+
บันทึกผลการดำเนินโครงการ
411+
</inertia-link>
412+
</span>
412413
</p>
413414
</div>
414415
<ClosureCancelDialog :show-modal="showCancelDialog" :project="item" @close="showCancelDialog = false"/>
@@ -419,11 +420,13 @@
419420
import AppLayout from '@/Layouts/AppLayout.vue'
420421
import JetButton from '@/Jetstream/Button.vue'
421422
import {
423+
ArrowLeftIcon,
422424
ArrowUpTrayIcon,
423425
CheckCircleIcon,
424426
CheckIcon,
425427
DocumentChartBarIcon,
426428
DocumentTextIcon,
429+
PencilIcon,
427430
PlusIcon,
428431
PrinterIcon,
429432
XMarkIcon
@@ -435,10 +438,11 @@ import {PROJECT_PARTICIPANT_ROLES} from "@/static";
435438
import ClosureStatusText from "@/Components/ClosureStatusText.vue";
436439
import ClosureCancelDialog from "@/Components/ClosureCancelDialog.vue";
437440
import SDGSelector from "@/Components/SDGSelector.vue";
438-
import {Head} from "@inertiajs/vue3";
441+
import {Head, Link as InertiaLink} from "@inertiajs/vue3";
439442
440443
export default {
441444
components: {
445+
InertiaLink,
442446
Head,
443447
SDGSelector,
444448
ClosureCancelDialog,
@@ -451,8 +455,8 @@ export default {
451455
PlusIcon,
452456
XMarkIcon,
453457
JetButton,
454-
ArrowUpTrayIcon,
455-
PrinterIcon,
458+
ArrowLeftIcon, ArrowUpTrayIcon,
459+
PencilIcon, PrinterIcon,
456460
},
457461
computed: {
458462
participantsGrouped() {

0 commit comments

Comments
 (0)