2019-07-24 11:03:50 +00:00
|
|
|
{% extends "site_base.html" %}
|
2016-06-27 00:14:59 +00:00
|
|
|
{% load staticfiles %}
|
2015-10-16 17:53:02 +00:00
|
|
|
{% load i18n %}
|
2019-10-21 23:28:47 +00:00
|
|
|
|
2015-10-16 17:53:02 +00:00
|
|
|
{% load review_tags %}
|
|
|
|
{% load teams_tags %}
|
2016-09-30 10:46:05 +00:00
|
|
|
{% load registrasion_tags %}
|
2017-09-27 13:46:13 +00:00
|
|
|
{% load lca2018_tags %}
|
2017-03-02 10:06:28 +00:00
|
|
|
{% load staticfiles %}
|
2015-10-16 17:53:02 +00:00
|
|
|
|
2016-06-27 00:14:59 +00:00
|
|
|
|
2018-07-01 10:25:56 +00:00
|
|
|
{% block head_title %}Dashboard{% endblock %}
|
2019-07-24 11:03:50 +00:00
|
|
|
{% block page_title %}User Dashboard{% endblock %}
|
2016-06-27 03:26:26 +00:00
|
|
|
|
2018-10-10 07:47:12 +00:00
|
|
|
{% block alert %}
|
|
|
|
{% endblock %}
|
|
|
|
|
2017-03-02 10:06:28 +00:00
|
|
|
{% block content %}
|
2016-06-27 21:56:27 +00:00
|
|
|
|
2018-06-24 00:14:29 +00:00
|
|
|
{% available_categories as categories %}
|
2018-10-10 07:47:12 +00:00
|
|
|
{% if categories %}
|
2018-06-29 22:56:52 +00:00
|
|
|
{% include "symposion/dashboard/_categories.html" %}
|
2018-06-24 00:14:29 +00:00
|
|
|
{% endif %}
|
2018-10-10 07:47:12 +00:00
|
|
|
|
2019-10-21 23:28:47 +00:00
|
|
|
<div class="mb-4">
|
2018-06-29 22:56:52 +00:00
|
|
|
{% include "symposion/dashboard/speaking.html" %}
|
2018-06-24 00:14:29 +00:00
|
|
|
</div>
|
2016-06-27 21:56:27 +00:00
|
|
|
|
2018-06-24 01:21:52 +00:00
|
|
|
{% if review_sections %}
|
2019-10-21 23:28:47 +00:00
|
|
|
<div class="mb-4">
|
2019-07-24 11:03:50 +00:00
|
|
|
<div class="row">
|
2019-10-21 23:28:47 +00:00
|
|
|
<h2 class="col-12 mb-3">{% trans "Reviews" %}</h2>
|
2019-07-24 11:03:50 +00:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
{% for section in review_sections %}
|
2019-10-21 23:28:47 +00:00
|
|
|
<div class="col-md-6 col-lg-4">
|
2019-07-24 11:03:50 +00:00
|
|
|
<div class="card card-default mb-3">
|
|
|
|
<div class="card-header">
|
|
|
|
<h3 class="card-title">{{ section }}</h3>
|
|
|
|
</div>
|
|
|
|
<div class="card-body">
|
|
|
|
<ul class="list-unstyled">
|
2019-10-14 11:26:49 +00:00
|
|
|
<li><a href="{% url "review_section" section.section.slug %}">All Reviews</a></li>
|
|
|
|
{% comment %}
|
|
|
|
<li><a href="{% url "review_section_assignments" section.section.slug %}">Your Assignments</a></li>
|
|
|
|
{% endcomment %}
|
2018-06-24 00:14:29 +00:00
|
|
|
<li><a href="{% url "user_reviewed" section.section.slug %}">Reviewed by you</a></li>
|
|
|
|
<li><a href="{% url "user_not_reviewed" section.section.slug %}">Not Reviewed by you</a></li>
|
2019-10-14 11:26:49 +00:00
|
|
|
<li><a href="{% url "user_random" section.section.slug %}">Random unreviewed proposal</a></li>
|
2018-06-24 00:14:29 +00:00
|
|
|
</ul>
|
2019-10-14 11:26:49 +00:00
|
|
|
|
2018-06-24 00:14:29 +00:00
|
|
|
<ul class="list-unstyled">
|
|
|
|
<li><a href="{% url "review_status" section.section.slug %}">Voting Status</a></li>
|
2019-10-14 11:26:49 +00:00
|
|
|
{% if section in manage_sections %}
|
|
|
|
<li><a href="{% url "review_bulk_update" section.section.slug %}">Bulk Update</a></li>
|
|
|
|
<li><a href="{% url "result_notification" section.section.slug "accepted" %}">Result notifications</a></li>
|
2018-06-24 00:14:29 +00:00
|
|
|
<li><a href="{% url "review_admin" section.section.slug %}">Reviewer Stats</a></li>
|
2019-10-14 11:26:49 +00:00
|
|
|
{% endif %}
|
2018-06-24 00:14:29 +00:00
|
|
|
</ul>
|
2019-07-24 11:03:50 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
2018-06-24 00:14:29 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-07-24 11:03:50 +00:00
|
|
|
{% endif %}
|
2018-06-30 04:42:03 +00:00
|
|
|
|
2018-06-24 00:14:29 +00:00
|
|
|
{% available_teams as available_teams %}
|
|
|
|
{% if user.memberships.exists or available_teams %}
|
2019-10-21 23:28:47 +00:00
|
|
|
<div class="mb-4">
|
2018-06-30 04:42:03 +00:00
|
|
|
<div class="row">
|
2019-10-21 23:28:47 +00:00
|
|
|
<h2 class="col-12 mb-3">{% trans "Teams "%}</h2>
|
2019-07-24 11:03:50 +00:00
|
|
|
</div>
|
|
|
|
{% if user.memberships.exists %}
|
2018-06-30 04:42:03 +00:00
|
|
|
<div class="row">
|
2019-09-29 10:15:34 +00:00
|
|
|
<h3 class="col-12">Your Teams</h3>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
{% for membership in user.memberships.all %}
|
2019-10-21 23:28:47 +00:00
|
|
|
<div class="col-md-6">
|
2019-09-29 10:15:34 +00:00
|
|
|
{% include "symposion/teams/_team_row.html" with team=membership.team %}
|
2018-06-30 04:42:03 +00:00
|
|
|
</div>
|
2019-09-29 10:15:34 +00:00
|
|
|
{% endfor %}
|
2018-06-30 04:42:03 +00:00
|
|
|
</div>
|
2019-07-24 11:03:50 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if available_teams %}
|
2018-06-30 02:58:39 +00:00
|
|
|
<div class="row">
|
2019-09-29 10:15:34 +00:00
|
|
|
<h3 class="col-12">Available Teams</h3>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
{% for team in available_teams %}
|
2019-10-21 23:28:47 +00:00
|
|
|
<div class="col-md-6">
|
2019-09-29 10:15:34 +00:00
|
|
|
{% include "symposion/teams/_team_row.html" %}
|
2017-04-16 06:01:57 +00:00
|
|
|
</div>
|
2019-09-29 10:15:34 +00:00
|
|
|
{% endfor %}
|
2018-06-24 00:14:29 +00:00
|
|
|
</div>
|
2019-07-24 11:03:50 +00:00
|
|
|
{% endif %}
|
2018-06-24 00:14:29 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2016-06-27 03:26:26 +00:00
|
|
|
|
2017-03-02 10:06:28 +00:00
|
|
|
{% endblock %} <!-- block content -->
|
2016-09-30 10:46:05 +00:00
|
|
|
|
|
|
|
{% block scripts_extra %}
|
2018-06-24 00:14:29 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
var _toggleVoidInvoices = function() {
|
|
|
|
var visible = false;
|
|
|
|
function toggleVoidInvoices() {
|
|
|
|
$btn = $("#toggle-void-invoices");
|
|
|
|
$invoices = $(".void-invoice")
|
2018-10-10 07:47:12 +00:00
|
|
|
|
2018-06-24 00:14:29 +00:00
|
|
|
if (visible) {
|
|
|
|
$invoices.hide();
|
|
|
|
btnText = "Show void invoices";
|
|
|
|
} else {
|
|
|
|
$invoices.show();
|
|
|
|
btnText = "Hide void invoices";
|
2016-09-30 10:46:05 +00:00
|
|
|
}
|
2018-06-24 00:14:29 +00:00
|
|
|
$btn.text(btnText);
|
|
|
|
visible = !visible;
|
|
|
|
return true;
|
2016-09-30 10:46:05 +00:00
|
|
|
}
|
2018-06-24 00:14:29 +00:00
|
|
|
return toggleVoidInvoices;
|
|
|
|
}
|
|
|
|
var toggleVoidInvoices = _toggleVoidInvoices();
|
|
|
|
_toggleVoidInvoices = undefined;
|
|
|
|
</script>
|
2017-04-25 05:59:35 +00:00
|
|
|
{% endblock %}
|