Skip to content

Commit

Permalink
Fix config yiisoft/form. (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed Sep 25, 2021
1 parent 114ed98 commit 6b54976
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions config/params.php
Expand Up @@ -2,16 +2,22 @@

declare(strict_types=1);

/**
* @link https://bulma.io/documentation/form/general/#complete-form-example
*/
return [
'yiisoft/form' => [
'bulma' => [
'enabled' => true,
'fieldConfig' => [
'inputCssClass()' => ['input field mb-1'],
'labelOptions()' => [['label' => '']],
'errorOptions()' => [['class' => 'help is-danger has-text-left is-italic mt-0 mb-2']],
'errorCssClass()' => ['is-danger'],
'successCssClass()' => ['is-success'],
'containerClass' => 'field',
'errorClass' => 'has-text-danger is-italic',
'hintClass' => 'help',
'inputClass' => 'input',
'invalidClass' => 'has-background-danger',
'labelClass' => 'label',
'template' => "{label}<div class=\"control\">\n{input}</div>\n{hint}\n{error}",
'validClass' => 'has-background-success',
],
],
],
Expand Down

0 comments on commit 6b54976

Please sign in to comment.