*/
protected $fakeColumns = [];
+ /**
+ * @var array
+ */
protected $additionalEditViews = [];
+ /**
+ * @var array
+ */
+ protected $editActions = [];
+
/**
* @var array
$this->additionalEditViews[] = $view;
}
+ public function addEditAction($view)
+ {
+ $this->editActions[] = $view;
+ }
+
+ public function getEditActions()
+ {
+ return $this->editActions;
+ }
+
public function preCache()
{
foreach ($this->getFields() as $field) {
@endsection
<div class="col-md-4">
<div id="form_sidebar">
- @hasSection('form_shortcut_m')
- <style type="text/css">
- #form_sidebar {
- position: sticky;
- top: 30px;
- }
+ @hasSection('form_shortcut_m')
+ <style type="text/css">
+ #form_sidebar {
+ position: sticky;
+ top: 30px;
+ }
- #form_shortcuts .card {
- padding: 30px;
- }
+ #form_shortcuts .card {
+ padding: 30px;
+ }
- #form_shortcuts a {
- display: block;
- font-size: 120%;
- font-weight: 500;
- }
- </style>
+ #form_shortcuts a {
+ display: block;
+ font-size: 120%;
+ font-weight: 500;
+ }
+ </style>
- <aside id="form_shortcuts">
- <div class="card">
- <nav>
- @yield('form_shortcut_m')
- </nav>
- </div>
- </aside>
+ <aside id="form_shortcuts">
+ <div class="card">
+ <nav>
+ @yield('form_shortcut_m')
+ </nav>
+ </div>
+ </aside>
+ @push('after_scripts')
+ <script>
+ (function ($) {
+ $(function () {
+ $("#saveActions .btn-form-cancel").remove();
+ $("#saveActions").insertBefore('#form_shortcuts');
+ });
+ })(jQuery);
+ </script>
+ @endpush
+ @endif
- @endif
-
- @hasSection('form_below_shortcuts')
- @yield('form_below_shortcuts')
- @endif
+ @hasSection('form_below_shortcuts')
+ @yield('form_below_shortcuts')
+ @endif
</div>
</div>