Commit aec82404 authored by Carsten  Rose's avatar Carsten Rose
Browse files

formEditor.sql: added 'class' to all FormElement Records.

parent 583ec301
......@@ -64,7 +64,7 @@ CREATE TABLE IF NOT EXISTS `FormElement` (
`mode` ENUM('show', 'readonly', 'required', 'lock', 'disabled') NOT NULL DEFAULT 'show',
`class` ENUM('native', 'action', 'container') NOT NULL DEFAULT 'native',
`type` ENUM('checkbox', 'dateJQW', 'datetimeJQW', 'email', 'gridJQW', 'hidden', 'input',
`type` ENUM('checkbox', 'dateJQW', 'datetimeJQW', 'gridJQW', 'hidden', 'input',
'note', 'password', 'radio', 'select', 'subrecord', 'upload', 'fieldset', 'pill',
'before_load', 'before_save', 'before_insert', 'before_update', 'before_delete', 'after_load',
'after_save', 'after_insert', 'after_update', 'after_delete', 'feGroup',
......@@ -123,40 +123,40 @@ INSERT INTO Form (name, title, noteInternal, tableName, permitNew, permitEdit, r
'Form', 'always', 'always', 'bootstrap', '', 'maxVisiblePill=3');
# FormEditor: FormElements
INSERT INTO FormElement (formId, name, label, mode, type, ord, size, maxLength, note, clientJs, value, sql1, sql2, parameter, feIdContainer)
INSERT INTO FormElement (formId, name, label, mode, class, type, ord, size, maxLength, note, clientJs, value, sql1, sql2, parameter, feIdContainer)
VALUES
(1, 'basic', 'Basic', 'show', 'pill', 10, 0, 0, '', '', '', '', '', '', 0),
(1, 'permission', 'Permission', 'show', 'pill', 20, 0, 0, '', '', '', '', '', '', 0),
(1, 'various', 'Various', 'show', 'pill', 30, 0, 0, '', '', '', '', '', '', 0),
(1, 'formelement', 'Formelement', 'show', 'pill', 40, 0, 0, '', '', '', '', '', '', 0),
(1, 'id', 'id', 'readonly', 'input', 100, 10, 11, '', '', '', '', '', '', 1),
(1, 'name', 'Name', 'show', 'input', 120, 40, 255, '', '', '', '', '', 'autofocus=on', 1),
(1, 'title', 'Title', 'show', 'input', 130, 40, 255, '', '', '', '', '', '', 1),
(1, 'noteInternal', 'Note', 'show', 'input', 140, '40,3', 0, '', '', '', '', '', '', 1),
(1, 'tableName', 'Table', 'show', 'select', 150, 0, 0, '', '', '', '{{!SHOW tables}}', '', '', 1),
(1, 'permitNew', 'Permit New', 'show', 'radio', 160, 0, 0, '', '', '', '', '', '', 2),
(1, 'permitEdit', 'Permit Edit', 'show', 'radio', 170, 0, 0, '', '', '', '', '', '', 2),
(1, 'permitUrlParameter', 'Permit Url Parameter', 'show', 'input', 180, 40, 255, '', '', '', '', '', '', 2),
(1, 'render', 'Render', 'show', 'radio', 190, 0, 0, '', '', '', '', '', '', 2),
(1, 'multi', 'Multi', 'show', 'fieldset', 210, 0, 0, '', '', '', '', '', '', 3),
(1, 'multiMode', 'Multi Mode', 'show', 'radio', 220, 0, 0, '', '', '', '', '', '', 3),
(1, 'multiSql', 'Multi SQL', 'show', 'input', 230, '40,3', 0, '', '', '', '', '', '', 3),
(1, 'multiDetailForm', 'Multi Detail Form', 'show', 'input', 240, 40, 255, '', '', '', '', '', '', 3),
(1, 'multiDetailFormParameter', 'Multi Detail Form Parameter', 'show', 'input', 250, 40, 255, '', '', '', '', '', '', 3),
(1, 'forwardMode', 'Forward', 'show', 'radio', 260, 0, 0, '', '', '', '', '', '', 3),
(1, 'forwardPage', 'Forward Page', 'show', 'input', 270, 40, 255, '', '', '', '', '', '', 3),
(1, 'bsLabelColumns', 'BS Label Columns', 'show', 'input', 280, 40, 250, '', '', '', '', '', '', 3),
(1, 'bsInputColumns', 'BS Input Columns', 'show', 'input', 290, 40, 250, '', '', '', '', '', '', 3),
(1, 'bsNoteColumns', 'BS Note Columns', 'show', 'input', 300, 40, 250, '', '', '', '', '', '', 3),
(1, 'deleted', 'Deleted', 'show', 'checkbox', 400, 0, 0, '', '', '', '', '', '', 3),
(1, 'modified', 'Modified', 'readonly', 'input', 410, 40, 20, '', '', '', '', '', '', 3),
(1, 'created', 'Created', 'readonly', 'input', 420, 40, 20, '', '', '', '', '', '', 3),
(1, '', 'FormElements', 'show', 'subrecord', 500, 0, 0, '', '', '',
(1, 'basic', 'Basic', 'show', 'pill', 'container', 10, 0, 0, '', '', '', '', '', '', 0),
(1, 'permission', 'Permission', 'show', 'pill', 'container', 20, 0, 0, '', '', '', '', '', '', 0),
(1, 'various', 'Various', 'show', 'pill', 'container', 30, 0, 0, '', '', '', '', '', '', 0),
(1, 'formelement', 'Formelement', 'show', 'pill', 'container', 40, 0, 0, '', '', '', '', '', '', 0),
(1, 'id', 'id', 'readonly', 'input', 'native', 100, 10, 11, '', '', '', '', '', '', 1),
(1, 'name', 'Name', 'show', 'input', 'native', 120, 40, 255, '', '', '', '', '', 'autofocus=on', 1),
(1, 'title', 'Title', 'show', 'input', 'native', 130, 40, 255, '', '', '', '', '', '', 1),
(1, 'noteInternal', 'Note', 'show', 'input', 'native', 140, '40,3', 0, '', '', '', '', '', '', 1),
(1, 'tableName', 'Table', 'required', 'select', 'native', 150, 0, 0, '', '', '', '{{!SHOW tables}}', '', 'emptyItemAtStart', 1),
(1, 'permitNew', 'Permit New', 'show', 'radio', 'native', 160, 0, 0, '', '', '', '', '', '', 2),
(1, 'permitEdit', 'Permit Edit', 'show', 'radio', 'native', 170, 0, 0, '', '', '', '', '', '', 2),
(1, 'permitUrlParameter', 'Permit Url Parameter', 'show', 'input', 'native', 180, 40, 255, '', '', '', '', '', '', 2),
(1, 'render', 'Render', 'show', 'radio', 'native', 190, 0, 0, '', '', '', '', '', '', 2),
(1, 'multi', 'Multi', 'show', 'fieldset', 'native', 210, 0, 0, '', '', '', '', '', '', 3),
(1, 'multiMode', 'Multi Mode', 'show', 'radio', 'native', 220, 0, 0, '', '', '', '', '', '', 3),
(1, 'multiSql', 'Multi SQL', 'show', 'input', 'native', 230, '40,3', 0, '', '', '', '', '', '', 3),
(1, 'multiDetailForm', 'Multi Detail Form', 'show', 'input', 'native', 240, 40, 255, '', '', '', '', '', '', 3),
(1, 'multiDetailFormParameter', 'Multi Detail Form Parameter', 'show', 'input', 'native', 250, 40, 255, '', '', '', '', '', '', 3),
(1, 'forwardMode', 'Forward', 'show', 'radio', 'native', 260, 0, 0, '', '', '', '', '', '', 3),
(1, 'forwardPage', 'Forward Page', 'show', 'input', 'native', 270, 40, 255, '', '', '', '', '', '', 3),
(1, 'bsLabelColumns', 'BS Label Columns', 'show', 'input', 'native', 280, 40, 250, '', '', '', '', '', '', 3),
(1, 'bsInputColumns', 'BS Input Columns', 'show', 'input', 'native', 290, 40, 250, '', '', '', '', '', '', 3),
(1, 'bsNoteColumns', 'BS Note Columns', 'show', 'input', 'native', 300, 40, 250, '', '', '', '', '', '', 3),
(1, 'deleted', 'Deleted', 'show', 'checkbox', 'native', 400, 0, 0, '', '', '', '', '', '', 3),
(1, 'modified', 'Modified', 'readonly', 'input', 'native', 410, 40, 20, '', '', '', '', '', '', 3),
(1, 'created', 'Created', 'readonly', 'input', 'native', 420, 40, 20, '', '', '', '', '', '', 3),
(1, '', 'FormElements', 'show', 'subrecord', 'native', 500, 0, 0, '', '', '',
'{{!SELECT * FROM FormElement WHERE formId={{id:R0}}}}',
'', 'form=formElement\npage=form.php', 4);
......@@ -182,7 +182,7 @@ VALUES
(111, 2, 'formId', 'formId', 'readonly', 'input', 120, 40, 255, '', '', '', '', '', '', 100, 'no'),
(112, 2, 'feIdContainer', 'Container', 'show', 'select', 150, 0, 0, '', '', '',
'{{!SELECT fe.id, CONCAT(fe.class, " / ", fe.label) FROM FormElement As fe WHERE fe.formId={{id}} AND fe.class="container" ORDER BY fe.ord }}',
'', '', 100, 'no'),
'', 'emptyItemAtStart', 100, 'no'),
(113, 2, 'enabled', 'Enabled', 'show', 'checkbox', 120, 0, 0, '', '', '', '', '', '', 100, 'no'),
(114, 2, 'name', 'Name', 'show', 'input', 120, 40, 255, '', '', '', '', '', '', 100, 'no'),
(115, 2, 'label', 'Label', 'show', 'input', 130, 40, 255, '', '', '', '', '', '', 100, 'no'),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment