Set up preliminary tests for users

This commit is contained in:
Matthew Dillon 2015-11-05 17:42:50 -07:00
parent a47f233493
commit 2d7d22f847
5 changed files with 88 additions and 8 deletions

View file

@ -1,5 +1,5 @@
<h2>{{genus-name}} Users</h2>
<h3>Total users: {{model.length}}</h3>
<h3 id="total-users">Total users: {{model.length}}</h3>
<table class="flakes-table">
<thead>

View file

@ -4,7 +4,7 @@
<div data-row-span="1">
<div data-field-span="1">
<label>Name</label>
{{input value=user.name}}
{{input value=user.name class="user-name"}}
</div>
</div>
<div data-row-span="1">
@ -33,7 +33,7 @@
Cancel
</a>
{{#if user.hasDirtyAttributes}}
<button type="submit" class="button-green smaller">
<button type="submit" class="button-green smaller save-user">
Save
</button>
{{/if}}

View file

@ -6,22 +6,22 @@
<ul>
<li>
<label>Name</label>
{{input value=user.name}}
{{input value=user.name class="user-name"}}
</li>
<li>
<label>Email</label>
{{input value=user.email}}
{{input value=user.email class="email"}}
</li>
<li>
<label>Password</label>
{{input type="password" value=user.password}}
{{input type="password" value=user.password class="password"}}
</li>
<li>
<label>Password (confirm)</label>
{{input type="password" value=passwordConfirm}}
{{input type="password" value=passwordConfirm class="password-verify"}}
</li>
<li>
<button type="submit" class="button-green smaller">
<button type="submit" class="button-green smaller save-user">
Submit
</button>
</li>