diff --git a/packages/builder/src/components/userInterface/temporaryPanelStructure.js b/packages/builder/src/components/userInterface/temporaryPanelStructure.js index e2c4044fb6..764daef972 100644 --- a/packages/builder/src/components/userInterface/temporaryPanelStructure.js +++ b/packages/builder/src/components/userInterface/temporaryPanelStructure.js @@ -321,17 +321,44 @@ export default { name: "Form", description: "A component that generates a form from your data.", icon: "ri-file-edit-fill", - properties: { - design: { ...all }, - settings: [{ label: "Model", key: "model", control: ModelSelect }], - }, - _component: "@budibase/standard-components/dataform", - template: { - component: "@budibase/materialdesign-components/Form", - description: "Form for saving a record", - name: "@budibase/materialdesign-components/recordForm", - }, - children: [], + commonProps: {}, + children: [ + { + _component: "@budibase/standard-components/dataform", + name: "Form Basic", + icon: "ri-file-edit-fill", + properties: { + design: { ...all }, + settings: [ + { + label: "Model", + key: "model", + control: ModelSelect, + }, + ], + }, + template: { + component: "@budibase/materialdesign-components/Form", + description: "Form for saving a record", + name: "@budibase/materialdesign-components/recordForm", + }, + }, + { + _component: "@budibase/standard-components/dataformwide", + name: "Form Wide", + icon: "ri-file-edit-fill", + properties: { + design: { ...all }, + settings: [ + { + label: "Model", + key: "model", + control: ModelSelect, + }, + ], + }, + }, + ], }, { name: "Chart", @@ -431,4 +458,4 @@ export default { ], }, ], -} +} \ No newline at end of file diff --git a/packages/standard-components/components.json b/packages/standard-components/components.json index c4c0246672..8df7756499 100644 --- a/packages/standard-components/components.json +++ b/packages/standard-components/components.json @@ -209,6 +209,13 @@ "model": "models" } }, + "dataformwide": { + "description": "an HTML table that fetches data from a model or view and displays it.", + "data": true, + "props": { + "model": "models" + } + }, "datalist": { "description": "A configurable data list that attaches to your backend models.", "data": true, diff --git a/packages/standard-components/src/DataFormWide.svelte b/packages/standard-components/src/DataFormWide.svelte new file mode 100644 index 0000000000..44c7aef4e2 --- /dev/null +++ b/packages/standard-components/src/DataFormWide.svelte @@ -0,0 +1,142 @@ + +
+ \ No newline at end of file diff --git a/packages/standard-components/src/index.js b/packages/standard-components/src/index.js index 24342066e8..37d6abab74 100644 --- a/packages/standard-components/src/index.js +++ b/packages/standard-components/src/index.js @@ -16,6 +16,7 @@ export { default as icon } from "./Icon.svelte" export { default as Navigation } from "./Navigation.svelte" export { default as datatable } from "./DataTable.svelte" export { default as dataform } from "./DataForm.svelte" +export { default as dataformwide } from "./DataFormWide.svelte" export { default as datachart } from "./DataChart.svelte" export { default as datalist } from "./DataList.svelte" export { default as list } from "./List.svelte"