|
@@ -629,27 +629,28 @@ class Form implements Renderable
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- $buttons = '';
|
|
|
+ return <<<HTML
|
|
|
+<div class="box-footer row d-flex">
|
|
|
+ <div class="col-md-2"> </div>
|
|
|
+ <div class="col-md-8">{$this->renderResetButton()}{$this->renderSubmitButton()}</div>
|
|
|
+</div>
|
|
|
+HTML;
|
|
|
+ }
|
|
|
|
|
|
+ protected function renderResetButton()
|
|
|
+ {
|
|
|
if (! empty($this->buttons['reset'])) {
|
|
|
$reset = trans('admin.reset');
|
|
|
|
|
|
- $buttons .= "<button type=\"reset\" class=\"btn btn-white pull-left\"><i class=\"feather icon-rotate-ccw\"></i> {$reset}</button>";
|
|
|
+ return "<button type=\"reset\" class=\"btn btn-white pull-left\"><i class=\"feather icon-rotate-ccw\"></i> {$reset}</button>";
|
|
|
}
|
|
|
+ }
|
|
|
|
|
|
+ protected function renderSubmitButton()
|
|
|
+ {
|
|
|
if (! empty($this->buttons['submit'])) {
|
|
|
- $submit = $this->getSubmitButtonLabel();
|
|
|
-
|
|
|
- $buttons .= "<button type=\"submit\" class=\"btn btn-primary pull-right\"><i class=\"feather icon-save\"></i> {$submit}</button>";
|
|
|
+ return "<button type=\"submit\" class=\"btn btn-primary pull-right\"><i class=\"feather icon-save\"></i> {$this->getSubmitButtonLabel()}</button>";
|
|
|
}
|
|
|
-
|
|
|
- return <<<HTML
|
|
|
-<div class="box-footer row d-flex">
|
|
|
- <div class="col-md-2"> </div>
|
|
|
-
|
|
|
- <div class="col-md-8">{$buttons}</div>
|
|
|
-</div>
|
|
|
-HTML;
|
|
|
}
|
|
|
|
|
|
/**
|