-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into LTD-4661-HCSAT
- Loading branch information
Showing
52 changed files
with
1,173 additions
and
162 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
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,35 @@ | ||
{% extends 'layouts/two-pane.html' %} | ||
{% load crispy_forms_tags crispy_forms_gds %} | ||
|
||
{% block title %}{{title}}{% endblock %} | ||
{% block back_link %} | ||
<a href="{{ back_link_url }}" id="back-link" class="govuk-back-link">{{ back_link_text|default:"Back" }}</a> | ||
{% endblock %} | ||
|
||
{% block two_thirds %} | ||
|
||
{% if errors %} | ||
{% include "forms-errors.html" %} | ||
{% endif %} | ||
|
||
<form action="{{ form_action_url }}" method="post" enctype="multipart/form-data"> | ||
{% csrf_token %} | ||
|
||
{% error_summary form %} | ||
|
||
<div class="govuk-body"> | ||
<h1 class="govuk-label-wrapper"> | ||
<label class="govuk-label--l"> | ||
Close query | ||
</label> | ||
</h1> | ||
<div class=" govuk-!-padding-top-3 govuk-!-padding-bottom-3"> | ||
<div class="app-ecju-query__text"> | ||
{{ query.question }} | ||
</div> | ||
</div> | ||
{% crispy form %} | ||
</div> | ||
</form> | ||
|
||
{% 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
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
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,29 @@ | ||
from django.views.generic import TemplateView | ||
from django.urls import reverse | ||
|
||
from core.auth.views import LoginRequiredMixin | ||
|
||
|
||
class BaseAccessibilityStatementView(LoginRequiredMixin, TemplateView): | ||
template_name = "accessibility/accessibility.html" | ||
|
||
def get_context_data(self, **kwargs): | ||
context = super().get_context_data(**kwargs) | ||
protocol = "https://" if self.request.is_secure() else "http://" | ||
context["host"] = f"{protocol}{self.request.get_host()}/" | ||
return context | ||
|
||
|
||
class ExporterAccessibilityStatementView(BaseAccessibilityStatementView): | ||
def get_context_data(self, **kwargs): | ||
context = super().get_context_data(**kwargs) | ||
context["back_url"] = reverse("core:home") | ||
return context | ||
|
||
|
||
class CaseworkerAccessibilityStatementView(BaseAccessibilityStatementView): | ||
def get_context_data(self, **kwargs): | ||
context = super().get_context_data(**kwargs) | ||
context["back_url"] = reverse("core:index") | ||
|
||
return context |
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
Oops, something went wrong.