Skip to content

Commit

Permalink
Merge pull request #740 from neontribe/hotfix-961-ethnicity-and-langu…
Browse files Browse the repository at this point in the history
…age-prompt-required

Hotfix add reminder for ethnicity and language
  • Loading branch information
lauragurney authored Feb 6, 2024
2 parents a29f994 + aa1ad4f commit 35c3cc7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
9 changes: 8 additions & 1 deletion resources/views/store/partials/voucher_collectors.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ class="@if($errors->has('pri_carer')) invalid @endif"
</option>
@endforeach
</select>
@if(empty($pri_carer->ethnicity))
<br><mark>Please complete ethnic background before 1st March.</mark></br>
@endif
<br></br>
<label for="pri_carer_language">Carer's main language (optional)</label><br>
<input id="pri_carer_language"
Expand All @@ -40,7 +43,11 @@ class="@if($errors->has('pri_carer_language')) invalid @endif"
autocomplete="off"
autocorrect="off"
spellcheck="false"
><br></br>
>
@if(!isset($pri_carer->language))
<br><mark>Please complete main language before 1st March.</mark></br>
@endif
<br></br>
@else
{{-- If this is a new record do this instead --}}
<input id="carer"
Expand Down
12 changes: 10 additions & 2 deletions resources/views/store/partials/voucher_collectorsSP.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ class="@if($errors->has('pri_carer'))invalid @endif"
> {{ $ethnicity }}
</option>
@endforeach
</select><br></br>
</select>
@if(empty($pri_carer->ethnicity))
<br><mark>Please complete ethnic background before 1st March.</mark></br>
@endif
<br></br>
<label for="pri_carer_language">Main participant's preferred language (optional)</label><br>
<input id="pri_carer_language"
name="pri_carer_language[{{ $pri_carer->id }}]"
Expand All @@ -39,7 +43,11 @@ class="@if($errors->has('pri_carer_language')) invalid @endif"
autocomplete="off"
autocorrect="off"
spellcheck="false"
><br></br>
>
@if(!isset($pri_carer->language))
<br><mark>Please complete main language before 1st March.</mark></br>
@endif
<br></br>
@else
{{-- If this is a new record do this instead --}}
<input id="carer"
Expand Down

0 comments on commit 35c3cc7

Please sign in to comment.