From 4ddf76943d6857f21d2c1dd94f85b2d7c2512cca Mon Sep 17 00:00:00 2001 From: philipp lang Date: Wed, 27 Dec 2023 01:20:07 +0100 Subject: [PATCH] Add column selector --- resources/img/svg/desktop.svg | 1 + resources/img/svg/mobile.svg | 1 + resources/img/svg/tablet.svg | 1 + .../js/views/formtemplate/ColumnSelector.vue | 54 +++++++++++++++++++ .../js/views/formtemplate/FormBuilder.vue | 2 + 5 files changed, 59 insertions(+) create mode 100644 resources/img/svg/desktop.svg create mode 100644 resources/img/svg/mobile.svg create mode 100644 resources/img/svg/tablet.svg create mode 100644 resources/js/views/formtemplate/ColumnSelector.vue diff --git a/resources/img/svg/desktop.svg b/resources/img/svg/desktop.svg new file mode 100644 index 00000000..783eb7e7 --- /dev/null +++ b/resources/img/svg/desktop.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/resources/img/svg/mobile.svg b/resources/img/svg/mobile.svg new file mode 100644 index 00000000..8b49877c --- /dev/null +++ b/resources/img/svg/mobile.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/resources/img/svg/tablet.svg b/resources/img/svg/tablet.svg new file mode 100644 index 00000000..39bccae1 --- /dev/null +++ b/resources/img/svg/tablet.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/resources/js/views/formtemplate/ColumnSelector.vue b/resources/js/views/formtemplate/ColumnSelector.vue new file mode 100644 index 00000000..75f52774 --- /dev/null +++ b/resources/js/views/formtemplate/ColumnSelector.vue @@ -0,0 +1,54 @@ + + + diff --git a/resources/js/views/formtemplate/FormBuilder.vue b/resources/js/views/formtemplate/FormBuilder.vue index d5c0e9c3..82101d13 100644 --- a/resources/js/views/formtemplate/FormBuilder.vue +++ b/resources/js/views/formtemplate/FormBuilder.vue @@ -26,6 +26,7 @@ @submit="storeField" > + @@ -56,6 +57,7 @@ import DropdownField from './RadioField.vue'; import RadioField from './RadioField.vue'; import CheckboxField from './CheckboxField.vue'; import CheckboxesField from './CheckboxesField.vue'; +import ColumnSelector from './ColumnSelector.vue'; const sectionVisible = ref(-1); const singleSection = ref(null);