Add alert to viewfamily page when privacy is turned on (#18)

This commit is contained in:
Skylar Ittner 2018-12-17 20:02:51 -07:00
parent f851b240f5
commit 94961c1c5e
2 changed files with 12 additions and 1 deletions

View File

@ -10,5 +10,6 @@
"Events updated.": "Events updated.", "Events updated.": "Events updated.",
"You agree to use the information in this directory for homeschool use ONLY. All other purposes, such as soliciting, is strictly prohibited.": "You agree to use the information in this directory for homeschool use ONLY. All other purposes, such as soliciting, is strictly prohibited.", "You agree to use the information in this directory for homeschool use ONLY. All other purposes, such as soliciting, is strictly prohibited.": "You agree to use the information in this directory for homeschool use ONLY. All other purposes, such as soliciting, is strictly prohibited.",
"Payment saved.": "Payment saved.", "Payment saved.": "Payment saved.",
"Only showing expired or expiring memberships.": "Only showing expired or expiring memberships." "Only showing expired or expiring memberships.": "Only showing expired or expiring memberships.",
"This family wishes to remain private. Do not share this information, even with other HACHE members.": "This family wishes to remain private. Do not share this information, even with other HACHE members."
} }

View File

@ -43,6 +43,16 @@ $family = (new Family())->load($famid);
</div> </div>
</div> </div>
<?php
if ($family->getPrivate()) {
?>
<div class="alert alert-indigo">
<i class="fas fa-users"></i> <i class="fas fa-shield-alt"></i> <i class="fas fa-info-circle"></i> <?php $Strings->get("This family wishes to remain private. Do not share this information, even with other HACHE members."); ?>
</div>
<?php
}
?>
<div class="d-flex justify-content-around flex-wrap"> <div class="d-flex justify-content-around flex-wrap">
<?php <?php
$newsletter = "Email"; $newsletter = "Email";