Skip to content

Instantly share code, notes, and snippets.

@aaronshaf
Created May 9, 2011 22:05
Show Gist options
  • Save aaronshaf/963527 to your computer and use it in GitHub Desktop.
Save aaronshaf/963527 to your computer and use it in GitHub Desktop.
<form action="{{if _id}}/users/edit/${_id}.json{{else}}/users/add.json{{/if}}" method="post">
<div class="input">
<label>Name</label>
<input type="text" name="name" value="${name}" required="required" autofocus="autofocus" />
</div>
<div class="input">
<label>Email</label>
<input type="email" name="email" value="${email}" required />
</div>
<div class="input">
<label>New Password</label>
<input type="password" name="new_password" />
</div>
<div class="input">
<label>Repeat New Password</label>
<input type="password" name="repeat_new_password" />
</div>
<div class="input">
<input type="submit" value="Save" />
{{if _id}}<input type="submit" formaction="/users/delete/${_id}.json" value="Delete" data-confirm="Are you sure you want to delete this user?" />{{/if}}
</div>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment