@@ -55,7 +55,7 @@ abstract class AbstractCrudController extends EaAbstractCrudController | |||
'label' => false, | |||
], | |||
Action::DELETE => [ | |||
'class' => 'btn btn-sm btn-default', | |||
'class' => 'btn btn-sm btn-default action-delete', | |||
'icon' => 'trash', | |||
'label' => false, | |||
], | |||
@@ -68,7 +68,7 @@ abstract class AbstractCrudController extends EaAbstractCrudController | |||
], | |||
Action::DELETE => [ | |||
'icon' => 'trash', | |||
'class' => 'btn btn-link text-danger', | |||
'class' => 'btn btn-outline-danger action-delete', | |||
], | |||
Action::SAVE_AND_RETURN => $actionSaveAndReturn, | |||
Action::INDEX=>$actionIndex | |||
@@ -84,7 +84,6 @@ abstract class AbstractCrudController extends EaAbstractCrudController | |||
$actions->add(Crud::PAGE_EDIT, Action::INDEX); | |||
$actions->add(Crud::PAGE_EDIT, Action::DELETE); | |||
$actions->add(Crud::PAGE_NEW, Action::INDEX); | |||
$actions->add(Crud::PAGE_NEW, Action::DELETE); | |||
$actions->reorder(Crud::PAGE_EDIT, [Action::INDEX, Action::SAVE_AND_RETURN, Action::SAVE_AND_CONTINUE]); | |||
$actions->reorder(Crud::PAGE_NEW, [Action::INDEX, Action::SAVE_AND_RETURN, Action::SAVE_AND_ADD_ANOTHER]); |
@@ -1,5 +1,8 @@ | |||
section.content{position: relative;} | |||
.content-wrapper > section.content { | |||
position: relative; | |||
padding-bottom: 20px; | |||
} | |||
body.sidebar-collapse:not(.sidebar-mini-xs):not(.sidebar-mini-md):not(.sidebar-mini) { | |||
.form-footer { | |||
@@ -11,7 +14,7 @@ body.sidebar-collapse:not(.sidebar-mini-xs):not(.sidebar-mini-md):not(.sidebar-m | |||
} | |||
body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav), .sidebar-mini-md, .sidebar-mini-xs { | |||
body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav), .sidebar-mini-md, .sidebar-mini-xs { | |||
.form-footer { | |||
@include media-breakpoint-up(md) { | |||
@include transition(margin-left $transition-speed $transition-fn); | |||
@@ -32,12 +35,11 @@ body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav), .sidebar- | |||
} | |||
// Sidebar Mini Breakpoints | |||
.sidebar-mini, .sidebar-mini-md, .sidebar-mini-xs{ | |||
.sidebar-mini, .sidebar-mini-md, .sidebar-mini-xs { | |||
// When the sidebar is collapsed... | |||
&.sidebar-collapse { | |||
// Apply the new margins to the main content and footer | |||
.form-footer | |||
{ | |||
.form-footer { | |||
margin-left: $sidebar-mini-width !important; | |||
} | |||
} | |||
@@ -54,10 +56,10 @@ body:not(.sidebar-mini-md):not(.sidebar-mini-xs):not(.layout-top-nav), .sidebar- | |||
background-color: #fff; | |||
border-top: 1px solid #dee2e6; | |||
color: #869099; | |||
padding: 1rem; | |||
padding: 10px; | |||
.btn-list{ | |||
.float-right, .float-sm-right{ | |||
.btn-list { | |||
.float-right, .float-sm-right { | |||
margin-left: 10px; | |||
} | |||
} |
@@ -53,6 +53,7 @@ | |||
{% endblock form %} | |||
</div> | |||
</div> | |||
<div class="clearfix"></div> | |||
</div> | |||
{% block form_footer %} |
@@ -19,7 +19,8 @@ | |||
<link rel="stylesheet" href="{{ asset('bundles/easyadmin/app.css') }}"> | |||
{% endblock %} #} | |||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback"> | |||
<link rel="stylesheet" | |||
href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback"> | |||
{% block configured_stylesheets %} | |||
{% for css_asset in ea.assets.cssFiles ?? [] %} | |||
@@ -133,22 +134,24 @@ | |||
</div> | |||
</section> | |||
{% block content_footer_wrapper %} | |||
{% set content_footer = block('content_footer') is defined ? block('content_footer') : '' %} | |||
{% if content_footer is not empty %} | |||
<footer class="footer footer-transparent d-print-none"> | |||
<div class="container"> | |||
<div class="row text-center align-items-center flex-row-reverse"> | |||
{{ content_footer }} | |||
</div> | |||
</div> | |||
</footer> | |||
{% endif %} | |||
{% endblock %} | |||
{% endblock %} | |||
</div> | |||
{% block footer %} | |||
{% set content_footer = block('content_footer') is defined ? block('content_footer') : '' %} | |||
<footer class="main-footer"> | |||
<div class="float-right d-none d-sm-block"> | |||
<b>SovBundle Version</b> 1.0 | |||
</div> | |||
<strong>Copyright © {{ 'now'|date('Y') }} <a href="http://laclic.fr">La Clic</a>.</strong> All | |||
rights | |||
reserved. | |||
</footer> | |||
{% endblock %} | |||
{% endblock wrapper %} | |||
</div> | |||
{% endblock wrapper_wrapper %} |