From 8d15a6cbeb8d7672ffb5c13eaa44600511da377a Mon Sep 17 00:00:00 2001 From: James Polley Date: Sun, 12 Nov 2017 13:07:55 +1100 Subject: [PATCH] Make talk audience and format visible to reviewers * Audience is visible on review details, but not the list. Perhaps useful for cases where reviwer wishes to only review for a particular audience. This change adds audience to the list view. * Format is not visible anywhere. This changes adds it to list and detail views for the reviewers. This change also adds some buttons to control visibility of the new columns. --- .../symposion/proposals/_proposal_fields.html | 9 +++++++ .../symposion/reviews/_review_table.html | 14 +++++++---- .../templates/symposion/reviews/base.html | 25 +++++++++++++++---- 3 files changed, 38 insertions(+), 10 deletions(-) diff --git a/pinaxcon/templates/symposion/proposals/_proposal_fields.html b/pinaxcon/templates/symposion/proposals/_proposal_fields.html index dd9f4925..6db00dad 100644 --- a/pinaxcon/templates/symposion/proposals/_proposal_fields.html +++ b/pinaxcon/templates/symposion/proposals/_proposal_fields.html @@ -22,6 +22,15 @@ + {% if proposal.talk_format %} +
+ +
+

{{ proposal.get_talk_format_display }}

+
+
+ {% endif %} + {% if proposal.additional_speakers.all %}
diff --git a/pinaxcon/templates/symposion/reviews/_review_table.html b/pinaxcon/templates/symposion/reviews/_review_table.html index f3f2f3f8..bc0e6508 100644 --- a/pinaxcon/templates/symposion/reviews/_review_table.html +++ b/pinaxcon/templates/symposion/reviews/_review_table.html @@ -4,12 +4,14 @@ # {% trans "Speaker / Title" %} + Audience + Format {% trans "Votes" %} - {% trans "Score" %} - {% trans "+2" %} - {% trans "+1" %} - {% trans "-1" %} - {% trans "-2" %} + {% trans "Score" %} + {% trans "+2" %} + {% trans "+1" %} + {% trans "-1" %} + {% trans "-2" %} @@ -24,6 +26,8 @@ {{ proposal.title }} + {{ proposal.get_target_audience_display }} + {{ proposal.get_talk_format_display }} {{ proposal.total_votes }} {{ proposal.score }} {{ proposal.plus_two }} diff --git a/pinaxcon/templates/symposion/reviews/base.html b/pinaxcon/templates/symposion/reviews/base.html index 50ed3ac9..7ea259c1 100644 --- a/pinaxcon/templates/symposion/reviews/base.html +++ b/pinaxcon/templates/symposion/reviews/base.html @@ -56,17 +56,32 @@
{% endblock %} {% block extra_script %} - - + - + + {% endblock %}