|
@@ -25,6 +25,28 @@
|
25
|
25
|
|
26
|
26
|
|
27
|
27
|
<h2>{{ 'user.show.title'|trans({'%name%' : viewed_user.name}, 'users') }}</h2>
|
|
28
|
+
|
|
29
|
+ {% if app.user.id == viewed_user.id %}
|
|
30
|
+ <div id="element_add_box" style="display: none;">
|
|
31
|
+
|
|
32
|
+ <a href="#" id="element_add_close_link" class="button">
|
|
33
|
+ << {{ 'home.add_element_box.close'|trans({}, 'navigationui') }}
|
|
34
|
+ </a>
|
|
35
|
+
|
|
36
|
+ <form novalidate name="{{ add_form_name }}" action="{{ path('element_add') }}" method="post" {{ form_enctype(add_form) }}>
|
|
37
|
+
|
|
38
|
+ {% include "MuzichCoreBundle:Element:form.add.html.twig" with {
|
|
39
|
+ 'form' : add_form,
|
|
40
|
+ 'form_name' : add_form_name
|
|
41
|
+ } %}
|
|
42
|
+
|
|
43
|
+ </form>
|
|
44
|
+ </div>
|
|
45
|
+
|
|
46
|
+ <a href="#" id="element_add_link" class="button">
|
|
47
|
+ {{ 'home.add_element'|trans({}, 'navigationui') }} >>
|
|
48
|
+ </a>
|
|
49
|
+ {% endif %}
|
28
|
50
|
|
29
|
51
|
<div class="reputation">
|
30
|
52
|
{{ 'user.reputation.name'|trans({}, 'users') }}:
|