Skip to content

Commit

Permalink
removes youth options
Browse files Browse the repository at this point in the history
I can no longer in good conscience tell kids to go through this horrible process
  • Loading branch information
beawitcht committed Aug 17, 2024
1 parent 51047c1 commit 812919c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions app/forms/input_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
class InputForm(FlaskForm):
countries = SelectField("Country", choices=['Choose...','England', 'Northern Ireland', 'Scotland', 'Wales'], validators=[
DataRequired(), AnyOf(['England', 'Northern Ireland', 'Scotland', 'Wales'], message="Please select a country")])
services = SelectField("Services", choices=['Choose...','Adult (17+)', 'Youth (≤16)'], validators=[
DataRequired(), AnyOf(['Adult (17+)', 'Youth (≤16)'], message="Please select adult or youth services")])
services = SelectField("Services", choices=['Choose...','Adult (17+)'], validators=[
DataRequired(), AnyOf(['Adult (17+)'], message="Please select adult services")]) # 'Youth (≤16)' removed
self_med = BooleanField("I am self medicating")
self_med_likely = BooleanField("I am likely to start self medicating")
no_self_med = BooleanField("I am not currently or likely to start self medicating")
Expand Down
20 changes: 10 additions & 10 deletions app/static/js/transinformed.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ window.addEventListener('load', function () {
infoButtons(document.getElementById("gicLabelBtn"), document.getElementById("gicInfoLabel"));
infoButtons(document.getElementById("sharedCareLabelBtn"), document.getElementById("sharedCareInfoLabel"));
infoButtons(document.getElementById("bridgingDesiredLabelBtn"), document.getElementById("bridgingDesiredInfoLabel"));
infoButtons(document.getElementById("under16LabelBtn"), document.getElementById("under16InfoLabel"));
// infoButtons(document.getElementById("under16LabelBtn"), document.getElementById("under16InfoLabel"));
infoButtons(document.getElementById("fixedAddressLabelBtn"), document.getElementById("fixedAddressInfoLabel"));
infoButtons(document.getElementById("noIdProofLabelBtn"), document.getElementById("noIdProofInfoLabel"));
infoButtons(document.getElementById("immLetterLabelBtn"), document.getElementById("immLetterInfoLabel"));
Expand Down Expand Up @@ -37,7 +37,7 @@ window.addEventListener('load', function () {
document.getElementById('immigrationCheck').addEventListener('click', revealContentImmigration);

//Age checkbox
document.getElementById('under16Check').addEventListener('click', checkAgeStatus);
// document.getElementById('under16Check').addEventListener('click', checkAgeStatus);

document.getElementById("docx").addEventListener('click', submitActionsDocx);
document.getElementById("pdf").addEventListener('click', submitActionsPdf);
Expand Down Expand Up @@ -157,14 +157,14 @@ function serviceFilters() {
$("#privateProviderList option[value='Other (Non-UK Based)']").hide();

}
else if (!under16Check.checked) {
$('#grcCheckContainer').show();
$('#bridgingDesiredContainer').show();
$('#medStatusSection').show();
$('#bloodTestsContainer').show();
$("#privateProviderList option[value='GenderGP']").show();
$("#privateProviderList option[value='Other (Non-UK Based)']").show();
}
// else if (!under16Check.checked) {
// $('#grcCheckContainer').show();
// $('#bridgingDesiredContainer').show();
// $('#medStatusSection').show();
// $('#bloodTestsContainer').show();
// $("#privateProviderList option[value='GenderGP']").show();
// $("#privateProviderList option[value='Other (Non-UK Based)']").show();
// }


}
Expand Down
Loading

0 comments on commit 812919c

Please sign in to comment.