v1.5.22 - Updated Push News

Added old() to different create & Edit pages
Added the removal
This commit is contained in:
Anders
2021-05-10 11:18:05 +02:00
parent 322dbaf31e
commit 4e8e2831da
21 changed files with 103 additions and 65 deletions
@@ -22,15 +22,15 @@
@csrf
@method("put")
<label for="contactname">Kontakt Navn:</label>
<input type="text" name="contactname" id="contactname" placeholder="Navn" value="{{ $contact->contactname }}" required>
<input type="text" name="contactname" id="contactname" placeholder="Navn" value="{{ old('contactname', $contact->contactname) }}" required>
<label for="title">Titel:</label>
<input type="text" name="title" id="title" placeholder="Titel" value="{{ $contact->title }}" required>
<input type="text" name="title" id="title" placeholder="Titel" value="{{ old('title', $contact->title) }}" required>
<label for="email">Email:</label>
<input type="email" name="email" id="email" placeholder="x@y.z" value="{{ $contact->email }}" required>
<input type="email" name="email" id="email" placeholder="x@y.z" value="{{ old('email', $contact->email) }}" required>
<label for="tel">Telefon nr:</label>
<input type="tel" name="phone" id="tel" placeholder="12345678" value="{{ $contact->phone }}" pattern="[0-9]{2}[0-9]{2}[0-9]{2}[0-9]{2}">
<input type="tel" name="phone" id="tel" placeholder="12345678" value="{{ old('phone', $contact->phone) }}" pattern="[0-9]{2}[0-9]{2}[0-9]{2}[0-9]{2}">
<label for="teltimes">Telefon tider: (Forblives blank, hvis der ikke er nogen bestemte tider) - Brug Shift+Enter for at teksten vises lige neden under hinanden hjemmesiden</label>
<textarea name="phonetimes" id="editor">{{ $contact->phonetimes }}</textarea>
<textarea name="phonetimes" id="editor">{{ old('phonetimes', $contact->phonetimes) }}</textarea>
<input type="submit" class="btn btn-dark text-white" value="Rediger">
</form>