diff --git a/src/components/AddEmployeeModal.vue b/src/components/AddEmployeeModal.vue
new file mode 100644
index 0000000..396ef68
--- /dev/null
+++ b/src/components/AddEmployeeModal.vue
@@ -0,0 +1,53 @@
+
+
+div.modal.fade#addEmployeeModal(
+ tabindex="-1"
+ aria-labelledby="addEmployeeModalLabel"
+ aria-hidden="false"
+ data-bs-focus="true"
+)
+ .modal-dialog
+ .modal-content
+ .modal-header
+ h5.modal-title#addEmployeeModalLabel Mitarbeiter hinzufügen
+ button.btn-close(
+ type="button"
+ aria-label="Close"
+ @click=""
+ )
+ .modal-body
+ input.form-control(
+
+ )
+ ul.dropdown-menu(
+
+ )
+ li.dropdown-item(
+
+
+ )
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/Schedule.vue b/src/components/Schedule.vue
index 6ea1f9f..4b9dd16 100644
--- a/src/components/Schedule.vue
+++ b/src/components/Schedule.vue
@@ -1,37 +1,8 @@
+div#modal-container
//- div {{employees}}
-
-div.modal.fade#addEmployeeModal(
- tabindex="-1"
- aria-labelledby="addEmployeeModalLabel"
- aria-hidden="true"
- data-bs-focus="true"
- )
- .modal-dialog
- .modal-content
- .modal-header
- h5.modal-title#addEmployeeModalLabel Mitarbeiter hinzufügen
- button.btn-close(type="button" data-bs-dismiss="modal" aria-label="Close")
- .modal-body
- o-autocomplete(
- ref="autocomplete"
- inputClass="form-control"
- id="addEmployeeInput"
- :keep-first="true"
- :open-on-focus="true"
- placeholder="Nach Vorname / Name suchen..."
- v-model="addEmployeeInput"
- :data="addEmployeeSuggestions"
- ariaAutocomplete="list"
- field="name"
- menuPosition="bottom"
- menuClass="list-group"
- itemClass="list-group-item text-start"
- itemHoverClass="bg-secondary bg-opacity-10"
- @select="addEmployee"
- )
//- TODO: #2 Can't highlight list-group-item when hovering
//- TODO: #3 Close Modal after successful input
@@ -56,11 +27,9 @@ table(class='table table-bordered table-sm' v-for="(row, rIndex) in scheduleData
td(style="width: 250px")
button(
class="btn btn-outline-secondary btn-sm"
- data-bs-toggle="modal"
- data-bs-target="#addEmployeeModal"
- @click="openModal(rIndex)"
+ @click="onClickOpenModal(rIndex)"
)
- i(class="bi bi-plus-lg")
+ i.bi.bi-plus-lg
td(v-for="(date, dIndex) in row.dates" :key="dIndex" :class="{'bg-secondary bg-opacity-10' : row.dates[dIndex] === null}")
@@ -68,11 +37,12 @@ table(class='table table-bordered table-sm' v-for="(row, rIndex) in scheduleData