| @@ 9-31 (lines=23) @@ | ||
| 6 | /** |
|
| 7 | * Class Save. |
|
| 8 | */ |
|
| 9 | class Save extends FormButton |
|
| 10 | { |
|
| 11 | protected $show = true; |
|
| 12 | protected $name = 'save_and_continue'; |
|
| 13 | protected $iconClass = 'fa-check'; |
|
| 14 | ||
| 15 | public function __construct() |
|
| 16 | { |
|
| 17 | $this->setText(trans('sleeping_owl::lang.table.save')); |
|
| 18 | $this->setHtmlAttributes([ |
|
| 19 | 'type' => 'submit', |
|
| 20 | 'name' => 'next_action', |
|
| 21 | 'class' => 'btn btn-primary', |
|
| 22 | ]); |
|
| 23 | } |
|
| 24 | ||
| 25 | /** |
|
| 26 | * Init Cancel Button. |
|
| 27 | */ |
|
| 28 | public function initialize() |
|
| 29 | { |
|
| 30 | } |
|
| 31 | } |
|
| 32 | ||
| @@ 8-30 (lines=23) @@ | ||
| 5 | /** |
|
| 6 | * Class Save. |
|
| 7 | */ |
|
| 8 | class SaveAndClose extends FormButton |
|
| 9 | { |
|
| 10 | protected $show = true; |
|
| 11 | protected $name = 'save_and_close'; |
|
| 12 | protected $iconClass = 'fa-check'; |
|
| 13 | ||
| 14 | public function __construct() |
|
| 15 | { |
|
| 16 | $this->setText(trans('sleeping_owl::lang.table.save_and_close')); |
|
| 17 | $this->setHtmlAttributes([ |
|
| 18 | 'type' => 'submit', |
|
| 19 | 'name' => 'next_action', |
|
| 20 | 'class' => 'btn btn-success', |
|
| 21 | ]); |
|
| 22 | } |
|
| 23 | ||
| 24 | /** |
|
| 25 | * Init Cancel Button. |
|
| 26 | */ |
|
| 27 | public function initialize() |
|
| 28 | { |
|
| 29 | } |
|
| 30 | } |
|
| 31 | ||
| @@ 9-31 (lines=23) @@ | ||
| 6 | /** |
|
| 7 | * Class Save. |
|
| 8 | */ |
|
| 9 | class SaveAndCreate extends FormButton |
|
| 10 | { |
|
| 11 | protected $show = true; |
|
| 12 | protected $name = 'save_and_create'; |
|
| 13 | protected $iconClass = 'fa-check'; |
|
| 14 | ||
| 15 | public function __construct() |
|
| 16 | { |
|
| 17 | $this->setText(trans('sleeping_owl::lang.table.save_and_create')); |
|
| 18 | $this->setHtmlAttributes([ |
|
| 19 | 'type' => 'submit', |
|
| 20 | 'name' => 'next_action', |
|
| 21 | 'class' => 'btn btn-info', |
|
| 22 | ]); |
|
| 23 | } |
|
| 24 | ||
| 25 | /** |
|
| 26 | * Init Cancel Button. |
|
| 27 | */ |
|
| 28 | public function initialize() |
|
| 29 | { |
|
| 30 | } |
|
| 31 | } |
|
| 32 | ||