Sfoglia il codice sorgente

Updated alignment of bottom form elements.

Alan Lam 8 anni fa
parent
commit
1b1358eb0a
1 ha cambiato i file con 12 aggiunte e 9 eliminazioni
  1. 12 9
      views/register.php

+ 12 - 9
views/register.php

@@ -95,16 +95,19 @@
 						<input class="form-control" type="text" name="postal_code" id="postal-code" placeholder="Enter postal code" value="<?=htmlspecialchars($user_address->postal_code)?>" required />
 					</div>
 				</div>
+				<div class="row">
+					<div class="col-sm offset-sm-4">
+						<?php
+						if(GOOGLE_RECAPTCHA_SITE_KEY) {
+							?>
+							<div class="g-recaptcha mb-1" data-sitekey="<?=GOOGLE_RECAPTCHA_SITE_KEY?>"></div>
+							<?php
+						}
+						?>
 
-				<?php
-				if(GOOGLE_RECAPTCHA_SITE_KEY) {
-					?>
-					<div class="g-recaptcha my-3" data-sitekey="<?=GOOGLE_RECAPTCHA_SITE_KEY?>"></div>
-					<?php
-				}
-				?>
-
-				<button class="btn btn-primary" type="submit" name="submit" value="<?=htmlspecialchars($_SESSION["csrf_token"])?>">Register</button>
+						<button class="btn btn-primary" type="submit" name="submit" value="<?=htmlspecialchars($_SESSION["csrf_token"])?>">Register</button>
+					</div>
+				</div>
 
 			</div>
 		</div>