-
Notifications
You must be signed in to change notification settings - Fork 16
/
consents.jinja2
77 lines (73 loc) · 3.23 KB
/
consents.jinja2
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
{% extends "sitebase.jinja2" %}
{% set page_title = _("Consent Documents") %}
{% set show_breadcrumbs = True %}
{% set profile_header = True %}
{% set profile_header_active = "profile" %}
{% set profile_header_name = source_name %}
{% set profile_account_id = account_id %}
{% set profile_source_id = source_id %}
{% block head %}
<link rel="stylesheet" href="/static/vendor/font-awesome-4.7.0/css/font-awesome.min.css"/>
<style>
.tooltipper {
display: inline-block; /* tooltip misplaced horizontally otherwise */
}
</style>
<script src="/static/vendor/js/jquery.form-4.2.2/jquery.form.min.js"></script>
{% endblock %}
{% block breadcrumb %}
<li class="breadcrumb-item"><a href="/accounts/{{account_id}}" class="breadcrumb-item-profile">{{ _('Dashboard') }}</a></li>
<li class="breadcrumb-item active-profile" aria-current="page">{{source_name}}</li>
{% endblock %}
{% block content %}
<div class="container profile-container">
{% if data_consent is none and biospecimen_consent is none %}
<div id="consent_alert" class="alert alert-consent" role="alert">
{{ _('<strong>Please note</strong>: Since you opted to not update your consent agreement, you may not view an online copy of your consent document(s).') }}
</div>
{% endif %}
<div class="card mt-4 p-4">
<div class="row">
<div class="col-12">
<h1>{{ _('Consent Documents') }}</h1>
</div>
</div>
{% if data_consent is not none %}
<div class="row">
<div class="col-12">
<div class="card p-4 mt-4">
<div class="row">
<div class="consent-col">
<h2>{{ _('Survey') }}</h2>
</div>
<div class="consent-col col-end">
<a href="/accounts/{{ account_id }}/sources/{{ source_id }}/consents/data/view" class="consent-link">
<img src="/static/img/pdf.svg" height="20" width="20" class="me-1"/> {{ _('View') }}
</a>
</div>
</div>
</div>
</div>
</div>
{% endif %}
{% if biospecimen_consent is not none %}
<div class="row">
<div class="col-12">
<div class="card p-4 mt-4">
<div class="row">
<div class="col">
<h2>{{ _('Biospecimen') }}</h2>
</div>
<div class="consent-col col-end">
<a href="/accounts/{{ account_id }}/sources/{{ source_id }}/consents/biospecimen/view" class="consent-link">
<img src="/static/img/pdf.svg" height="20" width="20" class="me-1"/> {{ _('View') }}
</a>
</div>
</div>
</div>
</div>
</div>
{% endif %}
</div>
</div>
{% endblock %}