Add phone field to color request form and database

This commit is contained in:
DaX
2025-08-29 12:41:34 +02:00
parent 9f2dade0e3
commit 6d534352b2
4 changed files with 40 additions and 6 deletions

View File

@@ -11,6 +11,7 @@ interface ColorRequest {
material_type: string;
finish_type: string;
user_email: string;
user_phone: string;
user_name: string;
description: string;
reference_url: string;
@@ -215,6 +216,13 @@ export default function ColorRequestsAdmin() {
) : (
<span className="text-gray-400 dark:text-gray-500">Anonimno</span>
)}
{request.user_phone && (
<div className="mt-1">
<a href={`tel:${request.user_phone}`} className="text-blue-600 dark:text-blue-400 hover:underline">
{request.user_phone}
</a>
</div>
)}
</div>
</td>
<td className="px-4 py-3">