Skip to content

Commit aba6eb2

Browse files
committed
minor #541 Add trash icon for 'Delete post' button (bocharsky-bw)
This PR was merged into the master branch. Discussion ---------- Add trash icon for 'Delete post' button Before: <img width="275" alt="screen shot 2017-04-21 at 00 38 27" src="https://cloud.githubusercontent.com/assets/3317635/25253758/ea99a98e-262a-11e7-91a9-7754e356144b.png"> After: <img width="283" alt="screen shot 2017-04-21 at 00 37 59" src="https://cloud.githubusercontent.com/assets/3317635/25253766/f4092e90-262a-11e7-8f34-e0fcce5c1821.png"> Commits ------- d7c0fdb Add trash icon for 'Delete post' button
2 parents 1e0b3d6 + d7c0fdb commit aba6eb2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{{ include('blog/_delete_post_confirmation.html.twig') }}
22
<form action="{{ url('admin_post_delete', {id: post.id}) }}" method="post" data-confirmation="true" id="delete-form">
33
<input type="hidden" name="token" value="{{ csrf_token('delete') }}" />
4-
<input type="submit" value="{{ 'action.delete_post'|trans }}" class="btn btn-lg btn-block btn-danger" />
4+
<button type="submit" class="btn btn-lg btn-block btn-danger">
5+
<i class="fa fa-trash" aria-hidden="true"></i>
6+
{{ 'action.delete_post'|trans }}
7+
</button>
58
</form>

0 commit comments

Comments
 (0)