|
@@ -5,61 +5,71 @@
|
5
|
5
|
|
6
|
6
|
{% block content %}
|
7
|
7
|
|
8
|
|
- <h2>{{ 'my_account.title'|trans({}, 'userui') }}</h2>
|
|
8
|
+<div id="myaccount">
|
9
|
9
|
|
10
|
|
- <ul>
|
11
|
|
- <li>
|
12
|
|
- <b>{{ 'my_account.username'|trans({}, 'userui') }}</b>: {{ user.name }}
|
13
|
|
- </li>
|
14
|
|
- <li>
|
15
|
|
- <b>{{ 'my_account.email'|trans({}, 'userui') }}</b>: {{ user.email }}
|
16
|
|
- </li>
|
17
|
|
- </ul>
|
18
|
|
-
|
19
|
|
- <h3>{{ 'my_account.favorite_tags'|trans({}, 'userui') }}</h3>
|
20
|
|
-
|
21
|
|
- {% include "MuzichCoreBundle:Tag:tagFavoritesForm.html.twig" with {
|
22
|
|
- 'form' : form_tags_favorites,
|
23
|
|
- 'redirect' : 'account',
|
24
|
|
- 'form_name' : form_tags_favorites_name,
|
25
|
|
- 'favorite_tags_id' : favorite_tags_id
|
26
|
|
- } %}
|
27
|
|
-
|
28
|
|
- <h3>{{ 'my_account.change_password'|trans({}, 'userui') }}</h3>
|
29
|
|
-
|
30
|
|
- <form action="{{ path('change_password') }}" method="post" {{ form_enctype(form_password) }}>
|
31
|
|
-
|
32
|
|
- {% include "MuzichUserBundle:Security:change_password_form.html.twig" with {
|
33
|
|
- 'form': form_password
|
34
|
|
- } %}
|
|
10
|
+ <h1>{{ 'my_account.title'|trans({}, 'userui') }}</h1>
|
35
|
11
|
|
36
|
|
- <input type="submit" class="button" />
|
37
|
|
- </form>
|
38
|
|
-
|
39
|
|
- <h3>{{ 'my_account.change_email'|trans({}, 'userui') }}</h3>
|
40
|
|
-
|
41
|
|
- <form action="{{ path('change_email_request') }}" method="post" {{ form_enctype(change_email_form) }}>
|
|
12
|
+ <ul>
|
|
13
|
+ <li>
|
|
14
|
+ <b>{{ 'my_account.username'|trans({}, 'userui') }}</b>: {{ user.name }}
|
|
15
|
+ </li>
|
|
16
|
+ <li>
|
|
17
|
+ <b>{{ 'my_account.email'|trans({}, 'userui') }}</b>: {{ user.email }}
|
|
18
|
+ </li>
|
|
19
|
+ </ul>
|
|
20
|
+
|
|
21
|
+ <form id="address_update" action="{{ path('update_address', {"token":app.user.getPersonalHash}) }}" method="post">
|
|
22
|
+ <p>
|
|
23
|
+ {{ 'my_account.address.form.ilivenear'|trans({}, 'userui') }}
|
|
24
|
+ <input type="text" name="town" class="intext" value="{{ app.user.town }}" />
|
|
25
|
+ {{ 'my_account.address.form.in'|trans({}, 'userui') }}
|
|
26
|
+ <input type="text" name="country" class="intext" value="{{ app.user.country }}" />
|
|
27
|
+ <input type="submit" value="{{ 'my_account.address.form.submit'|trans({}, 'userui') }}" class="button address_submit" />
|
|
28
|
+ <img class="loader" style="display: none;" src="{{ asset('/bundles/muzichcore/img/ajax-loader.gif') }}" alt="loading"/>
|
|
29
|
+ </p>
|
|
30
|
+ </form>
|
42
|
31
|
|
43
|
|
- {% include "MuzichUserBundle:User:change_email_form.html.twig" with {
|
44
|
|
- 'form': change_email_form
|
45
|
|
- } %}
|
|
32
|
+ <p class="help">
|
|
33
|
+ {{ 'my_account.help_clicks'|trans({}, 'userui') }}
|
|
34
|
+ </p>
|
46
|
35
|
|
47
|
|
- <input type="submit" class="button" />
|
48
|
|
- </form>
|
49
|
|
-
|
50
|
|
- <h3>{{ 'my_account.address.title'|trans({}, 'userui') }}</h3>
|
51
|
|
-
|
52
|
|
- <p>{{ 'my_account.address.description'|trans({}, 'userui') }}</p>
|
|
36
|
+ <h2 data-open="myaccount_favorites_tags">{{ 'my_account.favorite_tags'|trans({}, 'userui') }}</h2>
|
|
37
|
+
|
|
38
|
+ <div id="myaccount_favorites_tags" class="myaccount_part" style="display: none;">
|
|
39
|
+ {% include "MuzichCoreBundle:Tag:tagFavoritesForm.html.twig" with {
|
|
40
|
+ 'form' : form_tags_favorites,
|
|
41
|
+ 'redirect' : 'account',
|
|
42
|
+ 'form_name' : form_tags_favorites_name,
|
|
43
|
+ 'favorite_tags_id' : favorite_tags_id
|
|
44
|
+ } %}
|
|
45
|
+ </div>
|
|
46
|
+
|
|
47
|
+ <h2 data-open="myaccount_favorites_password">{{ 'my_account.change_password'|trans({}, 'userui') }}</h2>
|
|
48
|
+
|
|
49
|
+ <div id="myaccount_favorites_password" class="myaccount_part" style="display: none;">
|
|
50
|
+ <form class="nicelabels changepassword" action="{{ path('change_password') }}" method="post" {{ form_enctype(form_password) }}>
|
|
51
|
+
|
|
52
|
+ {% include "MuzichUserBundle:Security:change_password_form.html.twig" with {
|
|
53
|
+ 'form': form_password
|
|
54
|
+ } %}
|
|
55
|
+
|
|
56
|
+ <input type="submit" class="button" value="{{ 'my_account.change_password_submit'|trans({}, 'userui') }}" />
|
|
57
|
+ </form>
|
|
58
|
+ </div>
|
|
59
|
+
|
|
60
|
+ <h2 data-open="myaccount_favorites_email">{{ 'my_account.change_email'|trans({}, 'userui') }}</h2>
|
|
61
|
+
|
|
62
|
+ <div id="myaccount_favorites_email" class="myaccount_part" style="display: none;">
|
|
63
|
+ <form class="nicelabels changeemail" action="{{ path('change_email_request') }}" method="post" {{ form_enctype(change_email_form) }}>
|
|
64
|
+
|
|
65
|
+ {% include "MuzichUserBundle:User:change_email_form.html.twig" with {
|
|
66
|
+ 'form': change_email_form
|
|
67
|
+ } %}
|
|
68
|
+
|
|
69
|
+ <input type="submit" class="button" value="{{ 'my_account.change_email_submit'|trans({}, 'userui') }}" />
|
|
70
|
+ </form>
|
|
71
|
+ </div>
|
|
72
|
+ <div style="clear:both;"></div>
|
53
|
73
|
|
54
|
|
- <form id="address_update" action="{{ path('update_address', {"token":app.user.getPersonalHash}) }}" method="post">
|
55
|
|
- <p>
|
56
|
|
- {{ 'my_account.address.form.ilivenear'|trans({}, 'userui') }}
|
57
|
|
- <input type="text" name="town" class="intext" value="{{ app.user.town }}" />
|
58
|
|
- {{ 'my_account.address.form.in'|trans({}, 'userui') }}
|
59
|
|
- <input type="text" name="country" class="intext" value="{{ app.user.country }}" />
|
60
|
|
- <input type="submit" value="{{ 'my_account.address.form.submit'|trans({}, 'userui') }}" class="button address_submit" />
|
61
|
|
- <img class="loader" style="display: none;" src="{{ asset('/bundles/muzichcore/img/ajax-loader.gif') }}" alt="loading"/>
|
62
|
|
- </p>
|
63
|
|
- </form>
|
64
|
|
-
|
|
74
|
+ </div>
|
65
|
75
|
{% endblock %}
|