Skip to content

Commit a08212d

Browse files
committed
feat: show timestamp in activity page
1 parent a6954e5 commit a08212d

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

resources/js/Pages/ActivityCreate.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<InputError :message="form.errors.organization" class="mt-2"/>
3636
</div>
3737
<div class="col-span-2">
38-
<Label for="period_start" value="วันที่เริ่ม"/>
38+
<Label for="period_start" value="วันที่เริ่ม (ค.ศ.)"/>
3939
<Input id="period_start" v-model="form.period_start" type="date" pattern="\d{4}-\d{2}-\d{2}" min="2024-01-01"
4040
class="mt-1 block w-full" :disabled="view_only" :class="{'border-0': view_only}"
4141
/>
@@ -186,6 +186,12 @@
186186
</template>
187187
</FormSection>
188188
</template>
189+
<p class="mt-2 text-xs text-gray-500 text-right">
190+
สร้างเมื่อ {{ item.created_at }}
191+
<span v-if="item.updated_at && (item.created_at !== item.updated_at)">
192+
&emsp;แก้ไขเมื่อ {{ item.updated_at }}
193+
</span>
194+
</p>
189195
</div>
190196
<Link :href="route('activities.edit', {activity: item.id})" v-if="view_only && can_edit">
191197
<button

0 commit comments

Comments
 (0)