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'}}>
|
||||
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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Reference in a new issue