mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 00:24:35 +00:00
- Dropped the Vorlage editor from Vilesci
- Removed brutusin/json-forms and kingsquare/json-schema-form - Updated composer.lock - Removed not anymore used files and widgets
This commit is contained in:
@@ -1,47 +0,0 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* JSON-Forms widget
|
||||
*/
|
||||
class jsonforms_widget extends Widget
|
||||
{
|
||||
public function display($data)
|
||||
{
|
||||
// set default values if needed
|
||||
if (! isset($data['objectname']))
|
||||
$data['objectname'] = 'bf';
|
||||
if (! isset($data['id']))
|
||||
$data['id'] = 'jsonforms';
|
||||
if (! isset($data['style']))
|
||||
$data['style'] = 'width: 50%; ';
|
||||
if (! isset($data['schema']))
|
||||
$data['schema'] = '{
|
||||
"$schema": "http://json-schema.org/draft-03/schema#",
|
||||
"title": "Person",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"anrede": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"Herr",
|
||||
"Frau"
|
||||
],
|
||||
"default": "Herr"
|
||||
},
|
||||
"vorname": {
|
||||
"type": "string",
|
||||
"description": "Firstname",
|
||||
"minLength": 2,
|
||||
"default": "Vorname"
|
||||
},
|
||||
"nachname": {
|
||||
"type": "string",
|
||||
"description": "Surename",
|
||||
"minLength": 2,
|
||||
"default": "Nachname"
|
||||
}
|
||||
}
|
||||
}';
|
||||
$this->view('widgets/jsonforms', $data);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user