Skip to content

Instantly share code, notes, and snippets.

@Kazuki-tam
Last active February 24, 2020 11:22
Show Gist options
  • Save Kazuki-tam/5b11ba37e4d25a0cf87bd1f39ccc307a to your computer and use it in GitHub Desktop.
Save Kazuki-tam/5b11ba37e4d25a0cf87bd1f39ccc307a to your computer and use it in GitHub Desktop.
<!-- デフォルトの入力フィールド -->
<label for="LastName" class="label--hidden">{{ 'customer.register.last_name' | t }}</label>
<input type="text" name="customer[last_name]" id="LastName" placeholder="{{ 'customer.register.last_name' | t }}"
{% if form.last_name %}value="{{ form.last_name }}" {% endif %} autocapitalize="words">
<label for="FirstName" class="label--hidden">{{ 'customer.register.first_name' | t }}</label>
<input type="text" name="customer[first_name]" id="FirstName" placeholder="{{ 'customer.register.first_name' | t }}"
{% if form.first_name %}value="{{ form.first_name }}" {% endif %} autocapitalize="words" autofocus>
<label for="Email" class="label--hidden">{{ 'customer.register.email' | t }}</label>
<input type="email" name="customer[email]" id="Email"
class="{% if form.errors contains 'email' %} input--error{% endif %}"
placeholder="{{ 'customer.register.email' | t }}" {% if form.email %} value="{{ form.email }}" {% endif %}
autocorrect="off" autocapitalize="off">
<label for="CreatePassword" class="label--hidden">{{ 'customer.register.password' | t }}</label>
<input type="password" name="customer[password]" id="CreatePassword"
class="{% if form.errors contains 'password' %} input--error{% endif %}"
placeholder="{{ 'customer.register.password' | t }}">
<!--//End デフォルトの入力フィールド -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment