Add title field to EmailTemplate model and update UI

This commit is contained in:
Ken Yasue
2025-03-25 11:43:47 +01:00
parent 6b9e208214
commit e1440bcea7
6 changed files with 41 additions and 13 deletions

View File

@ -40,7 +40,7 @@ export default async function AdminEmailTemplates() {
scope="col"
className="px-3 py-3.5 text-left text-sm font-semibold text-gray-900"
>
Content Preview
Title
</th>
<th
scope="col"
@ -76,9 +76,7 @@ export default async function AdminEmailTemplates() {
href={`/admin/email-templates/detail/${template.id}`}
className="text-indigo-600 hover:text-indigo-900"
>
{template.content.length > 100
? template.content.substring(0, 100) + '...'
: template.content}
{template.title}
</Link>
</td>
<td className="whitespace-nowrap px-3 py-4 text-sm text-gray-500">