Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.

VP-2335: Make First Name and Second Name required in theme #150

Merged
merged 1 commit into from
Jun 22, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions templates/customers/register.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
{% include 'form-errors-custom' %}

<label for="first_name" class="hidden-label">{{ 'customer.register.first_name' | t }}</label>
<input type="text" value="{{form.first_name}}" name="customer[first_name]" id="first_name" placeholder="{{ 'customer.register.first_name' | t }}" {% if form.errors contains "first_name" %} class="error" {% endif %} autocapitalize="words" autofocus>
<input type="text" value="{{form.first_name}}" name="customer[first_name]" required id="first_name" placeholder="{{ 'customer.register.first_name' | t }}" {% if form.errors contains "first_name" %} class="error" {% endif %} autocapitalize="words" autofocus>

<label for="last_name" class="hidden-label">{{ 'customer.register.last_name' | t }}</label>
<input type="text" value="{{form.last_name}}" name="customer[last_name]" id="last_name" placeholder="{{ 'customer.register.last_name' | t }}" {% if form.errors contains "last_name" %} class="error" {% endif %} autocapitalize="words">
<input type="text" value="{{form.last_name}}" name="customer[last_name]" required id="last_name" placeholder="{{ 'customer.register.last_name' | t }}" {% if form.errors contains "last_name" %} class="error" {% endif %} autocapitalize="words">

<label for="email" class="hidden-label">{{ 'customer.register.email' | t }}</label>
<input type="email" value="{{form.email}}" name="customer[email]" id="email" placeholder="{{ 'customer.register.email' | t }}" {% if form.errors contains "email" %} class="error" {% endif %} autocorrect="off" autocapitalize="off">
Expand Down