Skip to content

Instantly share code, notes, and snippets.

@joshuamiller
Created August 22, 2009 15:52
Show Gist options
  • Save joshuamiller/172823 to your computer and use it in GitHub Desktop.
Save joshuamiller/172823 to your computer and use it in GitHub Desktop.
<div id="signup">
<h2>Sign up</h2>
<form action="/users" class="new_user" id="new_user" method="post"><div style="margin:0;padding:0;display:inline"><input name="authenticity_token" type="hidden" value="BCbQMh7OAmJVlhuAUUlxNznBX/cXOQgxI9gSwTKNxMQ=" /></div>
<div class="text_field">
<label for="user_email">Email</label>
<input id="user_email" name="user[email]" size="30" type="text" />
</div>
<div class="password_field">
<label for="user_password">Password</label>
<input id="user_password" name="user[password]" size="30" type="password" />
</div>
<div class="password_field">
<label for="user_password_confirmation">Confirm password</label>
<input id="user_password_confirmation" name="user[password_confirmation]" size="30" type="password" />
</div>
<input id="user_submit" name="commit" onclick="if (window.hiddenCommit) { window.hiddenCommit.setAttribute('value', this.value); }else { hiddenCommit = document.createElement('input');hiddenCommit.type = 'hidden';hiddenCommit.value = this.value;hiddenCommit.name = this.name;this.form.appendChild(hiddenCommit); }this.setAttribute('originalValue', this.value);this.disabled = true;this.value='Please wait...';result = (this.form.onsubmit ? (this.form.onsubmit() ? this.form.submit() : false) : this.form.submit());if (result == false) { this.value = this.getAttribute('originalValue');this.disabled = false; }return result;" type="submit" value="Sign up" />
</form>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment