Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5e3ad25
commit c4d3194
Showing
6 changed files
with
225 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
115 changes: 115 additions & 0 deletions
115
indico/modules/events/papers/templates/management/_paper_assignment_list.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
{% from 'message_box.html' import message_box %} | ||
|
||
{% macro render_paper_assignment_list(event, total_entries, contribs) %} | ||
{% set tz = event.display_tzinfo %} | ||
{% if contribs %} | ||
<form method="POST"> | ||
<input type="hidden" name="csrf_token" value="{{ session.csrf_token }}"> | ||
<table class="i-table tablesorter"> | ||
<thead> | ||
<tr class="i-table"> | ||
<th class="i-table thin-column" data-sorter="false"></th> | ||
<th class="i-table id-column"> | ||
{% trans %}ID{% endtrans %} | ||
</th> | ||
<th class="i-table title-column"> | ||
{% trans %}Title{% endtrans %} | ||
</th> | ||
<th class="i-table state-column"> | ||
{% trans %}State{% endtrans %} | ||
</th> | ||
<th class="i-table revision-column"> | ||
{% trans %}Revision{% endtrans %} | ||
</th> | ||
<th class="i-table judge-column" data-sorter="false"> | ||
{% trans %}Judges{% endtrans %} | ||
</th> | ||
<th class="i-table content-reviewers-column" data-sorter="false"> | ||
{% trans %}Content reviewers{% endtrans %} | ||
</th> | ||
<th class="i-table layout-reviewers-column" data-sorter="false"> | ||
{% trans %}Layout reviewers{% endtrans %} | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for contrib in contribs %} | ||
{% set last_revision_state %} | ||
{% if contrib.paper_revisions %} | ||
{{ contrib.paper_revisions.0.state.title }} | ||
{% else %} | ||
{%- trans %}Paper not yet submitted{% endtrans -%} | ||
{% endif %} | ||
{% endset %} | ||
<tr id="contrib-{{ contrib.id }}" class="i-table contribution-row" | ||
data-friendly-id="{{ contrib.friendly_id }}" | ||
data-title="{{ contrib.title }}"> | ||
<td class="i-table id-column"> | ||
<span class="vertical-aligner"> | ||
<input type="checkbox" class="select-row" name="contribution_id" | ||
value="{{ contrib.id }}"> | ||
</span> | ||
</td> | ||
<td class="i-table id-column"> | ||
<span class="vertical-aligner">{{ contrib.friendly_id }}</span> | ||
</td> | ||
<td class="i-table title-column" data-searchable="{{ contrib.title | lower }}" | ||
data-text="{{ contrib.title | lower }}"> | ||
<span class="vertical-aligner"> | ||
{# TODO: Link to the paper timeline page #} | ||
<a href="#"> | ||
{{- contrib.title -}} | ||
</a> | ||
</span> | ||
</td> | ||
<td class="i-table state-column" data-searchable="{{ last_revision_state | lower }}"> | ||
<span class="vertical-aligner">{{ last_revision_state }}</span> | ||
</td> | ||
<td class="i-table revision-column"> | ||
<span class="vertical-aligner"> | ||
{% if contrib.paper_revisions %} | ||
{{ contrib.paper_revisions | length }} | ||
{% endif %} | ||
</span> | ||
</td> | ||
<td class="i-table person-row-cell" | ||
data-searchable="{{ contrib.paper_judges|map(attribute='name')|join(', ')|lower }}"> | ||
<span class="vertical-aligner"> | ||
{% for judge in contrib.paper_judges -%} | ||
<div class="person-row icon-user">{{ judge.display_full_name }}</div> | ||
{%- endfor %} | ||
</span> | ||
</td> | ||
<td class="i-table person-row-cell" | ||
data-searchable="{{ contrib.paper_content_reviewers|map(attribute='name')|join(', ')|lower }}"> | ||
<span class="vertical-aligner"> | ||
{% for reviewer in contrib.paper_content_reviewers -%} | ||
<div class="person-row icon-user">{{ reviewer.display_full_name }}</div> | ||
{%- endfor %} | ||
</span> | ||
</td> | ||
<td class="i-table person-row-cell" | ||
data-searchable="{{ contrib.paper_layout_reviewers|map(attribute='name')|join(', ')|lower }}"> | ||
<span class="vertical-aligner"> | ||
{% for reviewer in contrib.paper_layout_reviewers -%} | ||
<div class="person-row icon-user">{{ reviewer.display_full_name }}</div> | ||
{%- endfor %} | ||
</span> | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</form> | ||
{%- else %} | ||
{%- call message_box('info') %} | ||
{%- if total_entries %} | ||
{%- trans -%} | ||
The filtering criteria do not match with any of the existing contributions. Try to clear the filters. | ||
{%- endtrans %} | ||
{%- else %} | ||
{%- trans %}There are no contributions yet.{% endtrans %} | ||
{%- endif %} | ||
{%- endcall %} | ||
{%- endif %} | ||
{% endmacro %} |
77 changes: 77 additions & 0 deletions
77
indico/modules/events/papers/templates/management/assignment.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{% extends 'layout/full_content_base.html' %} | ||
{% from 'events/papers/management/_paper_assignment_list.html' import render_paper_assignment_list %} | ||
{% from 'events/management/_lists.html' import render_displayed_entries_fragment %} | ||
|
||
{% block title %} | ||
{% trans %}Paper Assignment{% endtrans %} | ||
{% endblock %} | ||
|
||
{% block description %} | ||
{%- trans -%} | ||
Assign <strong>judges</strong>, <strong>content reviewers</strong> and <strong>layout reviewers</strong> | ||
to contributions in order to allow assessing its paper revisions. | ||
{%- endtrans -%} | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<div class="toolbars space-after"> | ||
<div class="toolbar"> | ||
<div class="group"> | ||
<a class="i-button icon-checkbox-checked arrow js-dropdown" data-toggle="dropdown"></a> | ||
<ul class="dropdown"> | ||
<li> | ||
<a href="#" data-select-all="#assignment-list input:checkbox">{% trans %}All{% endtrans %}</a> | ||
</li> | ||
<li> | ||
<a href="#" data-select-none="#assignment-list input:checkbox">{% trans %}None{% endtrans %}</a> | ||
</li> | ||
</ul> | ||
</div> | ||
<div class="group"> | ||
<button class="i-button icon-settings js-dialog-action js-customize-list highlight" | ||
data-href="#" | ||
data-title="{% trans %}Paper assignment list configuration{% endtrans %}" | ||
data-dialog-classes="list-filter-dialog" | ||
data-update='{"html": "#assignment-list", "filter_statistics": "#filter-statistics"}' | ||
data-ajax-dialog> | ||
{% trans %}Customize list{% endtrans %} | ||
</button> | ||
</div> | ||
<div class="group"> | ||
<a class="i-button arrow js-dropdown" data-toggle="dropdown"> | ||
{%- trans %}Assign{% endtrans -%} | ||
</a> | ||
<ul class="dropdown"> | ||
<li><a href="#">{% trans %}Judge{% endtrans %}</a></li> | ||
<li><a href="#">{% trans %}Content reviewer{% endtrans %}</a></li> | ||
<li><a href="#">{% trans %}Layout reviewer{% endtrans %}</a></li> | ||
</ul> | ||
<a class="i-button"> | ||
{%- trans %}Unassign{% endtrans -%} | ||
</a> | ||
</div> | ||
<div class="group"> | ||
<a href="#" class="i-button icon-attachment js-enable-if-checked disabled" | ||
data-href="#"> | ||
{%- trans %}Download papers{% endtrans -%} | ||
</a> | ||
</div> | ||
</div> | ||
<div class="toolbar"> | ||
<div class="group" id="filter-statistics"> | ||
{{ render_displayed_entries_fragment(contribs|length, total_entries) }} | ||
</div> | ||
<div class="group"> | ||
<span class="i-button label icon-search"></span> | ||
<input type="text" id="search-input" placeholder="{% trans %}Enter #id or search string{% endtrans %}"> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="list" id="assignment-list"> | ||
{{ render_paper_assignment_list(event, total_entries, contribs) }} | ||
</div> | ||
<div id="filter-placeholder"></div> | ||
<script> | ||
setupPaperAssignmentList(); | ||
</script> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters