1dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\I18N; ?> 2dd6b2bfcSGreg Roach<?php use Fisharebest\Webtrees\View; ?> 3dd6b2bfcSGreg Roach 4dd6b2bfcSGreg Roach<?= view('components/breadcrumbs', ['links' => [route('admin-control-panel') => I18N::translate('Control panel'), route('admin-users') => I18N::translate('User administration'), $title]]) ?> 5dd6b2bfcSGreg Roach 6dd6b2bfcSGreg Roach<h1><?= $title ?></h1> 7dd6b2bfcSGreg Roach 8*83615acfSGreg Roach<form method="post" action="<?= e(route('admin-users-create')) ?>" class="form-horizontal" name="newform" autocomplete="off"> 9dd6b2bfcSGreg Roach <?= csrf_field() ?> 10dd6b2bfcSGreg Roach 11dd6b2bfcSGreg Roach <!-- REAL NAME --> 12dd6b2bfcSGreg Roach <div class="row form-group"> 13dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label" for="real_name"> 14dd6b2bfcSGreg Roach <?= I18N::translate('Real name') ?> 15dd6b2bfcSGreg Roach </label> 16dd6b2bfcSGreg Roach <div class="col-sm-9"> 17dd6b2bfcSGreg Roach <input class="form-control" type="text" id="real_name" name="real_name" required maxlength="64" value="<?= e($real_name) ?>" dir="auto"> 18dd6b2bfcSGreg Roach <p class="small text-muted"> 19dd6b2bfcSGreg Roach <?= I18N::translate('This is your real name, as you would like it displayed on screen.') ?> 20dd6b2bfcSGreg Roach </p> 21dd6b2bfcSGreg Roach </div> 22dd6b2bfcSGreg Roach </div> 23dd6b2bfcSGreg Roach 24dd6b2bfcSGreg Roach <!-- USER NAME --> 25dd6b2bfcSGreg Roach <div class="row form-group"> 26dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label" for="username"> 27dd6b2bfcSGreg Roach <?= I18N::translate('Username') ?> 28dd6b2bfcSGreg Roach </label> 29dd6b2bfcSGreg Roach <div class="col-sm-9"> 30dd6b2bfcSGreg Roach <input class="form-control" type="text" id="username" name="username" required maxlength="32" value="<?= e($username) ?>" dir="auto"> 31dd6b2bfcSGreg Roach <p class="small text-muted"> 32dd6b2bfcSGreg Roach <?= I18N::translate('Usernames are case-insensitive and ignore accented letters, so that “chloe”, “chloë”, and “Chloe” are considered to be the same.') ?> 33dd6b2bfcSGreg Roach </p> 34dd6b2bfcSGreg Roach </div> 35dd6b2bfcSGreg Roach </div> 36dd6b2bfcSGreg Roach 37dd6b2bfcSGreg Roach <!-- PASSWORD --> 38dd6b2bfcSGreg Roach <div class="row form-group"> 39510d3f2fSGreg Roach <label class="col-sm-3 col-form-label" for="password"> 40dd6b2bfcSGreg Roach <?= I18N::translate('Password') ?> 41dd6b2bfcSGreg Roach </label> 42dd6b2bfcSGreg Roach <div class="col-sm-9"> 43510d3f2fSGreg Roach <input class="form-control" type="password" id="password" name="password" pattern = ".{8,}" placeholder="<?= I18N::plural('Use at least %s character.', 'Use at least %s characters.', 8, I18N::number(8)) ?>" required autocomplete="new-password"> 44dd6b2bfcSGreg Roach <p class="small text-muted"> 4554bcf2f0SRico Sonntag <?= I18N::translate('Passwords must be at least 8 characters long and are case-sensitive, so that “secret” is different from “SECRET”.') ?> 46dd6b2bfcSGreg Roach </p> 47dd6b2bfcSGreg Roach </div> 48dd6b2bfcSGreg Roach </div> 49dd6b2bfcSGreg Roach 50dd6b2bfcSGreg Roach <!-- EMAIL ADDRESS --> 51dd6b2bfcSGreg Roach <div class="row form-group"> 52dd6b2bfcSGreg Roach <label class="col-sm-3 col-form-label" for="email"> 53dd6b2bfcSGreg Roach <?= I18N::translate('Email address') ?> 54dd6b2bfcSGreg Roach </label> 55dd6b2bfcSGreg Roach <div class="col-sm-9"> 56dd6b2bfcSGreg Roach <input class="form-control" type="email" id="email" name="email" required maxlength="64" value="<?= e($email) ?>"> 57dd6b2bfcSGreg Roach <p class="small text-muted"> 58dd6b2bfcSGreg 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.') ?> 59dd6b2bfcSGreg Roach </p> 60dd6b2bfcSGreg Roach </div> 61dd6b2bfcSGreg Roach </div> 62dd6b2bfcSGreg Roach 63dd6b2bfcSGreg Roach <div class="row form-group"> 64dd6b2bfcSGreg Roach <div class="offset-sm-3 col-sm-9"> 65dd6b2bfcSGreg Roach <button type="submit" class="btn btn-primary"> 66dd6b2bfcSGreg Roach <?= I18N::translate('save') ?> 67dd6b2bfcSGreg Roach </button> 68dd6b2bfcSGreg Roach </div> 69dd6b2bfcSGreg Roach </div> 70dd6b2bfcSGreg Roach</form> 71dd6b2bfcSGreg Roach 72dd6b2bfcSGreg Roach<?php View::push('javascript') ?> 73dd6b2bfcSGreg Roach<script> 74dd6b2bfcSGreg Roach function regex_quote(str) { 75dd6b2bfcSGreg Roach return str.replace(/[\\.?+*()[\](){}|]/g, "\\$&"); 76dd6b2bfcSGreg Roach } 77dd6b2bfcSGreg Roach</script> 78dd6b2bfcSGreg Roach<?php View::endpush() ?> 79