aboutsummaryrefslogtreecommitdiff
path: root/templates/forms
diff options
context:
space:
mode:
authorMoritz Strohm <strohm@data-quest.de>2024-01-29 15:16:24 +0000
committerMoritz Strohm <strohm@data-quest.de>2024-01-29 15:16:24 +0000
commit7c1df847d94d3956bc763b94b73cebfe108dc9a1 (patch)
treee18e003bff65c5bf0748c644d6cd3d235cb1feca /templates/forms
parentda0110d5e85279123e8dde392cb4c926397238bf (diff)
StEP 01354, closes #1354
Closes #1354 Merge request studip/studip!2116
Diffstat (limited to 'templates/forms')
-rw-r--r--templates/forms/date_list_input.php3
-rw-r--r--templates/forms/selected_ranges_input.php7
2 files changed, 10 insertions, 0 deletions
diff --git a/templates/forms/date_list_input.php b/templates/forms/date_list_input.php
new file mode 100644
index 0000000..2f759ad
--- /dev/null
+++ b/templates/forms/date_list_input.php
@@ -0,0 +1,3 @@
+<date-list-input
+ v-model="<?= htmlReady($name) ?>"
+ <?= arrayToHtmlAttributes($vue_attributes) ?>></date-list-input>
diff --git a/templates/forms/selected_ranges_input.php b/templates/forms/selected_ranges_input.php
new file mode 100644
index 0000000..03ebf5d
--- /dev/null
+++ b/templates/forms/selected_ranges_input.php
@@ -0,0 +1,7 @@
+<editable-list name="<?= htmlReady($this->name) ?>"
+ quicksearch="<?= htmlReady((string) $searchtype) ?>"
+ :items="<?= htmlReady(json_encode($selected_items)) ?>"
+ :selectable="<?= htmlReady(json_encode($selectable)) ?>"
+ :category_order="<?= htmlReady(json_encode($category_order)) ?>"
+ @input="output => <?= htmlReady($this->name) ?> = output">
+</editable-list>