Skip to content

Commit

Permalink
Staff: update family page on Staff Profile to exclude personal detail…
Browse files Browse the repository at this point in the history
…s and addresses
  • Loading branch information
SKuipers committed Aug 18, 2024
1 parent 03f7c06 commit f78ce0a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ v28.0.00
Messenger: limited the individual message target to a maximum of 50 people
Reports: added a Progress by Department report for viewing class criteria progress
Staff: updated Manage Staff to override required custom fields when manually editing a staff member
Staff: updated family page on Staff Profile to exclude personal details and addresses
Students: added a notification event when student notes are edited
User Admin: added the names of users who made changes to the User Status Log
User Admin: updated Manage Users to override required custom fields when manually editing a user
Expand Down
1 change: 1 addition & 0 deletions modules/Staff/staff_view_details.php
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@

echo $page->fetchFromTemplate('profile/family.twig.html', [
'families' => $families,
'fullDetails' => false,
]);
} elseif ($subpage == 'Facilities') {
$staffFacilityGateway = $container->get(StaffFacilityGateway::class);
Expand Down
9 changes: 9 additions & 0 deletions resources/templates/profile/family.twig.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<span style='font-size: 115%; font-weight: bold'>{{ __('Family Name') }}</span><br />
{{ family.name }}
</td>
{% if fullDetails %}
<td style='width: 33%; vertical-align: top'>
<span style='font-size: 115%; font-weight: bold'>{{ __('Family Status') }}</span><br />
{{ __(family.status) }}
Expand All @@ -25,7 +26,10 @@
{{ __(family.languageHomePrimary) }} <br />
{{ __(family.languageHomeSecondary) }}<br />
</td>
{% endif %}
</tr>

{% if fullDetails %}
<tr>
<td style='width: 33%; padding-top: 15px; vertical-align: top'>
<span style='font-size: 115%; font-weight: bold'>{{ __('Address Name') }}</span><br />
Expand All @@ -36,6 +40,7 @@
<td style='width: 33%; padding-top: 15px; vertical-align: top'>
</td>
</tr>


<tr>
<td style='width: 33%; padding-top: 15px; vertical-align: top'>
Expand All @@ -51,6 +56,7 @@
{{ __(family.homeAddressCountry) }}
</td>
</tr>
{% endif %}
</table>

{% for person in family.adults %}
Expand Down Expand Up @@ -89,6 +95,7 @@ <h4>
{{ person.contactPriority }}
</td>
</tr>
{% if fullDetails %}
<tr>
<td class="{{ class }}" style='width: 33%; padding-top: 15px; vertical-align: top'>
<span style='font-size: 115%; font-weight: bold'>{{ __('First Language') }}</span><br />
Expand Down Expand Up @@ -178,6 +185,8 @@ <h4>
</td>
</tr>
{% endif %}

{% endif %}
</table>
{% endfor %}

Expand Down
2 changes: 1 addition & 1 deletion src/Domain/User/FamilyGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function selectAdultsByFamily($gibbonFamilyIDList, $allFields = false)
->innerJoin('gibbonPerson', 'gibbonFamilyAdult.gibbonPersonID=gibbonPerson.gibbonPersonID')
->where('FIND_IN_SET(gibbonFamilyAdult.gibbonFamilyID, :gibbonFamilyIDList)')
->bindValue('gibbonFamilyIDList', $gibbonFamilyIDList)
->orderBy(['gibbonPerson.surname', 'gibbonPerson.preferredName']);
->orderBy(['gibbonFamilyAdult.contactPriority', 'gibbonPerson.surname', 'gibbonPerson.preferredName']);

return $this->runSelect($query);
}
Expand Down

0 comments on commit f78ce0a

Please sign in to comment.