From 94511ba170260fa436f78fa236b265b8efac13e4 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Thu, 18 Jun 2015 12:49:26 -0800 Subject: [PATCH] Customize search panel labels --- app/pods/compare/template.hbs | 7 ++++++- app/pods/components/measurement-search-panel/template.hbs | 4 ++-- app/pods/measurements/template.hbs | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/app/pods/compare/template.hbs b/app/pods/compare/template.hbs index 8cf1faa..cd0cebb 100644 --- a/app/pods/compare/template.hbs +++ b/app/pods/compare/template.hbs @@ -1,6 +1,11 @@

{{genus-name}} - Compare Strains

-{{measurement-search-panel search='search'}} +{{ + measurement-search-panel + search='search' + strainLabel='Select one or more strains' + charLabel='Select one or more characteristics' +}} {{#if dataEmpty}}
diff --git a/app/pods/components/measurement-search-panel/template.hbs b/app/pods/components/measurement-search-panel/template.hbs index ae9dc36..0376f8a 100644 --- a/app/pods/components/measurement-search-panel/template.hbs +++ b/app/pods/components/measurement-search-panel/template.hbs @@ -10,7 +10,7 @@ content=species value=selectedStrains optionValuePath="id" - placeholder="All strains" + placeholder=strainLabel }}
  • @@ -21,7 +21,7 @@ content=characteristicTypes value=selectedCharacteristics optionValuePath="id" - placeholder="All characteristics" + placeholder=charLabel }}
  • diff --git a/app/pods/measurements/template.hbs b/app/pods/measurements/template.hbs index 63a47e0..6ddf84e 100644 --- a/app/pods/measurements/template.hbs +++ b/app/pods/measurements/template.hbs @@ -1,6 +1,6 @@

    {{genus-name}} Measurements

    -{{measurement-search-panel search='search'}} +{{measurement-search-panel search='search' strainLabel='All strains' charLabel='All characteristics'}}