-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update config/views/assets for backpack 6 compatibility
- Loading branch information
1 parent
ef47b4a
commit d563536
Showing
20 changed files
with
254 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
|
||
/** | ||
* Default configurations for custom form operations. | ||
*/ | ||
|
||
return [ | ||
// Define the size/looks of the content div for all CRUDs | ||
// To override per view use $this->crud->setCreateContentClass('class-string') | ||
'contentClass' => 'col-md-12 bold-labels', | ||
|
||
// When using tabbed forms (create & update), what kind of tabs would you like? | ||
'tabsType' => 'horizontal', //options: horizontal, vertical | ||
|
||
// How would you like the validation errors to be shown? | ||
'groupedErrors' => true, | ||
'inlineErrors' => true, | ||
|
||
// when the page loads, put the cursor on the first input? | ||
'autoFocusOnFirstField' => true, | ||
|
||
// Where do you want to redirect the user by default, save? | ||
'defaultSaveAction' => 'save_and_back', | ||
|
||
// When the user chooses "save and back" or "save and new", show a bubble | ||
// for the fact that the default save action has been changed? | ||
'showSaveActionChange' => false, //options: true, false | ||
|
||
// Should we show a cancel button to the user? | ||
'showCancelButton' => true, | ||
|
||
// Should we warn a user before leaving the page with unsaved changes? | ||
'warnBeforeLeaving' => false, | ||
|
||
// Before saving the entry, how would you like the request to be stripped? | ||
// - false - use Backpack's default (ONLY save inputs that have fields) | ||
// - invokable class - custom stripping (the return should be an array with input names) | ||
// 'strippedRequest' => App\Http\Requests\StripBackpackRequest::class, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
|
||
return [ | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Theme Configuration Values | ||
|-------------------------------------------------------------------------- | ||
| | ||
| The file provides extra configs on top of config/backpack/ui.php | ||
| | ||
| Any value set here will override the ones defined in | ||
| config/backpack/ui.php when this theme is in use. | ||
| | ||
*/ | ||
|
||
// the layout used for authenticated users in the application | ||
// this layout is used to display errors to logged users | ||
'layout' => 'top_left', | ||
|
||
// ------- | ||
// CLASSES | ||
// ------- | ||
|
||
// These can help make the admin panel look similar to your project's design. | ||
'classes' => [ | ||
|
||
'header' => 'app-header bg-light border-0 navbar', | ||
// For background colors use: bg-dark, bg-primary, bg-secondary, bg-danger, bg-warning, bg-success, bg-info, bg-blue, bg-light-blue, bg-indigo, bg-purple, bg-pink, bg-red, bg-orange, bg-yellow, bg-green, bg-teal, bg-cyan, bg-white | ||
// For links to be visible on different background colors use: "navbar-dark", "navbar-light", "navbar-color" | ||
|
||
'body' => 'app aside-menu-fixed sidebar-lg-show', | ||
// Try sidebar-hidden, sidebar-fixed, sidebar-compact, sidebar-lg-show | ||
|
||
'sidebar' => 'sidebar sidebar-pills bg-light', | ||
// Remove "sidebar-transparent" for standard sidebar look | ||
// Try "sidebar-light" or "sidebar-dark" for dark/light links | ||
// You can also add a background class like bg-dark, bg-primary, bg-secondary, bg-danger, bg-warning, bg-success, bg-info, bg-blue, bg-light-blue, bg-indigo, bg-purple, bg-pink, bg-red, bg-orange, bg-yellow, bg-green, bg-teal, bg-cyan | ||
|
||
'footer' => 'app-footer d-print-none', | ||
// hide it with d-none | ||
// change background color with bg-dark, bg-primary, bg-secondary, bg-danger, bg-warning, bg-success, bg-info, bg-blue, bg-light-blue, bg-indigo, bg-purple, bg-pink, bg-red, bg-orange, bg-yellow, bg-green, bg-teal, bg-cyan, bg-white | ||
|
||
] | ||
|
||
]; |
Oops, something went wrong.