Squashed commit of the following:

commit c835e6e220950dd2f95976eae2a50f71a1c532d1
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Mon Nov 7 11:49:26 2016 +0000

    Change visibilty of a method

commit e67d6bfd54cb677e738f934544e0c45c3de59891
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Sun Nov 6 19:42:07 2016 +0000

    Edit method to send webmentions using the new job method

commit fe9839572148b644c5e0e0f32f639650ffbb968c
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Sun Nov 6 19:10:32 2016 +0000

    Updated changelog

commit 1b09744404459e7a6a164788f09ebcc6468b7055
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Sun Nov 6 19:08:45 2016 +0000

    Allow notes to be deleted
This commit is contained in:
Jonny Barnes 2016-11-07 11:50:02 +00:00
parent 6dc7c8da42
commit cb465f027a
7 changed files with 58 additions and 5 deletions

View file

@ -0,0 +1,16 @@
@extends('master')
@section('title')
Delete Note « Admin CP
@stop
@section('content')
<form action="/admin/note/delete/{{ $id }}" method="post" accept-charset="utf-8">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<fieldset class="note-ui">
<legend>Delete Note</legend>
<p>Are you sure you want to delete the note?
<label for="kludge"></label><input type="submit" value="Submit">
</fieldset>
</form>
@stop

View file

@ -0,0 +1,9 @@
@extends('master')
@section('title')
Delete Note Success « Admin CP
@stop
@section('content')
<p>The note was successfully deleted.</p>
@stop

View file

@ -12,7 +12,7 @@ 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"><br>
<label for="kludge"></label><input type="submit" value="Submit" tabindex="6"> <a href="/admin/note/delete/{{ $id }}">Delete note?</a>
</fieldset>
</form>
@stop