ldc-doux/resources/views/back/titles/edit.blade.php
2021-12-15 10:09:39 +01:00

29 lines
1.4 KiB
PHP

@extends('layouts.backend')
@section('content')
<form action="{{route('bo.titles.update', $title->id)}}" method="POST" enctype="multipart/form-data">
@method('PUT')
@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> {{ __('Entête') }} <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>
</div>
</div>
<?php
?>
<div class="form-group">
<label for="title">{{ __('Titre') }} *</label>
<input type="text" id="title" name="title" class="form-control" placeholder="{{ __('Titre') }} *" value="{{ old('title', $title->title ?? '') }}" required>
@include('back.modules.input-error', ['inputName'=>'title'])
</div>
<?php if(!$title->page->equals(Page::marqueBloc4())) { ?>
<div class="form-group">
<label for="subtitle">{{ __('Texte') }}</label>
<input type="text" id="text" name="text" class="form-control" placeholder="{{ __('Texte') }}" value="{{ old('text', $title->text ?? '') }}">
@include('back.modules.input-error', ['inputName'=>'text'])
</div>
<?php } ?>
</form>
@endsection