Add title field
Change-Id: I17523cf62ef8dbc062eb5742f1c8dcf559c79028
diff --git a/templates/register.htm b/templates/register.htm
index 597d67a..bf1171c 100644
--- a/templates/register.htm
+++ b/templates/register.htm
@@ -30,14 +30,25 @@
<?php if(! $CONFERENCE_REGISTRATION ): ?>
<!-- Username input -->
<div class="col-md-4">
- <label class="form-label fw-bold" for="form3Example3">Username</label>
- <input pattern="[^\s]{<?php echo $VAL_USER->min_username.','.$VAL_USER->max_username;?>}" required title="At least 5 not whitespace characters" name="username" type="text" id="form3Example0" class="form-control fs-4 <?php if(isset($error) && $error && !isset($_POST['username'])){echo 'border-danger';}?>"
+ <label class="form-label fw-bold" for="username">Username</label>
+ <input pattern="[^\s]{<?php echo $VAL_USER->min_username.','.$VAL_USER->max_username;?>}" required title="At least 5 not whitespace characters" name="username" type="text" id="username" class="form-control fs-4 <?php if(isset($error) && $error && !isset($_POST['username'])){echo 'border-danger';}?>"
placeholder="johndoe" value="<?php echo isset($_POST['username']) ? htmlspecialchars($_POST['username']) : '' ?>" />
<div class="invalid-feedback">
Please choose a username with at least 5 not whitespace characters.
</div>
</div>
<?php endif; ?>
+ <?php if( $CONFERENCE_REGISTRATION ): ?>
+ <!-- title input -->
+ <div class="col-md-3">
+ <label class="form-label fs-4 fw-bold" for="title">Title</label>
+ <select class="form-select fs-4 " id="title" name="title" aria-label="Title">
+ <option selected value=""></option>
+ <option value="Dr.">Dr.</option>
+ <option value="Prof. Dr.">Prof. Dr.</option>
+ </select>
+ </div>
+ <?php endif; ?>
<!-- 2 column grid layout with text inputs for the first and last names -->
<div class="col-md-4">
<div class="form-outline">