diff --git a/com/migrations/0005_poster_display_time.py b/com/migrations/0005_poster_display_time.py new file mode 100644 index 00000000..2f2eeae3 --- /dev/null +++ b/com/migrations/0005_poster_display_time.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('com', '0004_auto_20171023_0929'), + ] + + operations = [ + migrations.AddField( + model_name='poster', + name='display_time', + field=models.IntegerField(verbose_name='display time', default=30), + ), + ] diff --git a/com/templates/com/poster_edit.jinja b/com/templates/com/poster_edit.jinja new file mode 100644 index 00000000..418b0752 --- /dev/null +++ b/com/templates/com/poster_edit.jinja @@ -0,0 +1,39 @@ +{% extends "core/base.jinja" %} + +{% block title %} +{% trans %}Poster{% endtrans %} +{% endblock %} + +{% block content %} +
+ +
+ +

{% trans %}Posters - edit{% endtrans %}

+ +
+ +
+ +
+ {% csrf_token %} + {{ form.as_p() }} +

+
+ + +
+ +
+{% endblock %} + + + diff --git a/com/templates/com/poster_list.jinja b/com/templates/com/poster_list.jinja new file mode 100644 index 00000000..654c2a51 --- /dev/null +++ b/com/templates/com/poster_list.jinja @@ -0,0 +1,60 @@ +{% extends "core/base.jinja" %} + +{% block script %} +{{ super() }} + +{% endblock %} + + +{% block title %} +{% trans %}Poster{% endtrans %} +{% endblock %} + +{% block content %} +
+ +
+

{% trans %}Posters{% endtrans %}

+ +
+ +
+ + {% if poster_list.count() == 0 %} +
{% trans %}No posters{% endtrans %}
+ {% else %} + + {% for poster in poster_list %} +
+
{{ poster.name }}
+
+
+
{{ poster.date_begin | date("d/M/Y H:m") }}
+
{{ poster.date_end | date("d/M/Y H:m") }}
+
+ {% if app == "com" %} + {% trans %}Edit{% endtrans %} + {% elif app == "club" %} + {% trans %}Edit{% endtrans %} + {% endif %} +
+ {% endfor %} + + {% endif %} + +
+ +
+ +
+{% endblock %} + + + diff --git a/com/templates/com/poster_moderate.jinja b/com/templates/com/poster_moderate.jinja new file mode 100644 index 00000000..e6336854 --- /dev/null +++ b/com/templates/com/poster_moderate.jinja @@ -0,0 +1,39 @@ +{% extends "core/base.jinja" %} + +{% block script %} +{{ super() }} + +{% endblock %} + +{% block content %} +
+ +
+ +

{% trans %}Posters - moderation{% endtrans %}

+
+ +
+ + {% if object_list.count == 0 %} +
{% trans %}No objects{% endtrans %}
+ {% else %} + + {% for poster in object_list %} +
+
{{ poster.name }}
+
+ Moderate +
+ {% endfor %} + + {% endif %} + +
+ +
+ +
+{% endblock %} diff --git a/com/templates/com/screen_edit.jinja b/com/templates/com/screen_edit.jinja new file mode 100644 index 00000000..70aa2b6c --- /dev/null +++ b/com/templates/com/screen_edit.jinja @@ -0,0 +1,34 @@ +{% extends "core/base.jinja" %} + +{% block title %} +{% trans %}Screen{% endtrans %} +{% endblock %} + +{% block content %} +
+ +
+ +

{% trans %}Screen - edit{% endtrans %}

+ +
+ +
+ +
+ {% csrf_token %} + {{ form.as_p() }} +

+
+ +
+ +
+{% endblock %} + + + diff --git a/com/templates/com/screen_list.jinja b/com/templates/com/screen_list.jinja new file mode 100644 index 00000000..27ff7354 --- /dev/null +++ b/com/templates/com/screen_list.jinja @@ -0,0 +1,39 @@ +{% extends "core/base.jinja" %} + +{% block title %} +{% trans %}Screens{% endtrans %} +{% endblock %} + +{% block content %} +
+ +
+

{% trans %}Screens{% endtrans %}

+ +
+ +
+ + {% if screen_list.count() == 0 %} +
{% trans %}No screens{% endtrans %}
+ {% else %} + + {% for screen in screen_list %} + + {% endfor %} + + {% endif %} + +
+ +
+{% endblock %} + + + diff --git a/com/templates/com/screen_slideshow.jinja b/com/templates/com/screen_slideshow.jinja new file mode 100644 index 00000000..14ca1b46 --- /dev/null +++ b/com/templates/com/screen_slideshow.jinja @@ -0,0 +1,30 @@ + + + + {% trans %}Slideshow{% endtrans %} + + + +
+ +
+ {% for poster in posters %} +
+ +
+ {% endfor %} +
+ +
+ {% for poster in posters %} +
+ {% endfor %} +
+ +
+ +
+ + + +