Revised Document stuff (Controller and templates)
Signed-off-by: Polonkai Gergely <polesz@w00d5t0ck.info>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
{% block title %} - Dokumentum létrehozása{% endblock %}
|
||||
{% block content %}
|
||||
<h3>Új dokumentum létrehozása</h3>
|
||||
<form method="post" action="{{ path('KekRozsakFrontBundle_documentCreate', { groupSlug: defaultGroup }) }}">
|
||||
<form method="post" action="{{ path('KekRozsakFrontBundle_documentCreate') }}">
|
||||
{{ form_widget(form) }}
|
||||
<button type="submit">Mentés</button>
|
||||
</form>
|
||||
|
@@ -1,8 +1,10 @@
|
||||
{# vim: ft=htmljinja
|
||||
#}
|
||||
{% extends '::main_template.html.twig' %}
|
||||
{% block title %} - Dokumentum szerkesztése - {{ document.title }}{% endblock %}
|
||||
{% block content %}
|
||||
<h3>Dokumentum szerkesztése - {{ document.title }}</h3>
|
||||
<form method="post" action="{{ path('KekRozsakFrontBundle_documentEdit', { documentSlug: document.slug }) }}">
|
||||
<form method="post" action="{{ path('KekRozsakFrontBundle_documentEdit', {slug: document.slug}) }}">
|
||||
{{ form_widget(form) }}
|
||||
<button type="submit">Mentés</button>
|
||||
</form>
|
||||
|
@@ -2,7 +2,7 @@
|
||||
{% block title %} - Dokumentum - {{ document.title }}{% endblock %}
|
||||
{% block content %}
|
||||
<h3>
|
||||
{{ document.title }}{% if document.createdBy == app.user %} [ <a href="{{ path('KekRozsakFrontBundle_documentEdit', { documentSlug: document.slug }) }}">Szerkesztés</a> ] {% endif %}
|
||||
{{ document.title }}{% if document.createdBy == app.user %} [ <a href="{{ path('KekRozsakFrontBundle_documentEdit', {slug: document.slug}) }}">Szerkesztés</a> ] {% endif %}
|
||||
</h3>
|
||||
{{ document.content|raw }}
|
||||
<div class="szerzo">{{ document.createdBy.displayName }}</div>
|
||||
|
Reference in New Issue
Block a user