-
Notifications
You must be signed in to change notification settings - Fork 0
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
83eec6d
commit ceaaa36
Showing
6 changed files
with
65 additions
and
18 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
src/edrn.auth/src/edrn/auth/templates/edrn.auth/portal-login.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,38 @@ | ||
{% extends 'base.html' %} | ||
{% load edrn_auth_tags i18n edrnsite_content_tags %} | ||
{% block content %} | ||
<div class='row m-3 mb-4'> | ||
<div class='col'> | ||
<h1>Log In</h1> | ||
|
||
{% if form.errors %} | ||
<p class='text-warning'><strong>{% trans "Your username and password didn't match. Please try again." %}</strong></p> | ||
{% endif %} | ||
|
||
{% if next and request.user.is_authenticated %} | ||
<p class='text-danger'><strong>{% trans "Your account doesn't have access to this page. To proceed, please log in with an account that has access." %}</strong></p> | ||
{% endif %} | ||
|
||
<div class='row mb-3'> | ||
<div class='col-lg-12'> | ||
<p> | ||
Logging in tothe EDRN public portal may afford you access to | ||
additional biomarker and scientific data. Also, if you have the | ||
appropriate permissions, you can edit the pages, images, and files | ||
on this site. Use your EDRN username and password in the below form | ||
to log in. | ||
</p> | ||
<form method="post" action="{% url 'wagtailcore_login' %}" class='mb-4'> | ||
{% csrf_token %} | ||
{{ form.as_p }} | ||
<input type="submit" value="{% trans "Log in" %}" class="button" /> | ||
<input type="hidden" name="next" value="{{ next }}" /> | ||
</form> | ||
</div> | ||
</div> | ||
|
||
{% edrn_boilerplate 'login-admonitions' %} | ||
</div> | ||
</div> | ||
{% endblock %} | ||
{# -*- Django 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,11 +5,11 @@ <h4 class='alert-heading'><i class='bi bi-incognito'></i> Non-Public Biomarker< | |
<p> | ||
{% if authenticated %} | ||
Organ-specific information for this biomarker is currently being annotated or is "under review". | ||
<a href='{{logout}}'>Logging out</a> and then <a href='{{login}}'>back in</a> using an account | ||
<a href='{{logout}}'>Logging out</a> and then <a href='{{portal_login}}'>back in</a> using an account | ||
with access may give you privileges to view additional information. | ||
{% else %} | ||
Organ-specific information for this biomarker is currently being annotated or is "under review". | ||
<a href='{{login}}'>Logging in</a> may give you privileges to view additional information. | ||
<a href='{{portal_login}}'>Logging in</a> may give you privileges to view additional information. | ||
{% endif %} | ||
Contact the <a href="mailto:[email protected]">Informatics Center</a> if you believe you | ||
should have access. | ||
|
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 |
---|---|---|
|
@@ -5,11 +5,11 @@ <h4 class='alert-heading'><i class='bi bi-incognito'></i> Non-Public Biomarkers | |
<p> | ||
{% if authenticated %} | ||
Organ-specific information for some biomarkers are currently being annotated or are "under review". | ||
<a href='{{logout}}'>Logging out</a> and then <a href='{{login}}'>back in</a> using an account | ||
<a href='{{logout}}'>Logging out</a> and then <a href='{{portal_login}}'>back in</a> using an account | ||
with access may give you privileges to view additional information. | ||
{% else %} | ||
Organ-specific information for some biomarkers are currently being annotated or are "under review". | ||
<a href='{{login}}'>Logging in</a> may give you privileges to view additional information. | ||
<a href='{{portal_login}}'>Logging in</a> may give you privileges to view additional information. | ||
{% endif %} | ||
Contact the <a href="mailto:[email protected]">Informatics Center</a> if you believe you | ||
should have access. | ||
|
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