Switch bio to be stored in database

This commit is contained in:
Jonny Barnes 2023-04-11 16:16:05 +01:00
parent f51a740858
commit bdb69df52d
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8
14 changed files with 219 additions and 38 deletions

View file

@ -0,0 +1,19 @@
@extends('master')
@section('title')Edit Bio « Admin CP « @stop
@section('content')
<h1>Edit bio</h1>
<form action="/admin/bio" method="post" accept-charset="utf-8" class="admin-form form">
{{ csrf_field() }}
{{ method_field('PUT') }}
<div>
<label for="content">Content:</label>
<br>
<textarea name="content" id="content" rows="10" cols="50">{{ old('content', $bioEntry?->content) }}</textarea>
</div>
<div>
<button type="submit" name="save">Save</button>
</div>
</form>
@stop

View file

@ -46,4 +46,9 @@
You can either <a href="/admin/syndication/create">create</a> new syndication targets,
or <a href="/admin/syndication">edit</a> them.
</p>
<h2>Bio</h2>
<p>
Edit your <a href="/admin/bio">bio</a>.
</p>
@stop