✨ Ajoute les liens publics
This commit is contained in:
@@ -96,6 +96,16 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" type="radio" name="slug" id="slug-non" value="" checked>
|
||||
<label class="form-check-label" for="slug-non">Non</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" type="radio" name="slug" id="slug-oui" value="{{ \Illuminate\Support\Str::uuid() }}">
|
||||
<label class="form-check-label" for="slug-oui">Oui</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
</div>
|
||||
|
@@ -99,6 +99,16 @@
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" type="radio" name="slug" id="slug-non" value="" @if(empty($home->slug)) checked @endif>
|
||||
<label class="form-check-label" for="slug-non">Non</label>
|
||||
</div>
|
||||
<div class="form-check form-check-inline">
|
||||
<input class="form-check-input" type="radio" name="slug" id="slug-oui" @if(!empty($home->slug)) checked @endif value="@if(!empty($home->slug)) {{ $home->slug }} @else {{ \Illuminate\Support\Str::uuid() }} @endif">
|
||||
<label class="form-check-label" for="slug-oui">Oui</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
</div>
|
||||
|
@@ -67,7 +67,8 @@
|
||||
<div class="col-lg-3"><strong>GES : </strong> {{ $home->ges ?? '−' }}</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-3 offset-5"><a href="{{ route('home.update', $home->id) }}" class="btn btn-light">Mettre à jour</a></div>
|
||||
@if(!empty($home->slug)) <div class="col-lg-3"><a href="{{ route('public.view', $home->slug) }}" class="btn btn-light">Lien public</a></div>@endif
|
||||
<div class="col-lg-3 offset-3"><a href="{{ route('home.update', $home->id) }}" class="btn btn-light">Mettre à jour</a></div>
|
||||
<div class="col-lg-3"><a href="{{ $home->url }}" class="btn btn-success">Voir l'origine →</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user