-
Notifications
You must be signed in to change notification settings - Fork 16
/
maned_journal.html
51 lines (44 loc) · 2.59 KB
/
maned_journal.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
{% extends "admin/admin_base.html" %}
{% set form_id = "maned_form" %}
{% set formulaic_after = url_for("admin.journal_page", journal_id=obj.id) %}
{% set form_action = url_for("admin.journal_page", journal_id=obj.id) %}
{% set js_validation = True %}
{% set auto_save = 0 %}
{% set notabs = true %}
{% set diff_table = false %}
{% set quick_reject = false %}
{% set withdrawable = true %}
{% block page_title %}Journal: {{ obj.bibjson().title }}{% endblock %}
{% block body_id %}apply{% endblock %}
{% block content scoped %}
{% include "application_form/editorial_form_body.html" %}
<div class="modal" id="modal-withdraw_reinstate" tabindex="-1" role="dialog" aria-labelledby="modalLabel-withdraw_reinstate">
<div class="modal__dialog" role="document">
{% set action_label = "Withdraw" if obj.is_in_doaj() else "Reinstate" %}
{% set message = "Are you sure you want to " + action_label + " " + obj.id %}
{% if job %}
{% set action_label = "Withdrawing" if obj.is_in_doaj() else "Reinstating" %}
{% set job_url = "/admin/background_jobs?source=%7B%22query%22%3A%7B%22query_string%22%3A%7B%22query%22%3A%22" + job.id + "%22%2C%22default_operator%22%3A%22AND%22%7D%7D%2C%22sort%22%3A%5B%7B%22created_date%22%3A%7B%22order%22%3A%22desc%22%7D%7D%5D%2C%22from%22%3A0%2C%22size%22%3A25%7D" %}
{% set message = "There is currently a background job " + action_label + " " + obj.id + ". You can view the progress of this job <a href='" + job_url + "' target='_blank'>here</a> (opens in new tab). You will get an email when your request has been processed; this could take anything from a few minutes to a few hours." %}
{% endif %}
<h3 class="modal__title" id="modalLabel-withdraw_reinstate">
{{action_label}}
</h3>
<p>{% autoescape off %}{{ message }}{% endautoescape %}</p>
{% if not job %}
{% set action = url_for("admin.journal_activate", journal_id=obj.id) %}
{% if obj.is_in_doaj() %}
{% set action = url_for("admin.journal_deactivate", journal_id=obj.id) %}
{% endif %}
<form method="post" action="{{ action }}" id="journal_witdraw_reinstate">
<button class="button button--primary" type="submit" id="submit_quick_reject">{{ action_label }}</button>
</form>
{% endif %}
<button type="button" data-dismiss="modal" class="modal__close">Close</button>
</div>
</div>
{% endblock %}
{% block extra_js_bottom scoped %}
{% set factory = "journal" %}
{% include "application_form/js/_form_js.html" %}
{% endblock %}