Clean up forms a bit

This commit is contained in:
Matthew Dillon 2015-07-16 21:23:35 -08:00
parent 226a82d57f
commit 1bb5dc67b2
4 changed files with 26 additions and 26 deletions

View file

@ -1,4 +1,4 @@
<form class="grid-form">
<form class="grid-form" {{action 'save' on='submit'}}>
<fieldset>
<legend><em>{{species.speciesName}}</em></legend>
<div data-row-span="2">
@ -30,13 +30,13 @@
</div>
</div>
</fieldset>
</form>
<br>
<a class="button-red smaller" {{action 'cancel'}}>
Cancel
</a>
{{#if species.hasDirtyAttributes}}
<a class="button-green smaller" {{action 'save'}}>
Save
<br>
<a class="button-red smaller" {{action 'cancel'}}>
Cancel
</a>
{{/if}}
{{#if species.hasDirtyAttributes}}
<button type="submit" class="button-green smaller">
Save
</button>
{{/if}}
</form>

View file

@ -1,4 +1,4 @@
<form class="grid-form">
<form class="grid-form" {{action 'save' on='submit'}}>
<fieldset>
<legend><em>{{strain.strainName}}</em></legend>
<div data-row-span="2">
@ -49,13 +49,13 @@
</div>
</div>
</fieldset>
</form>
<br>
<a class="button-red smaller" {{action 'cancel'}}>
Cancel
</a>
{{#if strain.hasDirtyAttributes}}
<a class="button-green smaller" {{action 'save'}}>
Save
<br>
<a class="button-red smaller" {{action 'cancel'}}>
Cancel
</a>
{{/if}}
{{#if strain.hasDirtyAttributes}}
<button type="submit" class="button-green smaller">
Save
</button>
{{/if}}
</form>

View file

@ -2,7 +2,7 @@
<div class="span-1">
<fieldset>
<form>
<form {{action 'search' on='submit'}}>
<ul>
<li>
<label>Strains</label>
@ -29,9 +29,9 @@
}}
</li>
<li>
<a class="action button-gray smaller right" {{action 'search'}}>
<button type="submit" class="action button-gray smaller right">
Search
</a>
</button>
</li>
</ul>
</form>

View file

@ -1,7 +1,7 @@
<div class="span-1">
<fieldset>
<legend>New User Signup</legend>
<form>
<form {{action 'save' on='submit'}}>
<ul>
<li>
<label>Name</label>
@ -20,9 +20,9 @@
{{input type="password" value=passwordConfirm}}
</li>
<li>
<a class="button-green smaller" {{action 'save'}}>
<button type="submit" class="button-green smaller">
Submit
</a>
</button>
</li>
</ul>
</form>