mirror of
https://github.com/getnamingo/registry.git
synced 2025-05-14 00:27:03 +02:00
UI improvements for contact verification
Moved to registry settings instead of individual contact settings.
This commit is contained in:
parent
bf45440770
commit
04c4382836
6 changed files with 78 additions and 31 deletions
|
@ -124,6 +124,36 @@ class SystemController extends Controller
|
|||
]
|
||||
);
|
||||
|
||||
$db->update(
|
||||
'settings',
|
||||
[
|
||||
'value' => $data['verifyPhone']
|
||||
],
|
||||
[
|
||||
'name' => "verifyPhone"
|
||||
]
|
||||
);
|
||||
|
||||
$db->update(
|
||||
'settings',
|
||||
[
|
||||
'value' => $data['verifyEmail']
|
||||
],
|
||||
[
|
||||
'name' => "verifyEmail"
|
||||
]
|
||||
);
|
||||
|
||||
$db->update(
|
||||
'settings',
|
||||
[
|
||||
'value' => $data['verifyPostal']
|
||||
],
|
||||
[
|
||||
'name' => "verifyPostal"
|
||||
]
|
||||
);
|
||||
|
||||
$db->update(
|
||||
'settings',
|
||||
[
|
||||
|
@ -181,6 +211,9 @@ class SystemController extends Controller
|
|||
$whois_server = $db->selectValue("SELECT value FROM settings WHERE name = 'whois_server'");
|
||||
$rdap_server = $db->selectValue("SELECT value FROM settings WHERE name = 'rdap_server'");
|
||||
$currency = $db->selectValue("SELECT value FROM settings WHERE name = 'currency'");
|
||||
$verifyPhone = $db->selectValue("SELECT value FROM settings WHERE name = 'verifyPhone'");
|
||||
$verifyEmail = $db->selectValue("SELECT value FROM settings WHERE name = 'verifyEmail'");
|
||||
$verifyPostal = $db->selectValue("SELECT value FROM settings WHERE name = 'verifyPostal'");
|
||||
|
||||
$uniqueCurrencies = [];
|
||||
foreach ($countries as $country) {
|
||||
|
@ -204,7 +237,10 @@ class SystemController extends Controller
|
|||
'whois_server' => $whois_server,
|
||||
'rdap_server' => $rdap_server,
|
||||
'uniqueCurrencies' => $uniqueCurrencies,
|
||||
'currency' => $currency
|
||||
'currency' => $currency,
|
||||
'verifyPhone' => $verifyPhone,
|
||||
'verifyEmail' => $verifyEmail,
|
||||
'verifyPostal' => $verifyPostal
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
@ -167,21 +167,6 @@
|
|||
</div>
|
||||
<!-- You can invert the logic if you prefer the default to be 'Personal' instead of 'Business' -->
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<div class="form-check">
|
||||
<input type="checkbox" class="form-check-input" id="verifyPhone" name="verifyPhone">
|
||||
<label class="form-check-label" for="verifyPhone">{{ __('Verify by Phone') }}</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input type="checkbox" class="form-check-input" id="verifyEmail" name="verifyEmail">
|
||||
<label class="form-check-label" for="verifyEmail">{{ __('Verify by Email') }}</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input type="checkbox" class="form-check-input" id="verifyPostal" name="verifyPostal">
|
||||
<label class="form-check-label" for="verifyPostal">{{ __('Verify by Postal Mail') }}</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -160,21 +160,6 @@
|
|||
</div>
|
||||
<!-- You can invert the logic if you prefer the default to be 'Personal' instead of 'Business' -->
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<div class="form-check">
|
||||
<input type="checkbox" class="form-check-input" id="verifyPhone" name="verifyPhone">
|
||||
<label class="form-check-label" for="verifyPhone">{{ __('Verify by Phone') }}</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input type="checkbox" class="form-check-input" id="verifyEmail" name="verifyEmail">
|
||||
<label class="form-check-label" for="verifyEmail">{{ __('Verify by Email') }}</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input type="checkbox" class="form-check-input" id="verifyPostal" name="verifyPostal">
|
||||
<label class="form-check-label" for="verifyPostal">{{ __('Verify by Postal Mail') }}</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -82,6 +82,41 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label class="form-label">{{ __('Contact Verification') }}</label>
|
||||
<div class="divide-y">
|
||||
<div>
|
||||
<label class="row">
|
||||
<span class="col">{{ __('Verify by Phone') }}</span>
|
||||
<span class="col-auto">
|
||||
<label class="form-check form-check-single form-switch">
|
||||
<input class="form-check-input" type="checkbox" name="verifyPhone" {% if verifyPhone == 'on' %}checked{% endif %}>
|
||||
</label>
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
<div>
|
||||
<label class="row">
|
||||
<span class="col">{{ __('Verify by Email') }}</span>
|
||||
<span class="col-auto">
|
||||
<label class="form-check form-check-single form-switch">
|
||||
<input class="form-check-input" type="checkbox" name="verifyEmail" {% if verifyEmail == 'on' %}checked{% endif %}>
|
||||
</label>
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
<div>
|
||||
<label class="row">
|
||||
<span class="col">{{ __('Verify by Postal Mail') }}</span>
|
||||
<span class="col-auto">
|
||||
<label class="form-check form-check-single form-switch">
|
||||
<input class="form-check-input" type="checkbox" name="verifyPostal" {% if verifyPostal == 'on' %}checked{% endif %}>
|
||||
</label>
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -884,6 +884,9 @@ INSERT INTO `registry`.`settings` (`name`, `value`) VALUES
|
|||
('address2', '48000'),
|
||||
('cc', 'Ukraine'),
|
||||
('vat_number', '12345678'),
|
||||
('verifyEmail', NULL),
|
||||
('verifyPhone', NULL),
|
||||
('verifyPostal', NULL),
|
||||
('phone', '+123456789'),
|
||||
('handle', 'RXX'),
|
||||
('email', 'contact@example.com'),
|
||||
|
|
|
@ -813,6 +813,9 @@ INSERT INTO settings (name, value) VALUES
|
|||
('address2', '48000'),
|
||||
('cc', 'Ukraine'),
|
||||
('vat_number', '12345678'),
|
||||
('verifyEmail', NULL),
|
||||
('verifyPhone', NULL),
|
||||
('verifyPostal', NULL),
|
||||
('phone', '+123456789'),
|
||||
('handle', 'RXX'),
|
||||
('email', 'contact@example.com'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue