|
@@ -24,17 +24,21 @@
|
24
|
24
|
|
25
|
25
|
<h2>{{ group.name }}</h2>
|
26
|
26
|
|
27
|
|
- <form action="{{ path('element_add', {'group_slug' : group.slug}) }}" method="post" {{ form_enctype(add_form) }}>
|
28
|
|
-
|
29
|
|
- {% include "MuzichCoreBundle:Element:form.add.html.twig" with { 'form': add_form } %}
|
|
27
|
+ {% if his_group or group.open %}
|
|
28
|
+
|
|
29
|
+ <form action="{{ path('element_add', {'group_slug' : group.slug}) }}" method="post" {{ form_enctype(add_form) }}>
|
30
|
30
|
|
31
|
|
- <p>
|
32
|
|
- <i>
|
33
|
|
- {{ 'element.add.group.will_be_in'|trans({}, 'elements') }}
|
34
|
|
- </i>
|
35
|
|
- </p>
|
36
|
|
- <input type="submit" />
|
37
|
|
- </form>
|
|
31
|
+ {% include "MuzichCoreBundle:Element:form.add.html.twig" with { 'form': add_form } %}
|
|
32
|
+
|
|
33
|
+ <p>
|
|
34
|
+ <i>
|
|
35
|
+ {{ 'element.add.group.will_be_in'|trans({}, 'elements') }}
|
|
36
|
+ </i>
|
|
37
|
+ </p>
|
|
38
|
+ <input type="submit" />
|
|
39
|
+ </form>
|
|
40
|
+
|
|
41
|
+ {% endif %}
|
38
|
42
|
|
39
|
43
|
{% include "MuzichCoreBundle:SearchElement:default.html.twig" %}
|
40
|
44
|
|