|
|
@@ -31,15 +31,15 @@ if(is_null($user->locale)) $user->locale = LOCALE;
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="row mb-1">
|
|
|
- <label class="col-sm-4 col-form-label" for="first-name"><?=htmlspecialchars(__("First Name"))?></label>
|
|
|
+ <label class="col-sm-4 col-form-label" for="first-name"><?=htmlspecialchars(__("First Name"))?></label>
|
|
|
<div class="col-sm">
|
|
|
- <input class="form-control" type="text" name="first_name" id="first-name" placeholder="<?=htmlspecialchars(__("Enter first name"))?>" value="<?=htmlspecialchars($user->first_name)?>" required />
|
|
|
+ <input class="form-control" type="text" name="first_name" id="first-name" placeholder="<?=htmlspecialchars(__("Enter first name"))?>" value="<?=htmlspecialchars($user->first_name)?>" autocomplete="given-name" required />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="row mb-1">
|
|
|
<label class="col-sm-4 col-form-label" for="last-name"><?=htmlspecialchars(__("Last Name"))?></label>
|
|
|
<div class="col-sm">
|
|
|
- <input class="form-control" type="text" name="last_name" id="last-name" placeholder="<?=htmlspecialchars(__("Enter last name"))?>" value="<?=htmlspecialchars($user->last_name)?>" required />
|
|
|
+ <input class="form-control" type="text" name="last_name" id="last-name" placeholder="<?=htmlspecialchars(__("Enter last name"))?>" value="<?=htmlspecialchars($user->last_name)?>" autocomplete="family-name" required />
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -50,18 +50,25 @@ if(is_null($user->locale)) $user->locale = LOCALE;
|
|
|
<div class="row mb-1">
|
|
|
<label class="col-sm-4 col-form-label" for="email"><?=htmlspecialchars(__("Email Address"))?></label>
|
|
|
<div class="col-sm">
|
|
|
- <input class="form-control" type="email" name="email" id="email" placeholder="<?=htmlspecialchars(__("Enter email address"))?>" value="<?=htmlspecialchars($user->email)?>" required />
|
|
|
+ <input class="form-control" type="email" name="email" id="email" placeholder="<?=htmlspecialchars(__("Enter email address"))?>" value="<?=htmlspecialchars($user->email)?>" autocomplete="email" required />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="row mb-1">
|
|
|
<div class="col-sm offset-sm-4 align-self-center">
|
|
|
- <label><input type="checkbox" name="newsletter_content" id="newsletter-consent" value="1" <?=$newsletter_consent_checked?> /> <?=sprintf(htmlspecialchars(__("Opt-in to newsletters about %s")), APP_NAME)?></label>
|
|
|
+
|
|
|
+ <div class="custom-control custom-switch">
|
|
|
+ <input class="custom-control-input" type="checkbox" name="newsletter_content" id="newsletter-consent" value="1" <?=$newsletter_consent_checked?> />
|
|
|
+ <label for="newsletter-consent" class="custom-control-label">
|
|
|
+ <?=htmlspecialchars(__("Opt-in to newsletters about %s", APP_NAME))?>
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="row mb-1">
|
|
|
<label class="col-sm-4 col-form-label" for="phone"><?=htmlspecialchars(__("Mobile Number"))?></label>
|
|
|
<div class="col-sm">
|
|
|
- <input class="form-control" type="tel" name="phone" id="phone" placeholder="<?=htmlspecialchars(__("Enter mobile number"))?>" value="<?=htmlspecialchars($user->phone)?>" required />
|
|
|
+ <input class="form-control" type="tel" name="phone" id="phone" placeholder="<?=htmlspecialchars(__("Enter mobile number"))?>" value="<?=htmlspecialchars($user->phone)?>" autocomplete="tel" required />
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -105,7 +112,7 @@ if(is_null($user->locale)) $user->locale = LOCALE;
|
|
|
<div class="row mb-1">
|
|
|
<label class="col-sm-4 col-form-label" for="password-confirm"><?=htmlspecialchars(__("Confirm Password"))?></label>
|
|
|
<div class="col-sm">
|
|
|
- <input class="form-control" type="password" name="password_confirm" id="password-confirm" placeholder="<?=htmlspecialchars(__("Confirm password"))?>" />
|
|
|
+ <input class="form-control" type="password" name="password_confirm" id="password-confirm" autocomplete="new-password" placeholder="<?=htmlspecialchars(__("Confirm password"))?>" />
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|