From 33b6fe32b37ffa0eb3023f154c3626f5ad1753e3 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Fri, 10 Jul 2015 12:14:05 -0800 Subject: [PATCH] more cleanup --- app/pods/components/forms/species-form/template.hbs | 4 ++-- app/pods/components/forms/strain-form/template.hbs | 2 +- app/pods/protected/strains/index/template.hbs | 2 +- app/pods/protected/strains/show/template.hbs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/pods/components/forms/species-form/template.hbs b/app/pods/components/forms/species-form/template.hbs index 47fcf42..a523838 100644 --- a/app/pods/components/forms/species-form/template.hbs +++ b/app/pods/components/forms/species-form/template.hbs @@ -20,7 +20,7 @@ {{{strain.strainNameMU}}} {{/link-to}} {{/each}} - {{add-button label="Add Strain" link="strains.new"}} + {{add-button label="Add Strain" link="protected.strains.new"}}
@@ -35,7 +35,7 @@ Cancel -{{#if species.isDirty}} +{{#if species.hasDirtyAttributes}} Save diff --git a/app/pods/components/forms/strain-form/template.hbs b/app/pods/components/forms/strain-form/template.hbs index 84bc241..b2f5582 100644 --- a/app/pods/components/forms/strain-form/template.hbs +++ b/app/pods/components/forms/strain-form/template.hbs @@ -54,7 +54,7 @@ Cancel -{{#if strain.isDirty}} +{{#if strain.hasDirtyAttributes}} Save diff --git a/app/pods/protected/strains/index/template.hbs b/app/pods/protected/strains/index/template.hbs index 720e7ad..2d40098 100644 --- a/app/pods/protected/strains/index/template.hbs +++ b/app/pods/protected/strains/index/template.hbs @@ -1,7 +1,7 @@

{{genus-name}} Strains

Total strains: {{model.length}}

-{{add-button label="Add Strain" link="strains.new" canAdd=metaData.canAdd}} +{{add-button label="Add Strain" link="protected.strains.new" canAdd=metaData.canAdd}} diff --git a/app/pods/protected/strains/show/template.hbs b/app/pods/protected/strains/show/template.hbs index d7997ba..1ba5fe6 100644 --- a/app/pods/protected/strains/show/template.hbs +++ b/app/pods/protected/strains/show/template.hbs @@ -83,7 +83,7 @@ {{#if model.canEdit}}
- {{#link-to 'protected.species.edit' model class="button-gray smaller"}} + {{#link-to 'protected.strains.edit' model.id class="button-gray smaller"}} Edit {{/link-to}} {{/if}}