1*a00bcc63SGreg Roach<?php 2*a00bcc63SGreg Roach 3*a00bcc63SGreg Roachuse Fisharebest\Webtrees\I18N; 4*a00bcc63SGreg Roachuse Fisharebest\Webtrees\User; 5*a00bcc63SGreg Roachuse Fisharebest\Webtrees\View; 6*a00bcc63SGreg Roach 7*a00bcc63SGreg Roach/** 8*a00bcc63SGreg Roach * @var string $title 9*a00bcc63SGreg Roach * @var string $token 10*a00bcc63SGreg Roach * @var User $user 11*a00bcc63SGreg Roach */ 12*a00bcc63SGreg Roach?> 13*a00bcc63SGreg Roach 14*a00bcc63SGreg Roach<h2 class="wt-page-title"> 15*a00bcc63SGreg Roach <?= $title ?> 16*a00bcc63SGreg Roach</h2> 17*a00bcc63SGreg Roach 18*a00bcc63SGreg Roach<form class="wt-page-options wt-page-options-login" method="post"> 19*a00bcc63SGreg Roach <?= csrf_field() ?> 20*a00bcc63SGreg Roach <input type="hidden" name="token" value="<?= e($token) ?>"> 21*a00bcc63SGreg Roach 22*a00bcc63SGreg Roach <div class="form-group row"> 23*a00bcc63SGreg Roach <label class="col-sm-3 col-form-label wt-page-options-label" for="username"> 24*a00bcc63SGreg Roach <?= I18N::translate('Username') ?> 25*a00bcc63SGreg Roach </label> 26*a00bcc63SGreg Roach <div class="col-sm-9 wt-page-options-value"> 27*a00bcc63SGreg Roach <input class="form-control" type="text" id="username" name="username" value="<?= e($user->userName()) ?>" disabled> 28*a00bcc63SGreg Roach </div> 29*a00bcc63SGreg Roach </div> 30*a00bcc63SGreg Roach 31*a00bcc63SGreg Roach <div class="row form-group"> 32*a00bcc63SGreg Roach <label class="col-sm-3 col-form-label wt-page-options-label" for="password"> 33*a00bcc63SGreg Roach <?= I18N::translate('Password') ?> 34*a00bcc63SGreg Roach </label> 35*a00bcc63SGreg Roach <div class="col-sm-9 wt-page-options-value"> 36*a00bcc63SGreg Roach <input class="form-control" type="password" id="password" name="password" autocomplete="new-password" pattern=".{8,}" required> 37*a00bcc63SGreg Roach <p class="small text-muted" id="password-description"> 38*a00bcc63SGreg Roach <?= I18N::translate('Passwords must be at least 8 characters long and are case-sensitive, so that “secret” is different from “SECRET”.') ?> 39*a00bcc63SGreg Roach </p> 40*a00bcc63SGreg Roach </div> 41*a00bcc63SGreg Roach </div> 42*a00bcc63SGreg Roach 43*a00bcc63SGreg Roach <div class="form-group row"> 44*a00bcc63SGreg Roach <div class="col-sm-3 col-form-label wt-page-options-label"> 45*a00bcc63SGreg Roach </div> 46*a00bcc63SGreg Roach <div class="col-sm-9 wt-page-options-value"> 47*a00bcc63SGreg Roach <button class="btn btn-primary" type="submit"> 48*a00bcc63SGreg Roach <?= /* I18N: A button label. */ 49*a00bcc63SGreg Roach I18N::translate('continue') ?> 50*a00bcc63SGreg Roach </button> 51*a00bcc63SGreg Roach 52*a00bcc63SGreg Roach </div> 53*a00bcc63SGreg Roach </div> 54*a00bcc63SGreg Roach</form> 55*a00bcc63SGreg Roach 56*a00bcc63SGreg Roach<?php View::push('javascript') ?> 57*a00bcc63SGreg Roach<script> 58*a00bcc63SGreg Roach $("#password").hideShowPassword("infer", true); 59*a00bcc63SGreg Roach</script> 60*a00bcc63SGreg Roach<?php View::endpush() ?> 61