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