Skip to content

Commit

Permalink
feat: add checkbox for course panel to know what you take
Browse files Browse the repository at this point in the history
  • Loading branch information
BaptTF committed Oct 10, 2024
1 parent d4f4779 commit 652cdc0
Showing 1 changed file with 31 additions and 18 deletions.
49 changes: 31 additions & 18 deletions frontend/src/routes/panel/products/course/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -59,26 +59,39 @@
Nombre à acheter
</span>
</th>
<th scope="col" class="px-3">
<span
class="text-center text-xs font-semibold uppercase tracking-wide text-gray-800 dark:text-gray-200"
>
Checkbox
</span>
</th>
</tr>
</thead>
<tbody class="divide-y divide-gray-200 dark:divide-gray-700">
<td>
{#each items as item}
<p
class="py-3 px-2 block border-gray-200 border-2 rounded-md text-sm focus:border-blue-500 focus:ring-blue-500 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400"
>
{item.item.name}
</p>
{/each}
</td>
<td>
{#each items as item}
<p
class="py-3 px-2 block border-gray-200 border-2 rounded-md text-sm focus:border-blue-500 focus:ring-blue-500 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400"
>
{item.amountToBuy}
</p>
{/each}
</td>
{#each items as item}
<tr>
<td class="px-6 py-4">
<p
class="py-3 px-2 block border-gray-200 border-2 rounded-md text-sm focus:border-blue-500 focus:ring-blue-500 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400"
>
{item.item.name}
</p>
</td>
<td class="px-6 py-4">
<p
class="py-3 px-2 block border-gray-200 border-2 rounded-md text-sm focus:border-blue-500 focus:ring-blue-500 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400"
>
{item.amountToBuy}
</p>
</td>
<td class="text-center px-3">
<input
class="w-12 h-12 block border-gray-200 border-2 rounded-md text-sm focus:border-blue-500 focus:ring-blue-500 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 mx-auto"
type="checkbox"
/>
</td>
</tr>
{/each}
</tbody>
</table>

0 comments on commit 652cdc0

Please sign in to comment.