adjustments
This commit is contained in:
parent
466c088c3e
commit
6e81ab0840
5 changed files with 6 additions and 7 deletions
|
|
@ -46,7 +46,8 @@ class PictosController extends Controller
|
|||
if (is_a($request->picture,"SplFileInfo")) {
|
||||
$picto->picture = Utils::storeImage($request->picture, $picto->getTable());
|
||||
}
|
||||
$picto->page = Page::marqueBloc2();
|
||||
//on ne peut pas arbitrairement créer tous les pictos à cet endroit
|
||||
//$picto->page = Page::marqueBloc2();
|
||||
|
||||
if (!$picto->saveOrFail()) {
|
||||
return redirect()->route('bo.pictos.edit', $picto->id)->with('error', 'Le pictogramme n\'a pas été crée');
|
||||
|
|
|
|||
|
|
@ -95,9 +95,9 @@ class TextsController extends Controller
|
|||
public function destroy(Text $text)
|
||||
{
|
||||
if (!$text->delete()) {
|
||||
return redirect()->route('bo.texts.index')->with('error', trans('La suppression a échoué'));
|
||||
return redirect()->route('bo.texts.content', $text->page)->with('error', trans('La suppression a échoué'));
|
||||
}
|
||||
|
||||
return redirect()->route('bo.texts.index')->with('success', trans('Suppression faite avec succès'));
|
||||
return redirect()->route('bo.texts.content', $text->page)->with('success', trans('Suppression faite avec succès'));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,8 +30,6 @@ class Product extends Model
|
|||
'seo_description',
|
||||
];
|
||||
|
||||
//textual elements only
|
||||
//TODO : make + produit ane pictos translatable
|
||||
public $translatable = [
|
||||
'name',
|
||||
'slug',
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
@csrf
|
||||
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
|
||||
<h1 class="h2">
|
||||
<a href="{{route('bo.pictos.content', Page::marqueBloc2())}}" class="h2 text-decoration-none"> < </a>
|
||||
<a href="{{route('bo.home')}}" class="h2 text-decoration-none"> < </a>
|
||||
{{ __('Pictogrammes') }} <small class="text-muted">{{ __('Création') }}</small></h1>
|
||||
<div class="btn-toolbar mb-2 mb-md-0">
|
||||
<button type="submit" class="btn btn-sm btn-primary">{{ __('Enregistrer') }}</a>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
@csrf
|
||||
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
|
||||
<h1 class="h2">
|
||||
<a href="{{route('bo.home')}}" class="h2 text-decoration-none"> < </a>
|
||||
<a href="{{route('bo.texts.content', $text->page)}}" class="h2 text-decoration-none"> < </a>
|
||||
{{ __('Questions / Réponses') }} <small class="text-muted">{{ __('Edition') }}</small></h1>
|
||||
<div class="btn-toolbar mb-2 mb-md-0">
|
||||
<button type="submit" class="btn btn-sm btn-primary">{{ __('Enregistrer') }}</a>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue