💄 Ajoute un label pour l'URL publique

This commit is contained in:
Clement 2020-07-24 15:54:58 +02:00
parent b349420bec
commit e757d3aac5
2 changed files with 33 additions and 17 deletions

View File

@ -97,14 +97,22 @@
</div> </div>
</div> </div>
<div class="col-lg-4"> <div class="col-lg-4">
<div class="form-check form-check-inline"> <fieldset class="form-group row">
<input class="form-check-input" type="radio" name="slug" id="slug-non" value="" checked> <legend class="col-form-label col-sm-6 pt-0">URL publique</legend>
<label class="form-check-label" for="slug-non">Non</label>
</div> <div class="col-sm-3">
<div class="form-check form-check-inline"> <div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="slug" id="slug-oui" value="{{ \Illuminate\Support\Str::uuid() }}"> <input class="form-check-input" type="radio" name="slug" id="slug-non" value="" checked>
<label class="form-check-label" for="slug-oui">Oui</label> <label class="form-check-label" for="slug-non">Non</label>
</div> </div>
</div>
<div class="col-sm-3">
<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>
</fieldset>
</div> </div>
<div class="col-lg-4"> <div class="col-lg-4">
<button type="submit" class="btn btn-primary">Submit</button> <button type="submit" class="btn btn-primary">Submit</button>

View File

@ -100,17 +100,25 @@
</div> </div>
</div> </div>
<div class="col-lg-4"> <div class="col-lg-4">
<div class="form-check form-check-inline"> <fieldset class="form-group row">
<input class="form-check-input" type="radio" name="slug" id="slug-non" value="" @if(empty($home->slug)) checked @endif> <legend class="col-form-label col-sm-6 pt-0">URL publique</legend>
<label class="form-check-label" for="slug-non">Non</label>
</div> <div class="col-sm-3">
<div class="form-check form-check-inline"> <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"> <input class="form-check-input" type="radio" name="slug" id="slug-non" value="" checked>
<label class="form-check-label" for="slug-oui">Oui</label> <label class="form-check-label" for="slug-non">Non</label>
</div> </div>
</div>
<div class="col-sm-3">
<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>
</fieldset>
</div> </div>
<div class="col-lg-4"> <div class="col-lg-4">
<button type="submit" class="btn btn-primary">Submit</button> <button type="submit" class="btn btn-primary">Enregistrer</button>
</div> </div>
</div> </div>
</form> </form>