|
| 1 | +{% load i18n %} |
| 2 | +{% load uuid %} |
| 3 | +{% trans "Correspondence Author" as label_corr_author %} |
| 4 | +{% trans "Author" as label_author %} |
| 5 | +{% trans "Reviewer" as label_reviewer %} |
| 6 | +{% trans "Copyeditor" as label_copyeditor %} |
| 7 | +{% trans "Typesetter" as label_typesetter %} |
| 8 | + |
| 9 | +{% get_uuid4 as pid %} |
| 10 | + |
| 11 | +<div class="box"> |
| 12 | + <div class="title-area"> |
| 13 | + <h2>{% trans "Contacts" %}</h2> |
| 14 | + </div> |
| 15 | + <div class="content"> |
| 16 | + {% with author=article.correspondence_author %} |
| 17 | + {% if author %} |
| 18 | + {% include "admin/elements/contacts_box_person.html" with person=author role=label_corr_author %} |
| 19 | + {% endif %} |
| 20 | + {% endwith %} |
| 21 | + |
| 22 | + <div data-give-me-options-{{ pid }} class="give-me-options"> |
| 23 | + <div class="button-group no-bottom-margin"> |
| 24 | + <button |
| 25 | + data-give-me |
| 26 | + class="button hollow secondary" |
| 27 | + type="button" |
| 28 | + aria-expanded="false" |
| 29 | + aria-controls="options-pane-{{ pid }}"> |
| 30 | + <span class="fa fa-angle-up"></span> |
| 31 | + <span class="fa fa-angle-down"></span> |
| 32 | + {% trans "Show more contacts" %} |
| 33 | + </button> |
| 34 | + </div> |
| 35 | + <div id="options-pane-{{ pid }}" class="options-pane padding-block-1"> |
| 36 | + {% for author in article.authors.all %} |
| 37 | + {% if author != article.correspondence_author %} |
| 38 | + {% include "admin/elements/contacts_box_person.html" with person=author role=label_author %} |
| 39 | + {% endif %} |
| 40 | + {% endfor %} |
| 41 | + |
| 42 | + {% for assignment in article.editorassignment_set.all %} |
| 43 | + {% include "admin/elements/contacts_box_person.html" with person=assignment.editor role=assignment.get_editor_type_display %} |
| 44 | + {% endfor %} |
| 45 | + |
| 46 | + {% for assignment in article.reviewassignment_set.all %} |
| 47 | + {% include "admin/elements/contacts_box_person.html" with person=assignment.reviewer role=label_reviewer %} |
| 48 | + {% endfor %} |
| 49 | + |
| 50 | + {% for assignment in article.copyeditassignment_set.all %} |
| 51 | + {% if assignment.copyeditor %} |
| 52 | + {% include "admin/elements/contacts_box_person.html" with person=assignment.copyeditor role=label_copyeditor %} |
| 53 | + {% endif %} |
| 54 | + {% endfor %} |
| 55 | + |
| 56 | + {% if article.productionassignment %} |
| 57 | + {% for task in article.productionassignment.typeset_tasks %} |
| 58 | + {% include "admin/elements/contacts_box_person.html" with person=task.typesetter role=label_typesetter %} |
| 59 | + {% endfor %} |
| 60 | + {% endif %} |
| 61 | + </div> |
| 62 | + </div> |
| 63 | + </div> |
| 64 | +</div> |
| 65 | + |
| 66 | +{% include "admin/elements/give_me_options_js.html" with pid=pid %} |
0 commit comments