aboutsummaryrefslogtreecommitdiff
path: root/templates/forms
diff options
context:
space:
mode:
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>