123456789101112131415161718192021222324252627282930313233343536 |
-
- <div class="create_playlist">
- <h2>{{ 'playlist.create_and_add'|trans({}, 'elements') }}</h2>
- <form action="{{ path('playlist_add_element_and_create', { 'element_id' : element_id }) }}" method="post">
- {% include 'MuzichPlaylistBundle:Show:form.html.twig' %}
- </form>
- </div>
-
- <div>
- {% if playlists|length %}
- <h2 class="nomargintop">{{ 'playlist.add_to'|trans({}, 'elements') }}</h2>
- <ul class="playlists_for_element">
- {% for playlist in playlists %}
- <li class="playlist">
- <a class="add_element_to_playlist"
- {% if playlist.owned(app.user) %}
- href="{{ path_token('playlists_add_element', {
- 'playlist_id' : playlist.id,
- 'element_id' : element_id
- }) }}"
- {% else %}
- href="{{ path_token('playlists_add_element_and_copy', {
- 'playlist_id' : playlist.id,
- 'element_id' : element_id
- }) }}"
- {% endif %}
- >
- {{ playlist.name }}
- </a>
- </li>
- {% endfor %}
- </ul>
- {% else %}
-
- {% endif %}
- </div>
|