6th release

This commit is contained in:
Paolo
2017-05-04 15:08:39 +02:00
parent 0456c2c059
commit dcedac9617
2 changed files with 68 additions and 5 deletions
+21 -5
View File
@@ -133,7 +133,7 @@ class UDFWidget extends UDFWidgetTpl
}
else if ($jsonSchema->type == 'textarea')
{
$this->_renderTextarea($jsonSchema);
}
else if ($jsonSchema->type == 'date')
{
@@ -156,15 +156,15 @@ class UDFWidget extends UDFWidgetTpl
{
$dropdownWidgetUDF = new DropdownWidgetUDF($this->_name, $this->_args);
$paramters = array();
$parameters = array();
if (isset($jsonSchema->listValues->enum))
{
$paramters = $jsonSchema->listValues->enum;
$parameters = $jsonSchema->listValues->enum;
}
else if (isset($jsonSchema->listValues->sql))
{
$paramters = $jsonSchema->listValues->sql;
$parameters = $jsonSchema->listValues->sql;
}
if ($multiple)
@@ -172,7 +172,23 @@ class UDFWidget extends UDFWidgetTpl
$dropdownWidgetUDF->setMultiple();
}
$dropdownWidgetUDF->render($paramters);
$dropdownWidgetUDF->render($parameters);
}
/**
*
*/
private function _renderTextarea($jsonSchema)
{
$textareaUDF = new TextareaUDF($this->_name, $this->_args);
$text = '';
if (isset($jsonSchema->defaultValue))
{
$text = $jsonSchema->defaultValue;
}
$textareaUDF->render($text);
}
/**