moiseevigor / laravel-exampleapp

Laravel 5 example app with Formbuilder.js and ACL
MIT License
0 stars 1 forks source link

form fields #7

Open moiseevigor opened 9 years ago

moiseevigor commented 9 years ago

http://laravel.com/docs/4.2/html

moiseevigor commented 9 years ago
[{
  "label": "Untitled",
  "field_type": "text",
  "required": true,
  "field_options": {
    "size": "small",
    "minlength": "1",
    "maxlength": "12",
    "min_max_length_units": "characters"
  },
  "cid": "c8"
}, {
  "label": "Untitled",
  "field_type": "paragraph",
  "required": true,
  "field_options": {
    "size": "small",
    "minlength": "2",
    "maxlength": "3",
    "min_max_length_units": "words"
  },
  "cid": "c12"
}, {
  "label": "Untitled",
  "field_type": "checkboxes",
  "required": true,
  "field_options": {
    "options": [{
      "label": "option 1",
      "checked": true
    }, {
      "label": "option 2",
      "checked": true
    }],
    "include_other_option": true
  },
  "cid": "c16"
}, {
  "label": "Untitled",
  "field_type": "radio",
  "required": true,
  "field_options": {
    "options": [{
      "label": "check 1",
      "checked": true
    }, {
      "label": "check 2",
      "checked": false
    }],
    "include_other_option": true
  },
  "cid": "c20"
}, {
  "label": "Untitled",
  "field_type": "date",
  "required": true,
  "field_options": [],
  "cid": "c24"
}, {
  "label": "Untitled",
  "field_type": "dropdown",
  "required": true,
  "field_options": {
    "options": [{
      "label": "sel1",
      "checked": false
    }, {
      "label": "sel2",
      "checked": true
    }],
    "include_blank_option": true
  },
  "cid": "c28"
}, {
  "label": "Untitled",
  "field_type": "time",
  "required": true,
  "field_options": [],
  "cid": "c32"
}, {
  "label": "Untitled",
  "field_type": "number",
  "required": true,
  "field_options": {
    "min": "12",
    "max": "20",
    "units": "s",
    "integer_only": true
  },
  "cid": "c36"
}, {
  "label": "Untitled",
  "field_type": "website",
  "required": true,
  "field_options": [],
  "cid": "c40"
}, {
  "label": "Untitled",
  "field_type": "email",
  "required": true,
  "field_options": [],
  "cid": "c44"
}, {
  "label": "Ciao",
  "field_type": "section_break",
  "required": true,
  "field_options": [],
  "cid": "c56"
}, {
  "label": "Untitled",
  "field_type": "price",
  "required": true,
  "field_options": [],
  "cid": "c48"
}, {
  "label": "Untitled",
  "field_type": "address",
  "required": true,
  "field_options": [],
  "cid": "c52"
}]