feat: Update project and contract terminology for consistency in UI and translations
This commit is contained in:
@@ -467,7 +467,7 @@ export default function ProjectListPage() {
|
||||
<th className="text-left px-2 py-3 font-semibold text-xs text-gray-700 w-10">
|
||||
{t('common.type') || 'Typ'}
|
||||
</th>
|
||||
<th className="text-left px-2 py-3 font-semibold text-xs text-gray-700 w-16 md:w-20">
|
||||
<th className="text-left px-2 py-3 font-semibold text-xs text-gray-700 w-10">
|
||||
{t('common.status') || 'Status'}
|
||||
</th>
|
||||
<th className="text-left px-2 py-3 font-semibold text-xs text-gray-700 w-14 md:w-16">
|
||||
@@ -483,8 +483,8 @@ export default function ProjectListPage() {
|
||||
index % 2 === 0 ? "bg-white" : "bg-gray-25"
|
||||
}`}
|
||||
>
|
||||
<td className="px-2 py-3">
|
||||
<Badge variant="primary" size="sm" className="text-xs">
|
||||
<td className="px-1 py-3">
|
||||
<Badge variant="secondary" size="sm" className="text-xs">
|
||||
{project.project_number}
|
||||
</Badge>
|
||||
</td>
|
||||
@@ -540,13 +540,25 @@ export default function ProjectListPage() {
|
||||
{project.project_type === "design"
|
||||
? "P"
|
||||
: project.project_type === "construction"
|
||||
? "R"
|
||||
? "B"
|
||||
: project.project_type === "design+construction"
|
||||
? "P+R"
|
||||
? "P+B"
|
||||
: "-"}
|
||||
</td>
|
||||
<td className="px-2 py-3 text-xs text-gray-600 truncate">
|
||||
{getStatusLabel(project.project_status)}
|
||||
<td className="px-2 py-3 text-xs text-gray-600 flex justify-center items-center">
|
||||
{project.project_status === 'registered' ? (
|
||||
<span className="text-red-500 font-bold text-sm" title={t('projectStatus.registered')}>N</span>
|
||||
) : project.project_status === 'in_progress_design' ? (
|
||||
<span className="inline-block w-3 h-3 bg-blue-500 rounded-full" title={t('projectStatus.in_progress_design')}></span>
|
||||
) : project.project_status === 'in_progress_construction' ? (
|
||||
<span className="inline-block w-3 h-3 bg-yellow-400 rounded-full" title={t('projectStatus.in_progress_construction')}></span>
|
||||
) : project.project_status === 'fulfilled' ? (
|
||||
<span className="inline-block w-3 h-3 bg-green-500 rounded-full" title={t('projectStatus.fulfilled')}></span>
|
||||
) : project.project_status === 'cancelled' ? (
|
||||
<span className="text-red-500 font-bold text-lg" title={t('projectStatus.cancelled')}>×</span>
|
||||
) : (
|
||||
<span title="Unknown status">-</span>
|
||||
)}
|
||||
</td>
|
||||
<td className="px-2 py-3">
|
||||
<Link href={`/projects/${project.project_id}`}>
|
||||
|
||||
Reference in New Issue
Block a user