-
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.
DST-884 - Licensing - Add optional question for contacting user to H-…
…CSAT forms (#158) * DST-884 - Licensing - Add optional question for contacting user to H-CSAT forms * fixing tests
- Loading branch information
1 parent
27e3ce9
commit bac9567
Showing
14 changed files
with
197 additions
and
128 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
33 changes: 33 additions & 0 deletions
33
...o_app/feedback/migrations/0003_feedbackitem_user_email_feedbackitem_user_name_and_more.py
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,33 @@ | ||
# Generated by Django 4.2.16 on 2024-12-19 09:43 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("feedback", "0002_feedbackitem_url_historicalfeedbackitem_url"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="feedbackitem", | ||
name="user_email", | ||
field=models.EmailField(blank=True, max_length=254, null=True), | ||
), | ||
migrations.AddField( | ||
model_name="feedbackitem", | ||
name="user_name", | ||
field=models.CharField(blank=True, max_length=255, null=True), | ||
), | ||
migrations.AddField( | ||
model_name="historicalfeedbackitem", | ||
name="user_email", | ||
field=models.EmailField(blank=True, max_length=254, null=True), | ||
), | ||
migrations.AddField( | ||
model_name="historicalfeedbackitem", | ||
name="user_name", | ||
field=models.CharField(blank=True, max_length=255, null=True), | ||
), | ||
] |
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
45 changes: 0 additions & 45 deletions
45
django_app/feedback/templates/feedback/crispy_fields/feedback_stars.html
This file was deleted.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
django_app/feedback/templates/feedback/participate_in_user_research.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,2 @@ | ||
<h2 class="govuk-heading-m">Participating in further research</h2> | ||
<p class="govuk-body">We're always improving our services and would like your help to make this one better. If you're happy for us to contact you about participating in further research, please leave your name and email address.</p> |
73 changes: 73 additions & 0 deletions
73
django_app/view_a_licence/templates/view_a_licence/view_all_feedback.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,73 @@ | ||
{% extends "core/base.html" %} | ||
{% block cookie_banner %}{% endblock cookie_banner %} | ||
{% block title %}View Feedback for apply sanctioned services licence{% endblock title %} | ||
{% block back_button %}{% endblock back_button %} | ||
{% block column_content %} | ||
<div> | ||
<h1 class="govuk-heading-l"> | ||
View feedback on the apply for a sanctioned services licence service | ||
</h1> | ||
<hr class="govuk-section-break govuk-section-break--m govuk-section-break--visible"> | ||
</div> | ||
<form method="get" action="{% url 'view_a_licence:view_all_feedback' %}" id="filter_form"> | ||
{% csrf_token %} | ||
<div class="govuk-form-group"> | ||
<label class="govuk-label" >Created at date minimum (inclusive)</label> | ||
<input type="date" class="govuk-form" id="created_at_min" name="date_min"> | ||
</div> | ||
<div class="govuk-form-group"> | ||
<label class="govuk-label">Created at date maximum (inclusive)</label> | ||
<input type="date" class="form-control" id="created_at_min" name="date_max"> | ||
</div> | ||
<button type="submit" class="btn btn-primary">Filter</button> | ||
|
||
</form> | ||
<hr class="govuk-section-break govuk-section-break--m govuk-section-break--visible"> | ||
|
||
<h3 class="govuk-heading-s govuk-!-margin-bottom-2"> | ||
<table class="govuk-table govuk-table--small-text-until-tablet"> | ||
<caption class="govuk-table__caption govuk-table__caption--m">Feedback</caption> | ||
<thead class="govuk-table__head"> | ||
<tr class="govuk-table__row"> | ||
<th scope="col" class="govuk-table__header"> ID </th> | ||
<th scope="col" class="govuk-table__header">Created at</th> | ||
<th scope="col" class="govuk-table__header">Modified at </th> | ||
<th scope="col" class="govuk-table__header">Rating</th> | ||
<th scope="col" class="govuk-table__header">Did you experience any issues? </th> | ||
<th scope="col" class="govuk-table__header">How could we improve the service? </th> | ||
<th scope="col" class="govuk-table__header">URL </th> | ||
<th scope="col" class="govuk-table__header">Agreed to feedback </th> | ||
</tr> | ||
</thead> | ||
<tbody class="govuk-table__body"> | ||
{% for feedback_item in object_list %} | ||
<tr class="govuk-table__row"> | ||
<td class="govuk-table__cell"><a href="{% url 'view_a_licence:view_feedback' pk=feedback_item.id %}">{{ feedback_item.id }}</a></td> | ||
<td class="govuk-table__cell">{{ feedback_item.created_at }}</td> | ||
<td class="govuk-table__cell">{{ feedback_item.modified_at }}</td> | ||
<td class="govuk-table__cell">{{ feedback_item.get_rating_display}} </td> | ||
<td class="govuk-table__cell">{{ feedback_item.get_did_you_experience_any_issues_display | linebreaksbr }}</td> | ||
<td class="govuk-table__cell">{{ feedback_item.how_we_could_improve_the_service }}</td> | ||
<td class="govuk-table__cell">{{ feedback_item.url }}</td> | ||
<td class="govuk-table__cell">{% if feedback_item.user_name or feedback_item.user_email %}Yes{% else %}No{% endif %}</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
{% endblock column_content %} | ||
|
||
{% block extra_js %} | ||
{{ block.super }} | ||
<script type="text/javascript" nonce="{{ request.csp_nonce }}"> | ||
$(document).ready(function () { | ||
$('body').on('click', '.read_more_button', function () { | ||
$(this).closest('.text_truncator').find('.truncated_text').addClass('hidden'); | ||
$(this).closest('.text_truncator').find('.expanded_text').removeClass('hidden'); | ||
}); | ||
$('body').on('click', '.read_less_button', function () { | ||
$(this).closest('.text_truncator').find('.truncated_text').removeClass('hidden'); | ||
$(this).closest('.text_truncator').find('.expanded_text').addClass('hidden'); | ||
}) | ||
}) | ||
</script> | ||
{% endblock extra_js %} |
105 changes: 35 additions & 70 deletions
105
django_app/view_a_licence/templates/view_a_licence/view_feedback.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 |
---|---|---|
@@ -1,74 +1,39 @@ | ||
{% extends "core/base.html" %} | ||
{% block cookie_banner %}{% endblock cookie_banner %} | ||
{% block title %}View Feedback for apply sanctioned services licence{% endblock title %} | ||
{% block back_button %}{% endblock back_button %} | ||
{% block column_content %} | ||
<div> | ||
<h1 class="govuk-heading-l"> | ||
View feedback on the apply for a sanctioned services licence service | ||
</h1> | ||
<hr class="govuk-section-break govuk-section-break--m govuk-section-break--visible"> | ||
</div> | ||
<form method="get" action="{% url 'view_a_licence:view_feedback' %}" id="filter_form"> | ||
{% csrf_token %} | ||
<div class="govuk-form-group"> | ||
<label class="govuk-label" >Created at date minimum (inclusive)</label> | ||
<input type="date" class="govuk-form" id="created_at_min" name="date_min"> | ||
</div> | ||
<div class="govuk-form-group"> | ||
<label class="govuk-label">Created at date maximum (inclusive)</label> | ||
<input type="date" class="form-control" id="created_at_min" name="date_max"> | ||
</div> | ||
<button type="submit" class="btn btn-primary">Filter</button> | ||
|
||
</form> | ||
<hr class="govuk-section-break govuk-section-break--m govuk-section-break--visible"> | ||
|
||
<h3 class="govuk-heading-s govuk-!-margin-bottom-2"> | ||
<table class="govuk-table govuk-table--small-text-until-tablet"> | ||
<caption class="govuk-table__caption govuk-table__caption--m">Feedback</caption> | ||
<thead class="govuk-table__head"> | ||
<tr class="govuk-table__row"> | ||
|
||
<th scope="col" class="govuk-table__header"> ID </th> | ||
<th scope="col" class="govuk-table__header">Created at</th> | ||
<th scope="col" class="govuk-table__header">Modified at </th> | ||
<th scope="col" class="govuk-table__header">Rating</th> | ||
<th scope="col" class="govuk-table__header">Did you experience any issues? </th> | ||
<th scope="col" class="govuk-table__header">How could we improve the service? </th> | ||
<th scope="col" class="govuk-table__header">URL </th> | ||
</tr> | ||
{% block title %}View individual feedback{% endblock title %} | ||
|
||
</thead> | ||
<tbody class="govuk-table__body"> | ||
|
||
{% for feedback_item in object_list %} | ||
<tr class="govuk-table__row"> | ||
<td class="govuk-table__cell">{{ feedback_item.id }}</td> | ||
<td class="govuk-table__cell">{{ feedback_item.created_at }}</td> | ||
<td class="govuk-table__cell">{{ feedback_item.modified_at }}</td> | ||
<td class="govuk-table__cell">{{ feedback_item.get_rating_display}} </td> | ||
<td class="govuk-table__cell">{{ feedback_item.get_did_you_experience_any_issues_display | linebreaksbr }}</td> | ||
<td class="govuk-table__cell">{{ feedback_item.how_we_could_improve_the_service }}</td> | ||
<td class="govuk-table__cell">{{ feedback_item.url }}</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
{% block column_content %} | ||
<table class="govuk-table"> | ||
<caption class="govuk-table__caption govuk-table__caption--m">Feedback item - {{ feedback.id }}</caption> | ||
<tbody class="govuk-table__body"> | ||
<tr class="govuk-table__row"> | ||
<th scope="row" class="govuk-table__header">Created at</th> | ||
<td class="govuk-table__cell">{{ feedback.created_at }}</td> | ||
</tr> | ||
<tr class="govuk-table__row"> | ||
<th scope="row" class="govuk-table__header">Rating</th> | ||
<td class="govuk-table__cell">{{ feedback.get_rating_display}}</td> | ||
</tr> | ||
<tr class="govuk-table__row"> | ||
<th scope="row" class="govuk-table__header">Issues</th> | ||
<td class="govuk-table__cell">{{ feedback.get_did_you_experience_any_issues_display | linebreaksbr }}</td> | ||
</tr> | ||
<tr class="govuk-table__row"> | ||
<th scope="row" class="govuk-table__header">Improvements</th> | ||
<td class="govuk-table__cell">{{ feedback.how_we_could_improve_the_service }}</td> | ||
</tr> | ||
<tr class="govuk-table__row"> | ||
<th scope="row" class="govuk-table__header">URL</th> | ||
<td class="govuk-table__cell">{{ feedback.url }}</td> | ||
</tr> | ||
<tr class="govuk-table__row"> | ||
<th scope="row" class="govuk-table__header">User name</th> | ||
<td class="govuk-table__cell">{{ feedback.user_name }}</td> | ||
</tr> | ||
<tr class="govuk-table__row"> | ||
<th scope="row" class="govuk-table__header">User email</th> | ||
<td class="govuk-table__cell">{{ feedback.user_email }}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
{% endblock column_content %} | ||
|
||
{% block extra_js %} | ||
{{ block.super }} | ||
<script type="text/javascript" nonce="{{ request.csp_nonce }}"> | ||
$(document).ready(function () { | ||
$('body').on('click', '.read_more_button', function () { | ||
$(this).closest('.text_truncator').find('.truncated_text').addClass('hidden'); | ||
$(this).closest('.text_truncator').find('.expanded_text').removeClass('hidden'); | ||
}); | ||
$('body').on('click', '.read_less_button', function () { | ||
$(this).closest('.text_truncator').find('.truncated_text').removeClass('hidden'); | ||
$(this).closest('.text_truncator').find('.expanded_text').addClass('hidden'); | ||
}) | ||
}) | ||
</script> | ||
{% endblock extra_js %} |
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
Oops, something went wrong.