diff --git a/src/Event/EventBundle/Entity/Stage.php b/src/Event/EventBundle/Entity/Stage.php new file mode 100644 index 0000000..4a33d2e --- /dev/null +++ b/src/Event/EventBundle/Entity/Stage.php @@ -0,0 +1,104 @@ +id; + } + + /** + * Set title + * + * @param string $title + * @return WshSchedule + */ + public function setTitle($title) + { + $this->title = $title; + + return $this; + } + + /** + * Get title + * + * @return string + */ + public function getTitle() + { + return $this->title; + } + + /** + * Get isActive + * + * @return boolean + */ + public function getIsActive() + { + return $this->isActive; + } + + /** + * Set isActive + * + * @param boolean $isActive + * @return Workshop + */ + public function setIsActive($isActive) + { + $this->isActive = $isActive; + + return $this; + } + +} diff --git a/src/Event/EventBundle/Entity/WshSchedule.php b/src/Event/EventBundle/Entity/WshSchedule.php index 45d5c5a..677a161 100644 --- a/src/Event/EventBundle/Entity/WshSchedule.php +++ b/src/Event/EventBundle/Entity/WshSchedule.php @@ -1,10 +1,4 @@ isActive = $isActive; + return $this; } diff --git a/src/Event/EventBundle/Resources/views/Backend/Stage/index.html.twig b/src/Event/EventBundle/Resources/views/Backend/Stage/index.html.twig new file mode 100644 index 0000000..bf493ea --- /dev/null +++ b/src/Event/EventBundle/Resources/views/Backend/Stage/index.html.twig @@ -0,0 +1,37 @@ +{% extends 'EventEventBundle:Backend:layout.html.twig' %} + +{% block data_tables_css %} + + +{% endblock %} + +{% block content %} +
+ + + + + + + + + + +
idTitleActions
+
+ {% include 'EventEventBundle:Backend:_confirm_modal.html.twig' + with {'title': 'Confirm action', 'body': 'Do you really want to delete this stage?'} %} +{% endblock %} + +{% block data_tables_js %} + + +{% endblock %} diff --git a/src/Event/EventBundle/Resources/views/Backend/Stage/manage.html.twig b/src/Event/EventBundle/Resources/views/Backend/Stage/manage.html.twig new file mode 100644 index 0000000..79846d5 --- /dev/null +++ b/src/Event/EventBundle/Resources/views/Backend/Stage/manage.html.twig @@ -0,0 +1,39 @@ +{% extends 'EventEventBundle:Backend:layout.html.twig' %} + +{% block content %} +
+ + + {{ render(controller('EventEventBundle:Backend/Dashboard:localeTabs', {'translations' : speech.translations})) }} + + {{ form_start(form, {'method': 'POST', 'action': path('backend_speech_edit', {'id': speech.id})}) }} +
+
+ {{ form_row(form.speaker) }} +
+ {{ form_row(form.event) }} +
+ {{ form_row(form.title) }} + {{ form_row(form.language) }} + {{ form_row(form.description) }} + {{ form_row(form.slide) }} + {{ form_row(form.video) }} +
+ + {% for translation in form.translations %} +
+ {{ form_widget(translation) }} +
+ {% endfor %} + + {{ form_rest(form) }} + + +
+ {{ form_end(form) }} + +
+{% endblock %}