diff --git a/app/models/strain.js b/app/models/strain.js index 1c05651..3f761ba 100644 --- a/app/models/strain.js +++ b/app/models/strain.js @@ -5,7 +5,7 @@ export default DS.Model.extend({ measurements: DS.hasMany('measurements', { async: true }), speciesName: DS.attr('string'), strainName: DS.attr('string'), - strainType: DS.attr('string'), + typeStrain: DS.attr('boolean'), etymology: DS.attr('string'), accessionBanks: DS.attr('string'), genbankEmblDdb: DS.attr('string'), diff --git a/app/templates/strains/show.hbs b/app/templates/strains/show.hbs index 4a06500..3cd72b2 100644 --- a/app/templates/strains/show.hbs +++ b/app/templates/strains/show.hbs @@ -9,8 +9,8 @@
{{model.speciesName}}
-
Type
-
{{model.strainType}}
+
Type Strain?
+
{{if model.typeStrain 'Yes' 'No'}}
{{! ROW 2 }} diff --git a/server/mocks/strains.js b/server/mocks/strains.js index d21f525..35bd357 100644 --- a/server/mocks/strains.js +++ b/server/mocks/strains.js @@ -7,7 +7,7 @@ module.exports = function(app) { id: 1, speciesName: "Species One", strainName: "ABC", - strainType: "Test Type", + typeStrain: true, etymology: "Test Etymology", accessionBanks: "Test Accession", genbankEmblDdb: "Test Genbank", @@ -22,7 +22,7 @@ module.exports = function(app) { id: 2, speciesName: "Species Two", strainName: "XYZ", - strainType: "Test Type", + typeStrain: false, etymology: "Test Etymology", accessionBanks: "Test Accession", genbankEmblDdb: "Test Genbank", @@ -37,7 +37,7 @@ module.exports = function(app) { id: 3, speciesName: "Species Three", strainName: "QRS", - strainType: "Test Type", + typeStrain: true, etymology: "Test Etymology", accessionBanks: "Test Accession", genbankEmblDdb: "Test Genbank", @@ -52,7 +52,7 @@ module.exports = function(app) { id: 4, speciesName: "Species Four", strainName: "LMN", - strainType: "Test Type", + typeStrain: true, etymology: "Test Etymology", accessionBanks: "Test Accession", genbankEmblDdb: "Test Genbank",