feat(frontend): personalId, link on admin dashboard

This commit is contained in:
Sebastian Pravda 2023-02-05 18:15:30 +01:00
parent c230154d99
commit 1c29369ce5
No known key found for this signature in database
GPG key ID: F3BC84F08EFA3F57
2 changed files with 12 additions and 8 deletions

View file

@ -13,9 +13,9 @@
<thead class="bg-[#f6f4f4] ">
<tr>
<th scope="col"> Ev. č. přihlásky </th>
<th scope="col"> Jméno </th>
<th scope="col"> Příjmení </th>
<th scope="col"> Obor </th>
<th scope="col"> Rodné číslo </th>
<th scope="col"> Link </th>
<th scope="col" />
</tr>
</thead>
@ -29,15 +29,15 @@
href="/admin/candidate/{candidate.applicationId}">{candidate.applicationId}</a
></td
>
<td class="text-gray-900">
{candidate.name}
</td>
<td class="text-gray-900">
{candidate.surname}
</td>
<td class="text-gray-900">
{candidate.fieldOfStudy}
</td>
<td class="text-gray-900">
{candidate.personalIdNumber}
</td>
<td class="text-gray-900">
{candidate.relatedApplications?.filter((a) => a !== candidate.applicationId)}
</td>
<td class="text-sm">
<Delete id={candidate.applicationId} on:delete value="Odstranit" />
</td>

View file

@ -40,8 +40,12 @@ export interface CandidateData {
export interface CandidatePreview {
applicationId?: number;
candidateId?: number;
relatedApplications?: Array<number>;
personalIdNumber?: string;
name?: string;
surname?: string;
email?: string;
fieldOfStudy?: string;
}