backports murph-skeleton

This commit is contained in:
Simon Vieille 2022-02-26 20:58:53 +01:00
parent 1be9c9bbe3
commit 9dfd70f267
2 changed files with 19 additions and 13 deletions

View file

@ -163,8 +163,13 @@ tr.table-primary-light {
.fa {
font-size: 1.2rem;
margin-right: 5px;
min-width: 30px;
color: #fff;
width: 35px;
display: inline-block;
}
.nav-item-label {
display: inline-block;
}
&.active {
@ -245,10 +250,10 @@ tr.table-primary-light {
.nav-link {
padding-left: 10px;
}
.nav-item-label {
display: none;
.nav-item-label {
display: none;
}
}
.sidebar-heading {
@ -490,9 +495,8 @@ fieldset.form-group {
}
}
th.crud-batch-column {
width: 20px !important;
max-width: 20px;
.table .crud-batch-column {
width: 1%;
}
form {

View file

@ -68,9 +68,10 @@ abstract class CrudController extends AdminController
$entityManager->create($entity);
$this->addFlash('success', 'The data has been saved.');
return $this->redirectToRoute($configuration->getPageRoute('edit'), [
'entity' => $entity->getId(),
]);
return $this->redirectToRoute($configuration->getPageRoute('edit'), array_merge(
['entity' => $entity->getId()],
$configuration->getPageRouteParams('edit')
));
}
$this->addFlash('warning', 'The form is not valid.');
}
@ -111,9 +112,10 @@ abstract class CrudController extends AdminController
$entityManager->update($entity);
$this->addFlash('success', 'The data has been saved.');
return $this->redirectToRoute($configuration->getPageRoute('edit'), [
'entity' => $entity->getId(),
]);
return $this->redirectToRoute($configuration->getPageRoute('edit'), array_merge(
['entity' => $entity->getId()],
$configuration->getPageRouteParams('edit')
));
}
$this->addFlash('warning', 'The form is not valid.');
}