summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/Http/Controllers/HelpTextController.php5
-rw-r--r--resources/views/admin/users-edit.phtml9
-rw-r--r--resources/views/help/relationship-privacy.phtml13
3 files changed, 22 insertions, 5 deletions
diff --git a/app/Http/Controllers/HelpTextController.php b/app/Http/Controllers/HelpTextController.php
index 1a13920767..10ad54298e 100644
--- a/app/Http/Controllers/HelpTextController.php
+++ b/app/Http/Controllers/HelpTextController.php
@@ -248,6 +248,11 @@ class HelpTextController extends AbstractBaseController
]);
break;
+ case 'relationship-privacy':
+ $title = I18N::translate('Restrict to immediate family');
+ $text = view('help/relationship-privacy');
+ break;
+
default:
$title = I18N::translate('Help');
$text = I18N::translate('The help text has not been written for this item.');
diff --git a/resources/views/admin/users-edit.phtml b/resources/views/admin/users-edit.phtml
index 0a19bbc46f..ea03c7aa7e 100644
--- a/resources/views/admin/users-edit.phtml
+++ b/resources/views/admin/users-edit.phtml
@@ -1,6 +1,7 @@
<?php use Fisharebest\Webtrees\Auth; ?>
<?php use Fisharebest\Webtrees\Bootstrap4; ?>
<?php use Fisharebest\Webtrees\Functions\FunctionsEdit; ?>
+<?php use Fisharebest\Webtrees\Functions\FunctionsPrint; ?>
<?php use Fisharebest\Webtrees\I18N; ?>
<?php use Fisharebest\Webtrees\Individual; ?>
<?php use Fisharebest\Webtrees\View; ?>
@@ -285,6 +286,7 @@
</th>
<th>
<?= I18N::translate('Restrict to immediate family') ?>
+ <?= FunctionsPrint::helpLink('relationship-privacy') ?>
</th>
</tr>
<tr>
@@ -298,11 +300,6 @@
</p>
</td>
<td>
- <p class="small text-muted">
- <?= I18N::translate('Where a user is associated to an individual record in a family tree and has a role of member, editor, or moderator, you can prevent them from accessing the details of distant, living relations. You specify the number of relationship steps that the user is allowed to see.') ?>
- <?= I18N::translate('For example, if you specify a path length of 2, the individual will be able to see their grandson (child, child), their aunt (parent, sibling), their step-daughter (spouse, child), but not their first cousin (parent, sibling, child).') ?>
- <?= I18N::translate('Note: longer path lengths require a lot of calculation, which can make your website run slowly for these users.') ?>
- </p>
</td>
</tr>
</thead>
@@ -348,6 +345,8 @@
</div>
</form>
+<?= view('modals/ajax') ?>
+
<?php View::push('javascript') ?>
<script>
$(".relpath").change(function() {
diff --git a/resources/views/help/relationship-privacy.phtml b/resources/views/help/relationship-privacy.phtml
new file mode 100644
index 0000000000..2adefce5f3
--- /dev/null
+++ b/resources/views/help/relationship-privacy.phtml
@@ -0,0 +1,13 @@
+<?php use Fisharebest\Webtrees\I18N; ?>
+
+<p>
+ <?= I18N::translate('Where a user is associated to an individual record in a family tree and has a role of member, editor, or moderator, you can prevent them from accessing the details of distant, living relations. You specify the number of relationship steps that the user is allowed to see.') ?>
+</p>
+
+<p>
+<?= I18N::translate('For example, if you specify a path length of 2, the individual will be able to see their grandson (child, child), their aunt (parent, sibling), their step-daughter (spouse, child), but not their first cousin (parent, sibling, child).') ?>
+</p>
+
+<p>
+<?= I18N::translate('Note: longer path lengths require a lot of calculation, which can make your website run slowly for these users.') ?>
+</p>