From: Vincent Vanwaelscappel Date: Mon, 30 May 2022 13:35:52 +0000 (+0200) Subject: wait #5294 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=ea80a977695f386a45bc39b93d5f3ca70f4a8c38;p=cubist_cms-back.git wait #5294 @1 --- diff --git a/src/app/Magic/Form.php b/src/app/Magic/Form.php index 8ddf68b..932f0ce 100644 --- a/src/app/Magic/Form.php +++ b/src/app/Magic/Form.php @@ -17,7 +17,7 @@ class Form extends SubForm protected $_csrf = true; protected $_title = ''; protected $_submitLabel = 'save'; - protected $_submitIcon='la-save'; + protected $_submitIcon = 'la-save'; protected $crud; public function __construct($action = '', $method = 'post') @@ -173,7 +173,13 @@ class Form extends SubForm */ public function getSubmitIcon(): string { - return $this->_submitIcon; + $res = $this->_submitIcon; + $e = explode(' ', $res); + $la = ['la', 'las', 'lab']; + if (!count(array_intersect($e, $la))) { + $res = 'la ' . $res; + } + return $res; } /** diff --git a/src/resources/views/form/form.blade.php b/src/resources/views/form/form.blade.php index 11a0d0c..7d0e9c4 100644 --- a/src/resources/views/form/form.blade.php +++ b/src/resources/views/form/form.blade.php @@ -13,7 +13,7 @@ start_measure('Render form '.$form->getTitle()); @endif @include('crud::form_content')