From 1f490bde0a69444060bd575137bc9ccd6e36879d Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Thu, 15 Sep 2022 11:17:01 +0200 Subject: [PATCH] feat(nc-gui): add survey form pages --- .../[projectType]/form/[viewId]/index.vue | 191 ++++-------------- .../form/[viewId]/index/index.vue | 121 +++++++++++ .../form/[viewId]/index/survey.vue | 0 3 files changed, 164 insertions(+), 148 deletions(-) create mode 100644 packages/nc-gui/pages/[projectType]/form/[viewId]/index/index.vue create mode 100644 packages/nc-gui/pages/[projectType]/form/[viewId]/index/survey.vue diff --git a/packages/nc-gui/pages/[projectType]/form/[viewId]/index.vue b/packages/nc-gui/pages/[projectType]/form/[viewId]/index.vue index 10003bdaf4..618425aae5 100644 --- a/packages/nc-gui/pages/[projectType]/form/[viewId]/index.vue +++ b/packages/nc-gui/pages/[projectType]/form/[viewId]/index.vue @@ -1,159 +1,36 @@ - + + - - - - {{ sharedFormView?.heading }} - - {{ sharedFormView.subheading }} - - - - - - - - - - New form will be loaded after {{ secondsRemain }} seconds - - - - Submit Another Form - - - - - - - - - - - - - - - - - - - {{ field.description }} - - - - {{ error.$message }} - - - - - - - - {{ field.description }} - - - - {{ error.$message }} - - - - - - - - {{ $t('general.submit') }} - - - - - - - - - - This shared view is protected - - - - - - - - {{ $t('general.unlock') }} - - - - + + This shared view is protected + + + + + + + + {{ $t('general.unlock') }} + + + @@ -162,5 +39,23 @@ function isRequired(_columnObj: Record, required = false) { .nc-input { @apply w-full rounded p-2 min-h-[40px] flex items-center border-solid border-1 border-primary; } + + .submit { + @apply z-1 relative color-transition rounded p-3 text-white shadow-sm; + + &::after { + @apply rounded absolute top-0 left-0 right-0 bottom-0 transition-all duration-150 ease-in-out bg-primary; + content: ''; + z-index: -1; + } + + &:hover::after { + @apply transform scale-110 ring ring-accent; + } + + &:active::after { + @apply ring ring-accent; + } + } } diff --git a/packages/nc-gui/pages/[projectType]/form/[viewId]/index/index.vue b/packages/nc-gui/pages/[projectType]/form/[viewId]/index/index.vue new file mode 100644 index 0000000000..457e1e5178 --- /dev/null +++ b/packages/nc-gui/pages/[projectType]/form/[viewId]/index/index.vue @@ -0,0 +1,121 @@ + + + + + + + + {{ sharedFormView?.heading }} + + {{ sharedFormView.subheading }} + + + + + + + + + + New form will be loaded after {{ secondsRemain }} seconds + + + + Submit Another Form + + + + + + + + + + + + + + + + + + + {{ field.description }} + + + + {{ error.$message }} + + + + + + + + {{ field.description }} + + + + {{ error.$message }} + + + + + + + + {{ $t('general.submit') }} + + + + + + + + diff --git a/packages/nc-gui/pages/[projectType]/form/[viewId]/index/survey.vue b/packages/nc-gui/pages/[projectType]/form/[viewId]/index/survey.vue new file mode 100644 index 0000000000..e69de29bb2
- New form will be loaded after {{ secondsRemain }} seconds -
+ New form will be loaded after {{ secondsRemain }} seconds +