Only use the edit.html.twig template.

This commit is contained in:
Tim Schumacher 2014-09-25 23:18:07 +02:00
parent 30474e80ce
commit 80182644bc
2 changed files with 3 additions and 37 deletions

View file

@ -54,7 +54,7 @@ class EventController extends Controller
*
* @Route("/termine/", name="_create")
* @Method("POST")
* @Template("CalciferBundle:Event:new.html.twig")
* @Template("CalciferBundle:Event:edit.html.twig")
*/
public function createAction(Request $request)
{
@ -81,7 +81,7 @@ class EventController extends Controller
*
* @Route("/termine/neu", name="_new")
* @Method("GET")
* @Template()
* @Template("CalciferBundle:Event:edit.html.twig")
*/
public function newAction()
{
@ -314,7 +314,7 @@ class EventController extends Controller
*
* @Route("/termine/{slug}/kopieren", name="_copy")
* @Method("GET")
* @Template("CalciferBundle:Event:new.html.twig")
* @Template("CalciferBundle:Event:edit.html.twig")
*/
public function copyAction(Request $request, $slug) {
/** @var EntityManager $em */

View file

@ -1,34 +0,0 @@
{% extends 'CalciferBundle::layout.html.twig' %}
{% block css %}
{% stylesheets filter="compass"
"@CalciferBundle/Resources/assets/css/jquery.datetimepicker.scss"
"@CalciferBundle/Resources/assets/css/events.scss"
"@CalciferBundle/Resources/assets/css/leaflet.scss" %}
<link rel="stylesheet" href="{{ asset_url }}"/>
{% endstylesheets %}
{% endblock %}
{% block javascripts %}
{% javascripts
"@CalciferBundle/Resources/assets/js/jquery.datetimepicker.js"
"@CalciferBundle/Resources/assets/js/events.js"
"@CalciferBundle/Resources/assets/js/leaflet.js" %}
<script src="{{ asset_url }}"></script>
{% endjavascripts %}
{% endblock %}
{% block body -%}
<div class="ui one column page grid">
<div class="ui column">
<h1>Termin bearbeiten</h1>
</div>
</div>
<div class="ui one column page grid">
<div class="ui column">
{{ include('CalciferBundle:Event:event_form.html.twig',{'entity':entity}) }}
</div>
</div>
{% endblock %}