Skip to content

Commit

Permalink
-m
Browse files Browse the repository at this point in the history
  • Loading branch information
fredbradley committed Aug 21, 2024
1 parent 2dde46f commit 20576c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/Domains/RaiseAConcern/Http/ConcernController.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function store(Request $request): Renderable|RedirectResponse

private function calculateRecipient(string $person, ?int $school): string
{
if ($person === 'headmaster') {
if ($person === 'head') {
return 'the Chair of Governors, '.config('people.CHAIR_OF_GOVERNORS').'.';
}

Expand All @@ -95,7 +95,7 @@ private function calculateRecipient(string $person, ?int $school): string
return $return.'.';
}
if ($person === 'staff') {
$return = 'the Headmaster';
$return = 'the Head';
if ($school === self::SENIOR_SCHOOL_ID) {
return $return.', '.config('people.CS_HEAD').'.';
}
Expand Down
6 changes: 3 additions & 3 deletions resources/views/home.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class="form-control form-control-lg"
@php ($personTypePupil = false)
@php ($personTypeStaff = true)
@php ($personTypeHead = false)
@elseif (old('person_type') == 'headmaster')
@elseif (old('person_type') == 'head')
@php ($personTypePupil = false)
@php ($personTypeStaff = false)
@php ($personTypeHead = true)
Expand All @@ -73,8 +73,8 @@ class="form-control form-control-lg"
<label class="btn btn-cranleigh" for="person_type_staff">Staff Member</label>

<input class="btn-check" id="person_type_head" type="radio" name="person_type"
{{ $personTypeHead ? 'checked="checked"' : '' }} value="headmaster"/>
<label class="btn btn-cranleigh" for="person_type_head">Headmaster</label>
{{ $personTypeHead ? 'checked="checked"' : '' }} value="head"/>
<label class="btn btn-cranleigh" for="person_type_head">Head</label>
</div>
<br/>@include('partials.input-error',['inputName' => 'person_type'])
<div id="notified-container" class="alert alert-primary visually-hidden">This will create a notification to: <span id="whogetsnotified"></span></div>
Expand Down

0 comments on commit 20576c9

Please sign in to comment.