Cosmetics & formatting
Change-Id: If8e73b51d282640096d05530dc66e48bc72c1269
diff --git a/templates/register.htm b/templates/register.htm
index 7988b2e..0bc96dc 100644
--- a/templates/register.htm
+++ b/templates/register.htm
@@ -26,6 +26,7 @@
</header>
<form class="row g-3 needs-validation" novalidate data-toggle="validator" action="" method="POST">
+
<?php if(! $CONFERENCE_REGISTRATION ): ?>
<!-- Username input -->
<div class="col-md-4">
@@ -61,8 +62,8 @@
<div class="form-outline md-6">
<label class="form-label fw-bold" for="organization">Affiliation</label>
- <input required name="organization" maxlength="32" type="text" id="organization" class="form-control fs-4 <?php if(isset($error) && $error && !isset($_POST['organization'])){echo 'border-danger';}?>" placeholder="Example University" pattern=".{3,32}" type="text" value="<?php echo isset($_POST['organization']) ? htmlspecialchars($_POST['organization']) : '' ?>"
- />
+ <input required name="organization" maxlength="32" type="text" id="organization" class="form-control fs-4 <?php if(isset($error) && $error && !isset($_POST['organization'])){echo 'border-danger';}?>" placeholder="Example University" pattern=".{3,32}"
+ type="text" value="<?php echo isset($_POST['organization']) ? htmlspecialchars($_POST['organization']) : '' ?>" />
<div class="invalid-feedback">
Please indicate the institution or organization you are affiliated with.
</div>
@@ -597,7 +598,7 @@
<div class="form-outline mb-3">
<label class="form-label fw-bold" for="form3Example4">Captcha</label>
<div class="container mb-2 offset-md-2">
- <img id="captcha" src="<?php echo $BASE_URL.'/captcha.php?token='.$_SESSION['captcha_token']; ?>" />
+ <img id="captcha" src="<?php echo $BASE_URL. '/captcha.php?token='.$_SESSION[ 'captcha_token']; ?>" />
<div id="reload_captcha">
<button id="reload" class="btn btn-outline-info" type="button"> <span class="glyphicon glyphicon-refresh"
aria-hidden="true"></span></button>
@@ -612,7 +613,7 @@
<?php endif; ?>
<!-- Submit button -->
- <button name="type" value="register" type="submit" class="btn btn-primary float-right fs-3 fw-bold" style="border: #42b23cff; background-color: #42b23cff;" ">Register for <?php echo $SERVICE_ACRONYM; ?></button>
+ <button name="type" value="register" type="submit" class="btn btn-primary float-right fs-3 fw-bold" style="border: #42b23cff; background-color: #42b23cff;">Register for <?php echo $SERVICE_ACRONYM; ?></button>
</form>
</div>
\ No newline at end of file