N°7063 - Forms SDK - Add Symfony forms component

This commit is contained in:
Benjamin Dalsass
2024-01-16 15:32:54 +01:00
parent 77a81c6d6a
commit 098461d4da
4 changed files with 5 additions and 2 deletions

View File

@@ -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{

View File

@@ -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'];

View File

@@ -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");
}
}

View File

@@ -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