Add autofocus for some form stuff
This commit is contained in:
parent
0b0d88dc45
commit
682ef0e7c0
|
@ -8,7 +8,7 @@
|
|||
and <%= $error->[3] %> characters.</p>
|
||||
<% } =%>
|
||||
<%= label_for email => 'Email' %>
|
||||
<%= email_field email => (id => 'email') %>
|
||||
<%= email_field email => (id => 'email', autofocus => undef) %>
|
||||
</div>
|
||||
<div class="form-field">
|
||||
<% if (my $error = validation->error('password')) { =%>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and <%= $error->[3] %> characters.</p>
|
||||
<% } =%>
|
||||
<%= label_for name => 'Name' %>
|
||||
<%= text_field name => (id => 'name') %>
|
||||
<%= text_field name => (id => 'name', autofocus => undef) %>
|
||||
</div>
|
||||
<div class="form-field">
|
||||
<% if (my $error = validation->error('email')) { =%>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and <%= $error->[3] %> characters.</p>
|
||||
<% } =%>
|
||||
<%= label_for email => 'Email' %>
|
||||
<%= email_field email => (id => 'email') %>
|
||||
<%= email_field email => (id => 'email', autofocus => undef) %>
|
||||
</div>
|
||||
<button type="submit" class="form-button">Demote</button>
|
||||
</form>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and <%= $error->[3] %> characters.</p>
|
||||
<% } =%>
|
||||
<%= label_for email => 'Email' %>
|
||||
<%= email_field email => (id => 'email') %>
|
||||
<%= email_field email => (id => 'email', autofocus => undef) %>
|
||||
</div>
|
||||
<button type="submit" class="form-button">Lock</button>
|
||||
</form>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and <%= $error->[3] %> characters.</p>
|
||||
<% } =%>
|
||||
<%= label_for email => 'Email' %>
|
||||
<%= email_field email => (id => 'email') %>
|
||||
<%= email_field email => (id => 'email', autofocus => undef) %>
|
||||
</div>
|
||||
<div class="form-field">
|
||||
<% if (my $error = validation->error('password')) { =%>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and <%= $error->[3] %> characters.</p>
|
||||
<% } =%>
|
||||
<%= label_for password => 'Password' %>
|
||||
<%= password_field password => (id => 'password') %>
|
||||
<%= password_field password => (id => 'password', autofocus => undef) %>
|
||||
</div>
|
||||
<button type="submit" class="form-button">Reset</button>
|
||||
</form>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and <%= $error->[3] %> characters.</p>
|
||||
<% } =%>
|
||||
<%= label_for email => 'Email' %>
|
||||
<%= email_field email => (id => 'email') %>
|
||||
<%= email_field email => (id => 'email', autofocus => undef) %>
|
||||
</div>
|
||||
<button type="submit" class="form-button">Promote</button>
|
||||
</form>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
and <%= $error->[3] %> characters.</p>
|
||||
<% } =%>
|
||||
<%= label_for email => 'Email' %>
|
||||
<%= email_field email => (id => 'email') %>
|
||||
<%= email_field email => (id => 'email', autofocus => undef) %>
|
||||
</div>
|
||||
<button type="submit" class="form-button">Unlock</button>
|
||||
</form>
|
||||
|
|
|
@ -21,7 +21,8 @@
|
|||
id => 'answer',
|
||||
min => 1,
|
||||
max => 9,
|
||||
required => undef
|
||||
required => undef,
|
||||
autofocus => undef
|
||||
) %>
|
||||
</div>
|
||||
<%= hidden_field number => $roman_numeral, id => 'number' %>
|
||||
|
|
Loading…
Reference in New Issue
Block a user