rewrite website
All checks were successful
deploy / build-and-deploy (push) Successful in 16s

This commit is contained in:
2025-10-13 17:22:49 +02:00
parent a6d910f56a
commit 55c0852b7e
263 changed files with 17905 additions and 14451 deletions

View File

@@ -0,0 +1,36 @@
<script>
import Icon from '@iconify/svelte';
import CrudPopup from '@components/admin/popup/CrudPopup.svelte';
import { addStrikeReason, fetchStrikeReasons } from '@app/admin/strikeReasons/strikeReasons.js';
// states
let createPopupOpen = $state(false);
// lifecycle
$effect(() => {
fetchStrikeReasons();
});
</script>
<div>
<button class="btn btn-soft w-full" onclick={() => (createPopupOpen = true)}>
<Icon icon="heroicons:plus-16-solid" />
<span>Neuer Strikegrund</span>
</button>
</div>
<CrudPopup
texts={{
title: 'Strikegrund erstellen',
submitButtonTitle: 'Erstellen',
confirmPopupTitle: 'Strikegrund erstellen?',
confirmPopupMessage: 'Soll der Strikegrund erstellt werden?'
}}
target={null}
keys={[
[{ key: 'name', type: 'text', label: 'Name', options: { required: true, dynamicWidth: true } }],
[{ key: 'weight', type: 'number', label: 'Gewichtung', options: { required: true, dynamicWidth: true } }]
]}
onSubmit={addStrikeReason}
bind:open={createPopupOpen}
/>