Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Add autofocus and a cancel button
Browse files Browse the repository at this point in the history
  • Loading branch information
chadwhitacre committed May 10, 2016
1 parent 506993d commit 8647b88
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions www/~/%username/identities/%country.spt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ if request.method == 'POST':

<label>
<span>{{ _("ID Number") }}</span>
<input id="id_number" name="id_number" required value="{{ info['id_number'] }}">
<input id="id_number" name="id_number" required autofocus
value="{{ info['id_number'] }}">
</label>

<label>
Expand Down Expand Up @@ -88,7 +89,11 @@ if request.method == 'POST':

<div class="clear"></div>

<button class="selected larger" id="save" type="submit">{{ _("Save") }}</button>
<br>

<button class="selected larger" type="submit">{{ _("Save") }}</button>
<button class="cancel" type="reset"
onclick="javascript: window.location='./'" formnovalidate>Cancel</button>

{% if identity != None %}
<div class="danger-zone">
Expand Down

0 comments on commit 8647b88

Please sign in to comment.