forked from indico/indico
-
Notifications
You must be signed in to change notification settings - Fork 0
/
contributions.html
182 lines (177 loc) · 9.65 KB
/
contributions.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
{% extends 'events/management/full_width_base.html' %}
{% from 'events/contributions/management/_contribution_list.html' import render_contrib_list %}
{% from 'events/management/_lists.html' import render_filter_statistics %}
{% block title %}
{% trans %}Contributions{% endtrans %}
{% endblock %}
{% block title_actions %}
{%- if event.type == 'conference' -%}
<a id="contributions-settings-dropdown"
class="i-button borderless icon-settings arrow js-dropdown"
data-toggle="dropdown">{% trans %}Settings{% endtrans %}</a>
<ul class="dropdown">
<li>
<a href="#"
title="{% trans %}Manage contribution types{% endtrans %}"
data-reload-after="customData"
data-title="{% trans %}Manage contribution types{% endtrans %}"
data-href="{{ url_for('.manage_types', event) }}"
data-qtip-position="right"
data-ajax-dialog>
{% trans %}Contribution types{% endtrans %}</a>
</li>
<li>
<a href="#"
title="{% trans %}Set default contribution duration{% endtrans %}"
data-title="{% trans %}Set event-wide contribution duration{% endtrans %}"
data-href="{{ url_for('.manage_default_duration', event) }}"
data-qtip-position="right"
data-ajax-dialog>
{% trans %}Contribution duration{% endtrans %}</a>
</li>
<li>
<a href="#"
title="{% trans %}Manage custom fields{% endtrans %}"
data-ajax-dialog
data-reload-after="customData"
data-title="{% trans %}Manage custom fields{% endtrans %}"
data-href="{{ url_for('.manage_fields', event) }}"
data-qtip-position="right">
{% trans %}Custom fields{% endtrans %}</a>
</li>
</ul>
{%- endif -%}
{% endblock %}
{% block description %}
{%- trans -%}
Manage the contributions of the event from the list below or configure the <strong>contribution types</strong>
and <strong>custom fields</strong> from the settings menu above.
{%- endtrans -%}
{% endblock %}
{% block content %}
<div class="list-section">
<div class="toolbars space-after">
<div class="toolbar">
<a class="i-button icon-checkbox-checked arrow js-dropdown" data-toggle="dropdown"></a>
<ul class="dropdown">
<li>
<a href="#" data-select-all="#contribution-list input:checkbox">{% trans %}All{% endtrans %}</a>
</li>
<li>
<a href="#" data-select-none="#contribution-list input:checkbox">{% trans %}None{% endtrans %}</a>
</li>
</ul>
<button class="i-button highlight icon-plus js-dialog-action hide-if-locked"
title="{% trans %}Add new contribution{% endtrans %}"
data-title="{% trans %}Add new contribution{% endtrans %}"
data-href="{{ url_for('.manage_create_contrib', event) }}"
data-update='{"html": "#contribution-list", "filter_statistics": "#filter-statistics"}'
data-ajax-dialog>
{%- trans %}New contribution{% endtrans -%}
</button>
<button class="i-button js-enable-if-checked icon-remove disabled hide-if-locked"
title="{% trans %}Remove{% endtrans %}"
data-method="POST"
data-href="{{ url_for('.manage_delete_contribs', event) }}"
data-params-selector="#contribution-list input[name=contribution_id]:checked"
data-confirm="{% trans %}Do you really want to delete the selected contributions?{% endtrans %}"
data-title="{% trans %}Confirm deletion{% endtrans %}"
data-update='{"html": "#contribution-list", "filter_statistics": "#filter-statistics"}'>
{%- trans %}Remove{% endtrans -%}
</button>
<button class="i-button icon-users js-enable-if-checked disabled"
data-title="{% trans %}Author list{% endtrans %}"
data-href="{{ url_for('contributions.person_list', event) }}"
data-params-selector="#contribution-list input[name=contribution_id]:checked"
data-method="POST"
data-ajax-dialog>
{%- trans %}Author list{% endtrans -%}
</button>
<a href="#" class="i-button icon-attachment js-enable-if-checked js-submit-form disabled"
data-href="{{ url_for('.material_package', event) }}">
{%- trans %}Material package{% endtrans -%}
</a>
<div class="group">
<a class="i-button js-enable-if-checked arrow disabled"
title="{% trans %}Export data{% endtrans %}"
data-toggle="dropdown">
{%- trans %}Export{% endtrans -%}
</a>
<ul class="dropdown">
<li>
<a href="#" class="icon-file-pdf js-submit-form js-enable-if-checked disabled"
data-href="{{ url_for('.contributions_pdf_export', event) }}">
{%- trans %}PDF{% endtrans -%}
</a>
</li>
<li>
<a href="#" class="icon-file-pdf js-submit-form js-enable-if-checked disabled"
data-href="{{ url_for('.contributions_pdf_export_book', event) }}">
{%- trans %}PDF (book of abstracts){% endtrans -%}
</a>
</li>
<li>
<a href="#" class="icon-file-pdf js-submit-form js-enable-if-checked disabled"
data-href="{{ url_for('.contributions_pdf_export_book_sorted', event) }}">
{%- trans %}PDF (book of abstracts - sorted by board number){% endtrans -%}
</a>
</li>
<li>
<a href="#" class="icon-file-spreadsheet js-submit-form js-enable-if-checked disabled"
data-href="{{ url_for('.contributions_csv_export', event) }}">
{%- trans %}CSV{% endtrans -%}
</a>
</li>
<li>
<a href="#" class="icon-file-excel js-submit-form js-enable-if-checked disabled"
data-href="{{ url_for('.contributions_excel_export', event) }}">
{%- trans %}XLSX (Excel){% endtrans -%}
</a>
</li>
</ul>
<a class="i-button"
title="{% trans %}Import contributions from CSV file{% endtrans %}"
data-href="{{ url_for('.contributions_import', event) }}"
data-title="{% trans %}Import contributions from CSV File{% endtrans %}"
data-ajax-dialog>
{%- trans %}Import{% endtrans -%}
</a>
</div>
</div>
<div class="toolbar">
<div class="group" id="filter-statistics">
{{ render_filter_statistics(contribs|length, total_entries, total_duration) }}
</div>
<button class="i-button icon-filter js-dialog-action"
data-href="{{ url_for('.customize_contrib_list', event) }}"
data-title="{% trans %}Contribution list configuration{% endtrans %}"
data-dialog-classes="list-filter-dialog"
data-update='{"html": "#contribution-list", "filter_statistics": "#filter-statistics"}'
data-ajax-dialog>
{%- trans %}Filters{% endtrans -%}
</button>
<button class="i-button icon-link js-static-url"
data-href="{{ url_for('.generate_static_url', event) }}"
title="{% trans %}Generate a URL for the selected filters.{% endtrans %}"></button>
<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="contribution-list">
{{ render_contrib_list(event, total_entries, contribs, sessions, tracks) }}
</div>
<div id="filter-placeholder"></div>
</div>
<script>
{% if selected_entry %}
$('#search-input').val('#{{ selected_entry }}').trigger('change');
{% endif %}
setupContributionList({
createSessionURL: {{ url_for('sessions.create_session', event) | tojson }},
createTrackURL: {{ url_for('tracks.create_track', event) | tojson }},
timetableRESTURL: {{ url_for('timetable.timetable_rest', event, _method='POST') | tojson }}
});
</script>
{% endblock %}