diff --git a/openflexure_microscope/plugins/testing/schema_example/schema.json b/openflexure_microscope/plugins/testing/schema_example/schema.json index a26bd8c0..34d67fd1 100644 --- a/openflexure_microscope/plugins/testing/schema_example/schema.json +++ b/openflexure_microscope/plugins/testing/schema_example/schema.json @@ -2,15 +2,13 @@ "id": "test-plugin", "forms": [ { + "name": "Simple request", + "isCollapsible": false, + "isTask": false, + "selfUpdate": true, "route": "/do", "submitLabel": "Do things", - "selfUpdate": true, "schema": [ - { - "fieldType": "htmlBlock", - "name": "heading", - "content": "This is a plugin!" - }, [ { "fieldType": "numberInput", @@ -40,7 +38,11 @@ "options": ["Foo", "Bar", "Baz"] } ], - + { + "fieldType": "htmlBlock", + "name": "html_block", + "content": "This is a block of HTML in a plugin!
I can do paragraph breaks and stuff." + }, { "fieldType": "selectList", "name": "val_select", @@ -56,6 +58,30 @@ "name": "val_disposable" } ] + }, + { + "name": "Different form", + "isTask": false, + "selfUpdate": true, + "route": "/do", + "submitLabel": "Do different things", + "schema": [ + [ + { + "fieldType": "numberInput", + "placeholder": "Some integer", + "name": "val_int", + "label": "Number value", + "minValue": 0 + }, + { + "fieldType": "textInput", + "placeholder": "Some string", + "label": "String value", + "name": "val_str" + } + ] + ] } ] } \ No newline at end of file