aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-11-02 17:51:39 +0100
committerMateja <mail@matejamaric.com>2020-11-02 17:51:39 +0100
commit2e588511a0dbb7f91c0f46015ccd65d1b280e251 (patch)
tree5e720f1269612246b68cfcc804486223213565b8
parentcdd9fcf7bf49e4468c2290e30a98c6730a334900 (diff)
downloadyota-laravel-2e588511a0dbb7f91c0f46015ccd65d1b280e251.tar.gz
yota-laravel-2e588511a0dbb7f91c0f46015ccd65d1b280e251.zip
Callsign editing fix...
-rw-r--r--resources/views/pages/editsign.blade.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/views/pages/editsign.blade.php b/resources/views/pages/editsign.blade.php
index 0183441..cd2b39b 100644
--- a/resources/views/pages/editsign.blade.php
+++ b/resources/views/pages/editsign.blade.php
@@ -15,14 +15,14 @@
@csrf
<div class="form-group">
<label for="Sign">Special Callsign:</label>
- <input type="text" name="sign" value="{{ $data->sign }}" id="Sign" class="form-control">
+ <input type="text" name="sign" value="{{ ols('sign') ?? $data->sign }}" id="Sign" class="form-control">
@error('sign')
<div class="alert alert-danger mt-2">{{ $message }}</div>
@enderror
</div>
<div class="form-group">
<label for="editor">Description:</label>
- <textarea name="description" id="editor" class="form-control">{{ $data->description }}</textarea>
+ <textarea name="description" id="editor" class="form-control">{{ old('description') ?? $data->description }}</textarea>
</div>
<div class="form-group">
<input type="submit" name="submit" value="Edit callsign" class="btn btn-primary">