Clean up forms a bit
This commit is contained in:
parent
226a82d57f
commit
1bb5dc67b2
4 changed files with 26 additions and 26 deletions
|
@ -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'}}>
|
||||
<button type="submit" class="button-green smaller">
|
||||
Save
|
||||
</a>
|
||||
</button>
|
||||
{{/if}}
|
||||
</form>
|
||||
|
|
|
@ -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'}}>
|
||||
<button type="submit" class="button-green smaller">
|
||||
Save
|
||||
</a>
|
||||
</button>
|
||||
{{/if}}
|
||||
</form>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Reference in a new issue