mirror of
https://github.com/itflow-org/itflow
synced 2026-08-27 09:55:12 +00:00
use intl js lib across all phone number fields
This commit is contained in:
@@ -75,8 +75,8 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-phone"></i></span>
|
||||
<input type="tel" class="form-control w-25 flex-grow-0" name="phone_country_code" placeholder="+" maxlength="4">
|
||||
<input type="tel" class="form-control" name="phone" placeholder="Phone Number" maxlength="200">
|
||||
<input type="hidden" name="phone_country_code">
|
||||
<input type="tel" class="form-control" name="phone" placeholder="Phone Number" maxlength="200" data-itflow-phone="phone_country_code">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -119,8 +119,8 @@ ob_start();
|
||||
<div class="mb-3">
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-phone"></i></span>
|
||||
<input type="tel" class="form-control w-25 flex-grow-0" name="phone_country_code" placeholder="+" maxlength="4" value="<?= $vendor_phone_country_code ?>">
|
||||
<input type="tel" class="form-control" name="phone" maxlength="200" value="<?= $vendor_phone ?>">
|
||||
<input type="hidden" name="phone_country_code" value="<?= $vendor_phone_country_code ?>">
|
||||
<input type="tel" class="form-control" name="phone" maxlength="200" value="<?= $vendor_phone ?>" data-itflow-phone="phone_country_code">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -96,7 +96,7 @@ $company_initials = escapeHtml(initials($company_name));
|
||||
<select class="form-select select2" name="country">
|
||||
<option value="">- Country -</option>
|
||||
<?php foreach($countries_array as $country_name) { ?>
|
||||
<option <?php if ($company_country == $country_name) { echo "selected"; } ?>><?= $country_name ?></option>
|
||||
<option <?php if ($company_country == $country_name) { echo "selected"; } ?> data-iso2="<?= $country_iso2_array[$country_name] ?? '' ?>"><?= $country_name ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
@@ -108,8 +108,8 @@ $company_initials = escapeHtml(initials($company_name));
|
||||
<div class="mb-3">
|
||||
<div class="input-group">
|
||||
<span class="input-group-text"><i class="fa fa-fw fa-phone"></i></span>
|
||||
<input type="tel" class="form-control w-25 flex-grow-0" name="phone_country_code" value="<?= $company_phone_country_code ?>" placeholder="+" maxlength="4">
|
||||
<input type="tel" class="form-control" name="phone" value="<?= $company_phone ?>" placeholder="Phone Number" maxlength="200">
|
||||
<input type="hidden" name="phone_country_code" value="<?= $company_phone_country_code ?>">
|
||||
<input type="tel" class="form-control" name="phone" value="<?= $company_phone ?>" placeholder="Phone Number" maxlength="200" data-itflow-phone="phone_country_code" data-itflow-phone-country-select="country">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user