mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2024-12-13 18:57:05 +01:00
7fb6068d49
Made link title (previously required) optional when adding personal LittleLink links on the User/Admin Panel. If the 'Title' field is left empty, the button name is now used instead of rejecting the addition.
35 lines
1.2 KiB
PHP
Executable File
35 lines
1.2 KiB
PHP
Executable File
@extends('layouts.sidebar')
|
|
|
|
@section('content')
|
|
|
|
<h2 class="mb-4"><i class="bi bi-plus"> Add Link</i></h2>
|
|
|
|
<form action="{{ route('addLink') }}" method="post">
|
|
@csrf
|
|
<div class="form-group col-lg-8">
|
|
<label>Link*</label>
|
|
<input type="text" name="link" class="form-control" placeholder="https://google.com">
|
|
</div>
|
|
<div class="form-group col-lg-8">
|
|
<label>Title</label>
|
|
<input type="text" name="title" class="form-control" placeholder="Internal name (optional)">
|
|
</div>
|
|
<div class="form-group col-lg-8">
|
|
<label for="exampleFormControlSelect1">Button*</label>
|
|
<select class="form-control" name="button">
|
|
@foreach($buttons as $button)
|
|
@if($button->name == 'custom')
|
|
<option>Custom button (Title determines text on button)</option>
|
|
@else
|
|
<option> {{ $button->name }} </option>
|
|
@endif
|
|
@endforeach
|
|
</select>
|
|
<br>
|
|
<label>* Required fields</label><br>
|
|
</div>
|
|
<button type="submit" class="mt-3 ml-3 btn btn-info">Submit</button>
|
|
</form>
|
|
|
|
@endsection
|