diff --git a/app/Services/OptionForm.php b/app/Services/OptionForm.php index 9459d997..5327b986 100644 --- a/app/Services/OptionForm.php +++ b/app/Services/OptionForm.php @@ -108,7 +108,7 @@ class OptionForm $hintContent = trans("options.$this->id.hint"); } - $this->hint = view('common.option-form.hint')->with('hint', $hintContent)->render(); + $this->hint = view('forms.hint')->with('hint', $hintContent)->render(); return $this; } @@ -148,13 +148,11 @@ class OptionForm 'name' => '', ], $info); - $classes = "btn btn-{$info['style']} ".implode(' ', (array) Arr::get($info, 'class')); - - if ($info['href']) { - $this->buttons[] = "{$info['text']}"; - } else { - $this->buttons[] = ""; - } + $info['class'] = array_merge( + ['btn', 'btn-'.$info['style']], + (array) Arr::get($info, 'class') + ); + $this->buttons[] = $info; return $this; } @@ -172,7 +170,7 @@ class OptionForm $msg = trans("options.$this->id.message"); } - $this->messages[] = "
{!! $item->description !!}
-@endif diff --git a/resources/views/common/option-form/main.blade.php b/resources/views/common/option-form/main.blade.php deleted file mode 100644 index c0adeed6..00000000 --- a/resources/views/common/option-form/main.blade.php +++ /dev/null @@ -1,41 +0,0 @@ -