From 8c8fc26f5621a024a9e95a569786d3caf97d84cd Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 16 Apr 2012 22:53:41 +0200 Subject: [PATCH] add teleforma lists --- teleforma/templates/telemeta/lists.html | 122 ++++++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 teleforma/templates/telemeta/lists.html diff --git a/teleforma/templates/telemeta/lists.html b/teleforma/templates/telemeta/lists.html new file mode 100644 index 00000000..51c57bda --- /dev/null +++ b/teleforma/templates/telemeta/lists.html @@ -0,0 +1,122 @@ +{% extends "telemeta/base.html" %} +{% load telemeta_utils %} +{% load i18n %} + +{% block extra_javascript %} + + + +{% endblock %} + +{% block content %} +
+ + {% block module_searches %} + {% with searches as searches and "My searches" as title %} + {% include "telemeta/inc/module_searches.html" %} + {% endwith %} + {% endblock %} + + {% block module_user_revisions %} + {% with user_revisions as revisions and "My last changes" as title %} + {% include "telemeta/inc/module_user_revisions.html" %} + {% endwith %} + {% endblock %} + + {% block module_all_revisions %} + {% with revisions as revisions and "All last changes" as title %} + {% include "telemeta/inc/module_revisions.html" %} + {% endwith %} + {% endblock %} + +
+ +
+

{% trans "My playlists" %}

+ + {% trans "Add" %} + {% for playlist in playlists %} + + + + + + {% if playlist.playlist.description %} + + + + {% endif %} +
{{ playlist.playlist.title }} + {% trans "Edit" %} + CSV Collections + CSV Items + {% trans "Delete" %} +
{{ playlist.playlist.description }}
+ + + + + + + + + + + {% for resource in playlist.resources %} + + + + + + + + + + + {% endfor %} +
{% trans "Title" %}{% trans "Type" %}{% trans "Code" %}{% trans "Recordist" %}{% trans "Recording period" %}{% trans "Sound" %}{% trans "Action" %}
+ {% if resource.type == "item" and not resource.element == None %} + {{ resource.element }} + {% endif %} + {% if resource.type == "collection" and not resource.element == None %} + {% if resource.element.title %}{{ resource.element.title }}{% else %}{{ resource.element }}{% endif %} + {% endif %} + {% if resource.type == "marker" and not resource.element == None %} + {{ resource.element }} + {% endif %} + {% if resource.type == "corpus" or resource.type == "fonds" %} + {{ resource.element.title }} + {% endif %} + {% if resource.element == None %}{% trans "deleted" %}{% endif %} + {{ resource.type }} + {{ resource.element.public_id }} + {{ resource.element.apparent_collector }} + {% if resource.element.recorded_from_date %} + {{ resource.element.recorded_from_date.year }} + {% if resource.element.recorded_to_date and not resource.element.recorded_to_date.year|equals:resource.element.recorded_from_date.year %} + - {{ resource.element.recorded_to_date.year }} + {% endif %} + {% endif %} + + {% if resource.element.file or resource.element.has_mediafile %} + yes + {% endif %} + + +
+ {% endfor %} +
+{% endblock %} + -- 2.39.5