14c9729fbSGreg Roach<?php 256f9a9c1SGreg Roach 356f9a9c1SGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\RegisterAction; 44c9729fbSGreg Roachuse Fisharebest\Webtrees\I18N; 54c9729fbSGreg Roachuse Fisharebest\Webtrees\Tree; 64c9729fbSGreg Roachuse Fisharebest\Webtrees\View; 74c9729fbSGreg Roach 84c9729fbSGreg Roach/** 94c9729fbSGreg Roach * @var string $comments 104c9729fbSGreg Roach * @var string $email 114c9729fbSGreg Roach * @var string $realname 124c9729fbSGreg Roach * @var bool $show_caution 134c9729fbSGreg Roach * @var string $title 144c9729fbSGreg Roach * @var string $username 154c9729fbSGreg Roach */ 164c9729fbSGreg Roach?> 17dd6b2bfcSGreg Roach 18dd6b2bfcSGreg Roach<h2 class="wt-page-title"> 19dd6b2bfcSGreg Roach <?= $title ?> 20dd6b2bfcSGreg Roach</h2> 21dd6b2bfcSGreg Roach 22dd6b2bfcSGreg Roach<?php if ($show_caution) : ?> 23dd6b2bfcSGreg Roach <div class="wt-register-caution"> 24dd6b2bfcSGreg Roach <?= I18N::translate('<div class="largeError">Notice:</div><div class="error">By completing and submitting this form, you agree:<ul><li>to protect the privacy of living individuals listed on our site;</li><li>and in the text box below, to explain to whom you are related, or to provide us with information on someone who should be listed on our website.</li></ul></div>') ?> 25dd6b2bfcSGreg Roach </div> 26dd6b2bfcSGreg Roach<?php endif ?> 27dd6b2bfcSGreg Roach 28*9fa6ab69SGreg Roach<form method="post" action="<?= e(route(RegisterAction::class, ['tree' => $tree instanceof Tree ? $tree->name() : null])) ?>" autocomplete="off" class="wt-page-options wt-page-options-register"> 29dd6b2bfcSGreg Roach <?= csrf_field() ?> 30dd6b2bfcSGreg Roach 31dd6b2bfcSGreg Roach <div class="form-group row"> 32dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label wt-page-options-label" for="realname"> 33dd6b2bfcSGreg Roach <?= I18N::translate('Real name') ?> 34dd6b2bfcSGreg Roach </label> 35dd6b2bfcSGreg Roach <div class="col-sm-9 wt-page-options-value"> 361f1ffa65SGreg Roach <input class="form-control" type="text" id="realname" name="realname" required maxlength="64" value="<?= e($realname) ?>" autocomplete="name"> 37dd6b2bfcSGreg Roach <p class="small text-muted"> 38dd6b2bfcSGreg Roach <?= I18N::translate('This is your real name, as you would like it displayed on screen.') ?> 39dd6b2bfcSGreg Roach </p> 40dd6b2bfcSGreg Roach </div> 41dd6b2bfcSGreg Roach </div> 42dd6b2bfcSGreg Roach 43dd6b2bfcSGreg Roach <div class="form-group row"> 44dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label wt-page-options-label" for="email"> 45dd6b2bfcSGreg Roach <?= I18N::translate('Email address') ?> 46dd6b2bfcSGreg Roach </label> 47dd6b2bfcSGreg Roach <div class="col-sm-9 wt-page-options-value"> 481f1ffa65SGreg Roach <input class="form-control" type="email" id="email" name="email" required maxlength="64" value="<?= e($email) ?>" autocomplete="email"> 49dd6b2bfcSGreg Roach <p class="small text-muted"> 50dd6b2bfcSGreg Roach <?= I18N::translate('This email address will be used to send password reminders, website notifications, and messages from other family members who are registered on the website.') ?> 51dd6b2bfcSGreg Roach </p> 52dd6b2bfcSGreg Roach </div> 53dd6b2bfcSGreg Roach </div> 54dd6b2bfcSGreg Roach 55dd6b2bfcSGreg Roach <div class="form-group row"> 56dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label wt-page-options-label" for="username"> 57dd6b2bfcSGreg Roach <?= I18N::translate('Username') ?> 58dd6b2bfcSGreg Roach </label> 59dd6b2bfcSGreg Roach <div class="col-sm-9 wt-page-options-value"> 60dd6b2bfcSGreg Roach <input class="form-control" type="text" id="username" name="username" required maxlength="32" value="<?= e($username) ?>" autocomplete="username"> 61dd6b2bfcSGreg Roach <p class="small text-muted"> 62dd6b2bfcSGreg Roach <?= I18N::translate('Usernames are case-insensitive and ignore accented letters, so that “chloe”, “chloë”, and “Chloe” are considered to be the same.') ?> 63dd6b2bfcSGreg Roach </p> 64dd6b2bfcSGreg Roach </div> 65dd6b2bfcSGreg Roach </div> 66dd6b2bfcSGreg Roach 67dd6b2bfcSGreg Roach <div class="form-group row"> 68510d3f2fSGreg Roach <label class="col-sm-3 col-form-label wt-page-options-label" for="password"> 69dd6b2bfcSGreg Roach <?= I18N::translate('Password') ?> 70dd6b2bfcSGreg Roach </label> 71dd6b2bfcSGreg Roach <div class="col-sm-9 wt-page-options-value"> 724c9729fbSGreg Roach <input class="form-control" type="password" id="password" name="password" placeholder="<?= /* I18N: placeholder text for new-password field */ 734c9729fbSGreg Roach I18N::plural('Use at least %s character.', 'Use at least %s characters.', 8, I18N::number(8)) ?>" pattern=".{8,}" required autocomplete="new-password"> 74dd6b2bfcSGreg Roach <p class="small text-muted"> 7554bcf2f0SRico Sonntag <?= I18N::translate('Passwords must be at least 8 characters long and are case-sensitive, so that “secret” is different from “SECRET”.') ?> 76dd6b2bfcSGreg Roach </p> 77dd6b2bfcSGreg Roach </div> 78dd6b2bfcSGreg Roach </div> 79dd6b2bfcSGreg Roach 80dd6b2bfcSGreg Roach <div class="form-group row"> 81dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label wt-page-options-label" for="comments"> 82dd6b2bfcSGreg Roach <?= I18N::translate('Comments') ?> 83dd6b2bfcSGreg Roach </label> 84dd6b2bfcSGreg Roach <div class="col-sm-9 wt-page-options-value"> 854c9729fbSGreg Roach <textarea class="form-control" id="comments" name="comments" placeholder="<?php /* I18N: placeholder text for registration-comments field */ 864c9729fbSGreg Roach I18N::translate('Explain why you are requesting an account.') ?>" rows="4" dir="auto" required><?= e($comments) ?></textarea> 87dd6b2bfcSGreg Roach <p class="small text-muted"> 88dd6b2bfcSGreg Roach <?= I18N::translate('Use this field to tell the site administrator why you are requesting an account and how you are related to the genealogy displayed on this site. You can also use this to enter any other comments you may have for the site administrator.') ?> 89dd6b2bfcSGreg Roach </p> 90dd6b2bfcSGreg Roach </div> 91dd6b2bfcSGreg Roach </div> 92dd6b2bfcSGreg Roach 93dd6b2bfcSGreg Roach <div class="form-group row"> 94dd6b2bfcSGreg Roach <div class="col-sm-3 col-form-label wt-page-options-label"> 95dd6b2bfcSGreg Roach </div> 96dd6b2bfcSGreg Roach <div class="col-sm-9 wt-page-options-value"> 97dd6b2bfcSGreg Roach <button class="btn btn-primary"> 98dd6b2bfcSGreg Roach <?= I18N::translate('continue') ?> 99dd6b2bfcSGreg Roach </button> 100dd6b2bfcSGreg Roach </div> 101dd6b2bfcSGreg Roach</form> 102dd6b2bfcSGreg Roach 103dd6b2bfcSGreg Roach<?php View::push('javascript') ?> 104dd6b2bfcSGreg Roach<script> 1054c9729fbSGreg Roach $("#password").hideShowPassword("infer", true); 106dd6b2bfcSGreg Roach</script> 107dd6b2bfcSGreg Roach<?php View::endpush() ?> 108