Cosmetics & formatting
Change-Id: If8e73b51d282640096d05530dc66e48bc72c1269
diff --git a/templates/header.htm b/templates/header.htm
index 7775679..a4c5fb6 100644
--- a/templates/header.htm
+++ b/templates/header.htm
@@ -6,9 +6,11 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
- <title>Sign up for <?php echo $SERVICE_ACRONYM; ?></title>
+ <title>Sign up for
+ <?php echo $SERVICE_ACRONYM; ?>
+ </title>
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-glyphicons.css" rel="stylesheet">
- <link rel="stylesheet" href="<?php echo $BASE_URL?>/static/main.css" >
+ <link rel="stylesheet" href="<?php echo $BASE_URL?>/static/main.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.3/jquery.min.js" integrity="sha512-STof4xm1wgkfm7heWqFJVn58Hm3EtS31XFaagaa8VMReCXAkQnJZ+jEy8PCC/iT18dFy95WcExNHFTqLyp72eQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js" integrity="sha384-oBqDVmMz9ATKxIep9tiCxS/Z9fNfEXiDAYTujMAeBAsjFuCZSmKbSSUnQlmh/jp3" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.min.js" integrity="sha384-mQ93GR66B00ZXjt0YO5KlohRA5SY2XofN4zfuZxLkoj1gXtW8ANNCe9d5Y3eG5eD" crossorigin="anonymous"></script>
@@ -18,8 +20,11 @@
<script src="<?php echo $BASE_URL?>/static/main.js"></script>
<link rel="icon" type="image/x-icon" href="static/images/favicon.ico">
<style>
- .form-check-label { margin-left: 1ex;}
-</style>
+ .form-check-label {
+ margin-left: 1ex;
+ }
+ </style>
</head>
+
<body>
-<div class="container mb-8" id="main_container" >
+ <div class="container mb-8" id="main_container">
\ No newline at end of file
diff --git a/templates/register.htm b/templates/register.htm
index 3020b4d..b62493e 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