1<?php use Fisharebest\Webtrees\I18N; ?> 2<?php use Fisharebest\Webtrees\View; ?> 3 4<h2 class="wt-page-title"> 5 <?= $title ?> 6</h2> 7 8<?php if ($show_caution) : ?> 9 <div class="wt-register-caution"> 10 <?= 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>') ?> 11 </div> 12<?php endif ?> 13 14<form autocomplete="off" class="wt-page-options wt-page-options-register" method="post" action="<?= e(route('register')) ?>"> 15 <?= csrf_field() ?> 16 <input name="ged" type="hidden" value="<?= e($tree->name()) ?>"> 17 18 <div class="form-group row"> 19 <label class="col-sm-3 col-form-label wt-page-options-label" for="realname"> 20 <?= I18N::translate('Real name') ?> 21 </label> 22 <div class="col-sm-9 wt-page-options-value"> 23 <input class="form-control" type="text" id="realname" name="realname" required maxlength="64" value="<?= e($realname) ?>"> 24 <p class="small text-muted"> 25 <?= I18N::translate('This is your real name, as you would like it displayed on screen.') ?> 26 </p> 27 </div> 28 </div> 29 30 <div class="form-group row"> 31 <label class="col-sm-3 col-form-label wt-page-options-label" for="email"> 32 <?= I18N::translate('Email address') ?> 33 </label> 34 <div class="col-sm-9 wt-page-options-value"> 35 <input class="form-control" type="email" id="email" name="email" required maxlength="64" value="<?= e($email) ?>"> 36 <p class="small text-muted"> 37 <?= 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.') ?> 38 </p> 39 </div> 40 </div> 41 42 <div class="form-group row"> 43 <label class="col-sm-3 col-form-label wt-page-options-label" for="username"> 44 <?= I18N::translate('Username') ?> 45 </label> 46 <div class="col-sm-9 wt-page-options-value"> 47 <input class="form-control" type="text" id="username" name="username" required maxlength="32" value="<?= e($username) ?>" autocomplete="username"> 48 <p class="small text-muted"> 49 <?= I18N::translate('Usernames are case-insensitive and ignore accented letters, so that “chloe”, “chloë”, and “Chloe” are considered to be the same.') ?> 50 </p> 51 </div> 52 </div> 53 54 <div class="form-group row"> 55 <label class="col-sm-3 col-form-label wt-page-options-label" for="password"> 56 <?= I18N::translate('Password') ?> 57 </label> 58 <div class="col-sm-9 wt-page-options-value"> 59 <input class="form-control" type="password" id="password" name="password" placeholder="<?= /* I18N: placeholder text for new-password field */ I18N::plural('Use at least %s character.', 'Use at least %s characters.', 8, I18N::number(8)) ?>" pattern=".{8,}" required> 60 <p class="small text-muted"> 61 <?= I18N::translate('Passwords must be at least 8 characters long and are case-sensitive, so that “secret” is different from “SECRET”.') ?> 62 </p> 63 </div> 64 </div> 65 66 <div class="form-group row"> 67 <label class="col-sm-3 col-form-label wt-page-options-label" for="comments"> 68 <?= I18N::translate('Comments') ?> 69 </label> 70 <div class="col-sm-9 wt-page-options-value"> 71 <textarea class="form-control" required rows="4" id="comments" name="comments" placeholder="<?php /* I18N: placeholder text for registration-comments field */ I18N::translate('Explain why you are requesting an account.') ?>"><?= e($comments) ?></textarea> 72 <p class="small text-muted"> 73 <?= 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.') ?> 74 </p> 75 </div> 76 </div> 77 78 <div class="form-group row"> 79 <div class="col-sm-3 col-form-label wt-page-options-label"> 80 </div> 81 <div class="col-sm-9 wt-page-options-value"> 82 <button class="btn btn-primary"> 83 <?= I18N::translate('continue') ?> 84 </button> 85 </div> 86</form> 87 88<?php View::push('javascript') ?> 89<script> 90 $('#password').hideShowPassword('infer', true); 91</script> 92<?php View::endpush() ?> 93