Skip to content

Commit

Permalink
Added country code picker to telephone fields on registration page
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <[email protected]>
  • Loading branch information
sampoyigi committed Feb 18, 2023
1 parent a7b7961 commit 8e38e50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/account/register.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ class="form-control input-lg"
class="form-control input-lg"
value="{{ set_value('telephone') }}"
name="telephone"
data-control="country-code-picker"
data-initial-country="gb"
placeholder="@lang('igniter.user::default.settings.label_telephone')"
>
{!! form_error('telephone', '<span class="text-danger">', '</span>') !!}
Expand Down
2 changes: 2 additions & 0 deletions components/account/settings.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ class="form-control"
class="form-control"
value="{{ set_value('telephone', $customer->telephone) }}"
name="telephone"
data-control="country-code-picker"
data-initial-country="gb"
placeholder="@lang('igniter.user::default.settings.label_telephone')"
>
{!! form_error('telephone', '<span class="text-danger">', '</span>') !!}
Expand Down

0 comments on commit 8e38e50

Please sign in to comment.