first draft
This commit is contained in:
26
app/Resources/views/admin/blog/edit.html.twig
Normal file
26
app/Resources/views/admin/blog/edit.html.twig
Normal file
@@ -0,0 +1,26 @@
|
||||
{% extends 'admin/layout.html.twig' %}
|
||||
|
||||
{% block body_id 'admin_post_edit' %}
|
||||
|
||||
{% block main %}
|
||||
<h1>{{ 'title.edit_post'|trans({'%id%': post.id}) }}</h1>
|
||||
|
||||
{{ include('admin/blog/_form.html.twig', {
|
||||
form: edit_form,
|
||||
button_label: 'action.save'|trans,
|
||||
include_back_to_home_link: true,
|
||||
}, with_context = false) }}
|
||||
{% endblock %}
|
||||
|
||||
{% block sidebar %}
|
||||
<div class="section actions">
|
||||
{{ include('admin/blog/_form.html.twig', {
|
||||
form: delete_form,
|
||||
button_label: 'action.delete_post'|trans,
|
||||
button_css: 'btn btn-lg btn-block btn-danger',
|
||||
show_confirmation: true,
|
||||
}, with_context = false) }}
|
||||
</div>
|
||||
|
||||
{{ parent() }}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user