headwirecom / themeclean-flex

Super fast, Super clean, Peregrine Theme
https://www.peregrine-cms.com
Apache License 2.0
3 stars 21 forks source link

form component #136

Open reusr1 opened 4 years ago

reusr1 commented 4 years ago

Please describe the problem. websites often have forms. We should be able to use oue json schema format or a more direct vue-form-generator form definition to render a form on a website with a defined target for the form action (ajax post request to specified URL).

We should be careful to evaluate overall page speed when enabling a form feature on a public facing website and evaluate how we'd like to tie in forms with objects and https://github.com/headwirecom/peregrine-cms/issues/374

reusr1 commented 4 years ago

created corresponding branch with a simple default implementation.

the implementation is based on the use of vue form generator - sample form:

{
  "fields": [
    {
      "type": "input",
      "inputType": "text",
      "label": "Name",
      "model": "name",
      "id": "user_name",
      "placeholder": "Your name",
      "featured": true,
      "required": true
    }
  ]
}

remaining tasks:

vfg docs: https://vue-generators.gitbook.io/vue-generators/fields