| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <?php /** @noinspection PhpUnhandledExceptionInspection */
- namespace App;
- use ParagonIE\AntiCSRF\AntiCSRF;
- $csrf = new AntiCSRF();
- ?>
- <div style="max-width: 640px; margin: 0 auto;">
- <h3><?=htmlspecialchars(__("Setup"))?></h3>
- <form method="post">
- <?php
- $csrf->insertToken();
- ?>
- <div class="row">
- <div class="col-6 col-sm-3">
- <div class="mb-3">
- <label for="title"><?=htmlspecialchars(__("Title"))?></label>
- <select class="form-select" name="title" id="title">
- <?php
- foreach(User::getTitleOptions() as $value) {
- ?>
- <option value="<?=htmlspecialchars($value)?>">
- <?=htmlspecialchars($value)?>
- </option>
- <?php
- }
- ?>
- </select>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-6">
- <div class="mb-3">
- <label for="first-name"><?=htmlspecialchars(__("First Name"))?></label>
- <input class="form-control" type="text" id="first-name" name="first_name" placeholder="<?=htmlspecialchars(__("Type first name"))?>" required />
- </div>
- </div>
- <div class="col-6">
- <div class="mb-3">
- <label for="last-name"><?=htmlspecialchars(__("Last Name"))?></label>
- <input class="form-control" type="text" id="last-name" name="last_name" placeholder="<?=htmlspecialchars(__("Type last name"))?>" required />
- </div>
- </div>
- </div>
- <div class="mb-3">
- <label for="email"><?=htmlspecialchars(__("Email Address"))?></label>
- <input class="form-control" type="email" id="email" name="email" placeholder="<?=htmlspecialchars(__("Type email address"))?>" required />
- </div>
- <div class="mb-3">
- <label for="password"><?=htmlspecialchars(__("Password"))?></label>
- <input class="form-control" type="password" id="password" name="password" placeholder="<?=htmlspecialchars(__("Type password"))?>" autocomplete="new-password" required />
- </div>
- <div class="mb-3">
- <label for="confirm-password"><?=htmlspecialchars(__("Confirm Password"))?></label>
- <input class="form-control" type="password" id="confirm-password" name="confirm_password" placeholder="<?=htmlspecialchars(__("Confirm password"))?>" autocomplete="new-password" required />
- </div>
- <button class="btn btn-primary" type="submit">
- <?=htmlspecialchars(__("Setup"))?>
- </button>
- </form>
- </div>
|