more cleanup

This commit is contained in:
Matthew Dillon 2015-07-10 12:14:05 -08:00
parent 6bc5ddfeb0
commit 33b6fe32b3
4 changed files with 5 additions and 5 deletions

View file

@ -20,7 +20,7 @@
{{{strain.strainNameMU}}} {{{strain.strainNameMU}}}
{{/link-to}} {{/link-to}}
{{/each}} {{/each}}
{{add-button label="Add Strain" link="strains.new"}} {{add-button label="Add Strain" link="protected.strains.new"}}
</div> </div>
</div> </div>
<div data-row-span="2"> <div data-row-span="2">
@ -35,7 +35,7 @@
<a class="button-red smaller" {{action 'cancel'}}> <a class="button-red smaller" {{action 'cancel'}}>
Cancel Cancel
</a> </a>
{{#if species.isDirty}} {{#if species.hasDirtyAttributes}}
<a class="button-green smaller" {{action 'save'}}> <a class="button-green smaller" {{action 'save'}}>
Save Save
</a> </a>

View file

@ -54,7 +54,7 @@
<a class="button-red smaller" {{action 'cancel'}}> <a class="button-red smaller" {{action 'cancel'}}>
Cancel Cancel
</a> </a>
{{#if strain.isDirty}} {{#if strain.hasDirtyAttributes}}
<a class="button-green smaller" {{action 'save'}}> <a class="button-green smaller" {{action 'save'}}>
Save Save
</a> </a>

View file

@ -1,7 +1,7 @@
<h2>{{genus-name}} Strains</h2> <h2>{{genus-name}} Strains</h2>
<h3>Total strains: {{model.length}}</h3> <h3>Total strains: {{model.length}}</h3>
{{add-button label="Add Strain" link="strains.new" canAdd=metaData.canAdd}} {{add-button label="Add Strain" link="protected.strains.new" canAdd=metaData.canAdd}}
<table class="flakes-table"> <table class="flakes-table">
<thead> <thead>

View file

@ -83,7 +83,7 @@
</div> </div>
{{#if model.canEdit}} {{#if model.canEdit}}
<br> <br>
{{#link-to 'protected.species.edit' model class="button-gray smaller"}} {{#link-to 'protected.strains.edit' model.id class="button-gray smaller"}}
Edit Edit
{{/link-to}} {{/link-to}}
{{/if}} {{/if}}