|
|
@@ -61,7 +61,7 @@ if(is_null($user->locale)) $user->locale = LOCALE;
|
|
|
<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="phone" 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)?>" required />
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -109,48 +109,58 @@ if(is_null($user->locale)) $user->locale = LOCALE;
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="card card-body mb-3">
|
|
|
- <h3><?=htmlspecialchars(__("Payment"))?></h3>
|
|
|
- <div class="row mb-1">
|
|
|
- <label class="col-sm-4 col-form-label" for="preferred-payment-method"><?=htmlspecialchars(__("Preferred Payment Method"))?></label>
|
|
|
- <div class="col-sm">
|
|
|
- <select class="form-control" name="preferred_payment_method" id="preferred-payment-method">
|
|
|
- <?php
|
|
|
- foreach(User::PAYMENT_METHODS as $value => $display) {
|
|
|
- $selected = ($user->preferred_payment_method == $value) ? "selected" : "";
|
|
|
- ?>
|
|
|
- <option value="<?=htmlspecialchars($value)?>" <?=$selected?>><?=htmlspecialchars($display)?></option>
|
|
|
+
|
|
|
+
|
|
|
+ <?php
|
|
|
+
|
|
|
+ if($user->isTester()) {
|
|
|
+ ?>
|
|
|
+ <div class="card card-body mb-3">
|
|
|
+ <h3><?=htmlspecialchars(__("Payment"))?></h3>
|
|
|
+ <div class="row mb-1">
|
|
|
+ <label class="col-sm-4 col-form-label" for="preferred-payment-method"><?=htmlspecialchars(__("Preferred Payment Method"))?></label>
|
|
|
+ <div class="col-sm">
|
|
|
+ <select class="form-control" name="preferred_payment_method" id="preferred-payment-method">
|
|
|
<?php
|
|
|
- }
|
|
|
- ?>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="row mb-1">
|
|
|
- <label class="col-sm-4 col-form-label" for="bank-name"><?=htmlspecialchars(__("Bank Name"))?></label>
|
|
|
- <div class="col-sm">
|
|
|
- <input class="form-control" type="text" name="bank_name" id="bank-name" placeholder="<?=htmlspecialchars(__("Enter bank name"))?>" value="<?=htmlspecialchars($user->bank_name)?>" />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="row mb-1">
|
|
|
- <label class="col-sm-4 col-form-label" for="bank-sort-code"><?=htmlspecialchars(__("Bank Sort Code"))?></label>
|
|
|
- <div class="col-sm">
|
|
|
- <input class="form-control" type="text" name="bank_sort_code" id="bank-sort-code" placeholder="<?=htmlspecialchars(__("Enter bank sort code"))?>" value="<?=htmlspecialchars($user->bank_sort_code)?>" />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="row mb-1">
|
|
|
- <label class="col-sm-4 col-form-label" for="bank-account-number"><?=htmlspecialchars(__("Bank Account Number"))?></label>
|
|
|
- <div class="col-sm">
|
|
|
- <input class="form-control" type="text" name="bank_account_number" id="bank-account-number" placeholder="<?=htmlspecialchars(__("Enter bank account number"))?>" value="<?=htmlspecialchars($user->bank_account_number)?>" />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="row mb-1">
|
|
|
- <label class="col-sm-4 col-form-label" for="paypal-email"><?=htmlspecialchars(__("PayPal Email Address"))?></label>
|
|
|
- <div class="col-sm">
|
|
|
- <input class="form-control" type="email" name="paypal_email" id="paypal-email" placeholder="<?=htmlspecialchars(__("Enter PayPal email address"))?>" value="<?=htmlspecialchars($user->paypal_email)?>" />
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ foreach(User::PAYMENT_METHODS as $value => $display) {
|
|
|
+ $selected = ($user->preferred_payment_method == $value) ? "selected" : "";
|
|
|
+ ?>
|
|
|
+ <option value="<?=htmlspecialchars($value)?>" <?=$selected?>><?=htmlspecialchars($display)?></option>
|
|
|
+ <?php
|
|
|
+ }
|
|
|
+ ?>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="row mb-1">
|
|
|
+ <label class="col-sm-4 col-form-label" for="bank-name"><?=htmlspecialchars(__("Bank Name"))?></label>
|
|
|
+ <div class="col-sm">
|
|
|
+ <input class="form-control" type="text" name="bank_name" id="bank-name" placeholder="<?=htmlspecialchars(__("Enter bank name"))?>" value="<?=htmlspecialchars($user->bank_name)?>" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="row mb-1">
|
|
|
+ <label class="col-sm-4 col-form-label" for="bank-sort-code"><?=htmlspecialchars(__("Bank Sort Code"))?></label>
|
|
|
+ <div class="col-sm">
|
|
|
+ <input class="form-control" type="text" name="bank_sort_code" id="bank-sort-code" placeholder="<?=htmlspecialchars(__("Enter bank sort code"))?>" value="<?=htmlspecialchars($user->bank_sort_code)?>" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="row mb-1">
|
|
|
+ <label class="col-sm-4 col-form-label" for="bank-account-number"><?=htmlspecialchars(__("Bank Account Number"))?></label>
|
|
|
+ <div class="col-sm">
|
|
|
+ <input class="form-control" type="text" name="bank_account_number" id="bank-account-number" placeholder="<?=htmlspecialchars(__("Enter bank account number"))?>" value="<?=htmlspecialchars($user->bank_account_number)?>" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="row mb-1">
|
|
|
+ <label class="col-sm-4 col-form-label" for="paypal-email"><?=htmlspecialchars(__("PayPal Email Address"))?></label>
|
|
|
+ <div class="col-sm">
|
|
|
+ <input class="form-control" type="email" name="paypal_email" id="paypal-email" placeholder="<?=htmlspecialchars(__("Enter PayPal email address"))?>" value="<?=htmlspecialchars($user->paypal_email)?>" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <?php
|
|
|
+ }
|
|
|
+
|
|
|
+ ?>
|
|
|
|
|
|
<div class="row">
|
|
|
<div class="col">
|
|
|
@@ -175,4 +185,4 @@ if(is_null($user->locale)) $user->locale = LOCALE;
|
|
|
</div>
|
|
|
</div>
|
|
|
</form>
|
|
|
-</div>
|
|
|
+</div>
|