Add ability to delete notes

This commit is contained in:
Jonny Barnes 2017-06-11 17:10:17 +01:00
parent b7eacf21c5
commit 7799ff0f58
3 changed files with 14 additions and 2 deletions

View file

@ -30,7 +30,7 @@ class NotesController extends Controller
$note->originalNote = $note->getOriginal('note');
}
return view('admin.notes.index', comapct('notes'));
return view('admin.notes.index', compact('notes'));
}
/**

View file

@ -1,5 +1,8 @@
# Changelog
## Version {next}
- Add ability to delete notes
## Version 0.5.11 (2017-06-11)
- to help with micropub clients, log requests made to micropub endpoint

View file

@ -13,7 +13,16 @@ Edit Note « Admin CP
<label for="in-reply-to" accesskey="r">Reply-to: </label><input type="text" name="in-reply-to" id="in-reply-to" placeholder="in-reply-to-1 in-reply-to-2 …" tabindex="1" value="{{ $note->in_reply_to }}"><br>
<label for="content" accesskey="n">Note: </label><textarea name="content" id="content" placeholder="Note" tabindex="2">{{ $note->originalNote }}</textarea><br>
<label for="webmentions" accesskey="w">Send webmentions: </label><input type="checkbox" name="webmentions" id="webmentions" checked="checked" tabindex="3"><br>
<label for="kludge"></label><input type="submit" value="Submit" tabindex="6">
<label for="kludge"></label><input type="submit" value="Submit" id="kludge" tabindex="6">
</fieldset>
</form>
<form action="/admin/notes/{{ $note->id }}" method="post" accept-charset="utf-8">
{{ csrf_field() }}
{{ method_field('DELETE') }}
<fieldset class="note-ui">
<legend>Delete Note</legend>
<label for"delete" accesskey="d">Delete: </label><input type="checkbox" name="delete" id="delete" checked="checked">
<label for="kludge"></label><input type="submit" value="Submit" id="kludge">
</fieldset>
</form>
@stop