Added forum topic creation feature

Fixes second half of issue #26

Signed-off-by: Gergely Polonkai (W00d5t0ck) <polesz@w00d5t0ck.info>
This commit is contained in:
Gergely Polonkai (W00d5t0ck)
2012-08-23 17:32:52 +02:00
parent 67bfa5f1e0
commit 4d8ae5c0f0
4 changed files with 83 additions and 3 deletions

View File

@@ -1,9 +1,19 @@
{# vim: ft=htmljinja
#}
{% extends 'KekRozsakFrontBundle:Default:main_template.html.twig' %}
{% form_theme newTopicForm 'KekRozsakFrontBundle:Form:user_form.html.twig' %}
{% block title %} - Fórum - {{ topicGroup.title }}{% endblock %}
{% block content %}
<h3><a href="{{ path('KekRozsakFrontBundle_forumTopicGroupList') }}">Fórum</a> - {{ topicGroup.title }}</h3>
<span class="gomb" id="new-topic-button">[Új téma]</span><br />
<form method="post" action="{{ path('KekRozsakFrontBundle_forumTopicList', { slug: topicGroup.slug }) }}">
<table>
{{ form_widget(newTopicForm) }}
</table>
<button type="submit">Mentés</button>
</form>
{% if topicGroup.topics|length > 0 %}
<table class="forum-lista">
<thead>