mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-18 23:08:46 +02:00
N°7063 - Forms SDK - Add Symfony forms component
This commit is contained in:
@@ -80,7 +80,7 @@
|
||||
}
|
||||
|
||||
.container-color2 .form-compound-fieldset fieldset{
|
||||
border-bottom: 1px dashed #c0d1fa;
|
||||
border-bottom: 1px dashed #a3adc5;
|
||||
}
|
||||
|
||||
.container-color2 .form-compound-fieldset fieldset:last-child{
|
||||
|
||||
@@ -323,7 +323,7 @@ class FormHelper
|
||||
if(self::$MODES_DEFINITIONS[$iMode]['group']){
|
||||
$aDescription[':row_1'][':column_2'][':fieldset_2'][] = 'Person_2';
|
||||
$aDescription[':row_2'][':column_1'][':fieldset_2'] = [
|
||||
'@rank' => 1, 'Person_1', 'Person_3'];
|
||||
'@rank' => 1, 'Person_1', 'Person_3', 'notify'];
|
||||
}
|
||||
else{
|
||||
$aDescription[':row_2'][':column_1'][':fieldset_2'] = [ '@rank' => 1, 'Person_1_name'];
|
||||
|
||||
@@ -49,6 +49,7 @@ class FormFieldDescription
|
||||
$oCheckStatus = $this->oType->CheckOptions($this->aOptions);
|
||||
if(!$oCheckStatus['valid']){
|
||||
$sInvalidOptions = implode(', ', $oCheckStatus['invalid_options']);
|
||||
// @todo BDA dictionary
|
||||
throw new Exception("Invalid option(s) $sInvalidOptions provided for field $sName");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,6 +29,8 @@ use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
|
||||
* Form factory.
|
||||
*
|
||||
* Build and manipulate forms.
|
||||
* Factory collect information about the form (descriptions, data and adapters)
|
||||
* Bridge provided in constructor is aimed to transform description into a form object.
|
||||
*
|
||||
* @package FormSDK
|
||||
* @since 3.X.0
|
||||
|
||||
Reference in New Issue
Block a user