Places collection view
This commit is contained in:
rodič
0e53febfca
revize
3364843b2c
|
@ -82,6 +82,12 @@
|
||||||
<th></th>
|
<th></th>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
{/if}
|
{/if}
|
||||||
|
{#if type === 'places'}
|
||||||
|
<th></th>
|
||||||
|
<th>Name</th>
|
||||||
|
<th>👥</th>
|
||||||
|
<th>Address</th>
|
||||||
|
{/if}
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -168,6 +174,16 @@
|
||||||
<a href="/{entry}/{tc.model}/{item.id}" class="text-pbw-red hover:underline">{item.name}</a>
|
<a href="/{entry}/{tc.model}/{item.id}" class="text-pbw-red hover:underline">{item.name}</a>
|
||||||
</td>
|
</td>
|
||||||
{/if}
|
{/if}
|
||||||
|
{#if type === 'places'}
|
||||||
|
<td class="w-14">
|
||||||
|
<img src={item.photo} class="w-10 inline-block rounded aspect-square object-cover" />
|
||||||
|
</td>
|
||||||
|
<td class="text-2xl h-12">
|
||||||
|
<a href="/{entry}/{tc.model}/{item.id}" class="text-pbw-red hover:underline">{item.name}</a>
|
||||||
|
</td>
|
||||||
|
<td>{item.capacity}</td>
|
||||||
|
<td>{item.address}</td>
|
||||||
|
{/if}
|
||||||
</tr>
|
</tr>
|
||||||
{/each}
|
{/each}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
Načítá se…
Odkázat v novém úkolu