10c0910bfSGreg Roach<?php 2dd6b2bfcSGreg Roach 3*10e06497SGreg Roachdeclare(strict_types=1); 4*10e06497SGreg Roach 50c0910bfSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel; 6c7aa856bSGreg Roachuse Fisharebest\Webtrees\Http\RequestHandlers\SiteRegistrationAction; 70c0910bfSGreg Roachuse Fisharebest\Webtrees\I18N; 80c0910bfSGreg Roachuse Fisharebest\Webtrees\Site; 90c0910bfSGreg Roach 10c7aa856bSGreg Roach/** 11c7aa856bSGreg Roach * @var string $language_tag 12c7aa856bSGreg Roach * @var array<string> $registration_text_options 13c7aa856bSGreg Roach * @var string $title 14c7aa856bSGreg Roach */ 15c7aa856bSGreg Roach 160c0910bfSGreg Roach?> 170c0910bfSGreg Roach 180c0910bfSGreg Roach<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), $title]]) ?> 19dd6b2bfcSGreg Roach 20dd6b2bfcSGreg Roach<h1><?= $title ?></h1> 21dd6b2bfcSGreg Roach 22c7aa856bSGreg Roach<form method="post" action="<?= e(route(SiteRegistrationAction::class)) ?>" class="form-horizontal"> 23dd6b2bfcSGreg Roach <!-- WELCOME_TEXT_AUTH_MODE --> 249e3c2cf9SGreg Roach <div class="row mb-3"> 25dd6b2bfcSGreg Roach <label for="WELCOME_TEXT_AUTH_MODE" class="col-sm-3 col-form-label"> 26dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ I18N::translate('Welcome text on sign-in page') ?> 27dd6b2bfcSGreg Roach </label> 28dd6b2bfcSGreg Roach <div class="col-sm-9"> 29c9e11c2aSGreg Roach <?= view('components/select', ['name' => 'WELCOME_TEXT_AUTH_MODE', 'selected' => Site::getPreference('WELCOME_TEXT_AUTH_MODE'), 'options' => $registration_text_options]) ?> 30315eb316SGreg Roach <div class="form-text"> 31315eb316SGreg Roach </div> 32dd6b2bfcSGreg Roach </div> 33dd6b2bfcSGreg Roach </div> 34dd6b2bfcSGreg Roach 35dd6b2bfcSGreg Roach <!-- WELCOME_TEXT_AUTH_MODE_4 --> 369e3c2cf9SGreg Roach <div class="row mb-3"> 37dd6b2bfcSGreg Roach <label for="WELCOME_TEXT_AUTH_MODE_4" class="col-sm-3 col-form-label"> 38dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ I18N::translate('Custom welcome text') ?> 39dd6b2bfcSGreg Roach </label> 40dd6b2bfcSGreg Roach <div class="col-sm-9"> 4190a2f718SGreg Roach <textarea class="form-control" id="WELCOME_TEXT_AUTH_MODE_4" name="WELCOME_TEXT_AUTH_MODE_4" rows="5" dir="auto" maxlength="2000"><?= e(Site::getPreference('WELCOME_TEXT_AUTH_MODE_' . $language_tag)) ?></textarea> 42315eb316SGreg Roach <div class="form-text"> 43dd6b2bfcSGreg Roach <?= /* I18N: Help text for the "Custom welcome text" site configuration setting */ I18N::translate('To set this text for other languages, you must switch to that language, and visit this page again.') ?> 44315eb316SGreg Roach </div> 45dd6b2bfcSGreg Roach </div> 46dd6b2bfcSGreg Roach </div> 47dd6b2bfcSGreg Roach 48dd6b2bfcSGreg Roach <!-- USE_REGISTRATION_MODULE --> 499e3c2cf9SGreg Roach <fieldset class="row mb-3"> 50dd6b2bfcSGreg Roach <legend class="col-form-label col-sm-3"> 51dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ I18N::translate('Allow visitors to request a new user account') ?> 52dd6b2bfcSGreg Roach </legend> 53dd6b2bfcSGreg Roach <div class="col-sm-9"> 54b6c326d8SGreg Roach <?= view('components/radios-inline', ['name' => 'USE_REGISTRATION_MODULE', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) Site::getPreference('USE_REGISTRATION_MODULE')]) ?> 55315eb316SGreg Roach <div class="form-text"> 56dd6b2bfcSGreg Roach <?= I18N::translate('The new user will be asked to confirm their email address before the account is created.') ?> 57dd6b2bfcSGreg Roach <?= I18N::translate('Details of the new user will be sent to the genealogy contact for the corresponding family tree.') ?> 58dd6b2bfcSGreg Roach <?= I18N::translate('An administrator must approve the new user account and select an access level before the user can sign in.') ?> 59dd6b2bfcSGreg Roach </div> 60dd6b2bfcSGreg Roach </div> 61dd6b2bfcSGreg Roach </fieldset> 62dd6b2bfcSGreg Roach 63dd6b2bfcSGreg Roach <!-- SHOW_REGISTER_CAUTION --> 649e3c2cf9SGreg Roach <fieldset class="row mb-3"> 65dd6b2bfcSGreg Roach <legend class="col-form-label col-sm-3"> 66dd6b2bfcSGreg Roach <?= /* I18N: A configuration setting */ I18N::translate('Show acceptable use agreement on “Request a new user account” page') ?> 67dd6b2bfcSGreg Roach </legend> 68dd6b2bfcSGreg Roach <div class="col-sm-9"> 69b6c326d8SGreg Roach <?= view('components/radios-inline', ['name' => 'SHOW_REGISTER_CAUTION', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) Site::getPreference('SHOW_REGISTER_CAUTION')]) ?> 70315eb316SGreg Roach <div class="form-text"> 71dd6b2bfcSGreg Roach </div> 72dd6b2bfcSGreg Roach </div> 73dd6b2bfcSGreg Roach </fieldset> 74dd6b2bfcSGreg Roach 759e3c2cf9SGreg Roach <div class="row mb-3"> 76dd6b2bfcSGreg Roach <div class="offset-sm-3 col-sm-9"> 77dd6b2bfcSGreg Roach <button type="submit" class="btn btn-primary"> 78dd6b2bfcSGreg Roach <?= view('icons/save') ?> 79dd6b2bfcSGreg Roach <?= I18N::translate('save') ?> 80dd6b2bfcSGreg Roach </button> 81dd6b2bfcSGreg Roach 820c0910bfSGreg Roach <a href="<?= e(route(ControlPanel::class)) ?>" class="btn btn-secondary"> 83dd6b2bfcSGreg Roach <?= view('icons/cancel') ?> 84dd6b2bfcSGreg Roach <?= I18N::translate('cancel') ?> 85dd6b2bfcSGreg Roach </a> 86dd6b2bfcSGreg Roach </div> 87dd6b2bfcSGreg Roach </div> 8881443e3cSGreg Roach 8981443e3cSGreg Roach <?= csrf_field() ?> 90dd6b2bfcSGreg Roach</form> 91