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