protected $_csrf = true;
protected $_title = '';
protected $_submitLabel = 'save';
- protected $_submitIcon='la-save';
+ protected $_submitIcon = 'la-save';
protected $crud;
public function __construct($action = '', $method = 'post')
*/
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;
}
/**
@endif
@include('crud::form_content')
<button type="submit" class="btn btn-success">
- <span class="la {{$form->getSubmitIcon()}}" role="presentation" aria-hidden="true"></span>
+ <span class="{{$form->getSubmitIcon()}}" role="presentation" aria-hidden="true"></span>
<span data-value="save_and_back">{{$form->getSubmitLabel()}}</span>
</button>
</form>