-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ICMSLST-2786 - Validate Signature Docs
- Loading branch information
Showing
66 changed files
with
626 additions
and
83 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -161,3 +161,4 @@ ilb_admin.json | |
/generated_pdfs/ | ||
/python_version.txt | ||
/.env.no-docker | ||
.DS_Store |
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
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.cert-help { | ||
padding: 1em; | ||
text-align: center | ||
} | ||
|
||
.cert-help img { | ||
max-width: 600px; | ||
} | ||
|
||
.date-icon { | ||
padding: 0.2em 0.3em; | ||
} |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Empty file.
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,7 @@ | ||
from django import forms | ||
|
||
from web.forms.fields import JqueryDateField | ||
|
||
|
||
class ValidateSignatureForm(forms.Form): | ||
date_issued = JqueryDateField(required=True, label="What date was your document issued") |
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,39 @@ | ||
from django.urls import path | ||
|
||
from .views import ( | ||
AccessibilityStatementView, | ||
SupportLandingView, | ||
ValidateSignatureV1View, | ||
ValidateSignatureV2View, | ||
ValidateSignatureView, | ||
) | ||
|
||
app_name = "support" | ||
|
||
urlpatterns = [ | ||
path( | ||
"", | ||
SupportLandingView.as_view(), | ||
name="landing", | ||
), | ||
path( | ||
"accessibility-statement/", | ||
AccessibilityStatementView.as_view(), | ||
name="accessibility-statement", | ||
), | ||
path( | ||
"validate-signature/", | ||
ValidateSignatureView.as_view(), | ||
name="validate-signature", | ||
), | ||
path( | ||
"validate-signature/v1/", | ||
ValidateSignatureV1View.as_view(), | ||
name="validate-signature-v1", | ||
), | ||
path( | ||
"validate-signature/v2/", | ||
ValidateSignatureV2View.as_view(), | ||
name="validate-signature-v2", | ||
), | ||
] |
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,39 @@ | ||
import datetime as dt | ||
|
||
from django.http import HttpResponse | ||
from django.shortcuts import redirect | ||
from django.urls import reverse | ||
from django.views.generic import FormView, TemplateView | ||
|
||
from .forms import ValidateSignatureForm | ||
|
||
|
||
class AccessibilityStatementView(TemplateView): | ||
http_method_names = ["get"] | ||
template_name = "web/support/accessibility_statement.html" | ||
|
||
|
||
class SupportLandingView(TemplateView): | ||
http_method_names = ["get"] | ||
template_name = "web/support/index.html" | ||
|
||
|
||
class ValidateSignatureView(FormView): | ||
form_class = ValidateSignatureForm | ||
template_name = "web/support/signatures/validate.html" | ||
|
||
def form_valid(self, form: ValidateSignatureForm) -> HttpResponse: | ||
date_issued = form.cleaned_data["date_issued"] | ||
if date_issued >= dt.date(2024, 9, 26): | ||
return redirect(reverse("support:validate-signature-v2")) | ||
return redirect(reverse("support:validate-signature-v1")) | ||
|
||
|
||
class ValidateSignatureV1View(TemplateView): | ||
http_method_names = ["get"] | ||
template_name = "web/support/signatures/validate_v1.html" | ||
|
||
|
||
class ValidateSignatureV2View(TemplateView): | ||
http_method_names = ["get"] | ||
template_name = "web/support/signatures/validate_v2.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
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,17 @@ | ||
{% extends "layout/sidebar.html" %} | ||
|
||
|
||
{% block context_header %} | ||
Help and support | ||
{% endblock %} | ||
|
||
{% block sidebar %} | ||
{% include "web/support/partial/sidebar.html" %} | ||
{% endblock %} | ||
|
||
{% block main_content %} | ||
<h5>Help and support</h5> | ||
<p>Find important information including our accessibility statement and how to validate digital signatures.</p> | ||
{% endblock %} | ||
|
||
{% block footer %}{% endblock %} |
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,19 @@ | ||
<ul class="menu-out"> | ||
<h5>Digital Signatures</h5> | ||
<li> | ||
<a href="{{ icms_url('support:validate-signature') }}">How to validate a signature on a digitally signed document</a> | ||
</li> | ||
<h5>Useful Links</h5> | ||
<li> | ||
<a href="{{ icms_url('support:accessibility-statement') }}">Accessibility Statement</a> | ||
</li> | ||
<li> | ||
<a href="{{ static('web/docs/PrivacyNotice.pdf') }}" class="pdf" target="_blank" rel="noopener noreferrer">Fair Processing Notice</a> | ||
</li> | ||
<li> | ||
<a href="{{ static('web/docs/DIT-DBT-NameChangeNotification.pdf') }}" target="_blank" rel="noopener noreferrer">DIT to DBT Notification Document</a> | ||
</li> | ||
<li> | ||
<a href="{{ icms_url('cookie-consent') }}?referrer_url={{ request.path }}">Cookies</a> | ||
</li> | ||
</ul> |
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,28 @@ | ||
{% extends "web/support/index.html" %} | ||
|
||
{% block context_header %}How to validate a signature on a digitally signed document{% endblock %} | ||
|
||
{% block page_title %}How to validate a signature on a digitally signed document{% endblock %} | ||
|
||
{% block css %} | ||
{{ super() }} | ||
<link rel="stylesheet" type="text/css" href="{{ static('web/css/pages/help-validate-signatures.css') }}"> | ||
{% endblock %} | ||
|
||
{% block main_content %} | ||
|
||
<div class="row"> | ||
<form action="" method="post" class="column four"> | ||
{{ csrf_input }} | ||
{{ form.as_p() }} | ||
<input | ||
type="submit" | ||
class="primary-button button" | ||
value="Submit" | ||
> | ||
</form> | ||
</div> | ||
|
||
{% endblock %} | ||
|
||
{% block footer %}{% endblock %} |
Oops, something went wrong.