mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-19 06:21:15 +00:00
feat(frontend): personalId, link on admin dashboard
This commit is contained in:
parent
c230154d99
commit
1c29369ce5
2 changed files with 12 additions and 8 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue