forms as sections with cards, error and app handling
This commit is contained in:
@ -70,11 +70,21 @@
|
||||
- name: compulsory
|
||||
desciption:
|
||||
Form fields may be compulsory or not. By default they are.
|
||||
values: on off
|
||||
default: off
|
||||
values: yes no
|
||||
default: yes
|
||||
- name: form_type
|
||||
desciption:
|
||||
Form fields may have a type for special handling. The default is text
|
||||
but message would be a longer text, and email checked to be a name.
|
||||
values: text message email phone date
|
||||
default: text
|
||||
- name: ok_message
|
||||
desciption:
|
||||
Message shown to the user when a form was submitted
|
||||
values:
|
||||
default:
|
||||
- name: handler
|
||||
desciption:
|
||||
Form handler
|
||||
values: FormHandler
|
||||
default: FormHandler
|
||||
|
@ -82,5 +82,7 @@
|
||||
- header
|
||||
- text
|
||||
options:
|
||||
- ok_message
|
||||
- handler
|
||||
- background
|
||||
- color
|
||||
|
@ -4,6 +4,8 @@ Merged::Engine.routes.draw do
|
||||
post 'changes/commit'
|
||||
get "styles/index"
|
||||
|
||||
post 'form/sendit'
|
||||
|
||||
resources :pages , except: [:show , :new] , shallow: true do
|
||||
resources :sections do
|
||||
get :select_image
|
||||
|
Reference in New Issue
Block a user