From cfefc4d3cc86d98e0e42936a05cab154de4bb358 Mon Sep 17 00:00:00 2001 From: adam malantonio Date: Fri, 11 Oct 2019 11:05:17 -0400 Subject: [PATCH] update labels for advanced-search form --- .../advanced/_advanced_search_fields.html.erb | 8 ++++++++ app/views/advanced/index.html.erb | 17 +++++++++++++++++ config/locales/spot.en.yml | 3 +++ 3 files changed, 28 insertions(+) create mode 100644 app/views/advanced/_advanced_search_fields.html.erb create mode 100644 app/views/advanced/index.html.erb diff --git a/app/views/advanced/_advanced_search_fields.html.erb b/app/views/advanced/_advanced_search_fields.html.erb new file mode 100644 index 000000000..969b2b66c --- /dev/null +++ b/app/views/advanced/_advanced_search_fields.html.erb @@ -0,0 +1,8 @@ +<%- search_fields_for_advanced_search.each do |key, field_def| -%> +
+ <%= label_tag key, label_for_search_field(key), class: "col-sm-3 control-label" %> +
+ <%= text_field_tag key, label_tag_default_for(key), class: "form-control" %> +
+
+<%- end -%> diff --git a/app/views/advanced/index.html.erb b/app/views/advanced/index.html.erb new file mode 100644 index 000000000..e00cc8856 --- /dev/null +++ b/app/views/advanced/index.html.erb @@ -0,0 +1,17 @@ +<% content_for(:page_title) { t('spot.advanced_search.page_title', name: application_name) } %> + +
+

+ <%= t('blacklight_advanced_search.form.title') %> + <%= link_to t('blacklight_advanced_search.form.start_over'), blacklight_advanced_search_engine.advanced_search_path, :class =>"btn btn-secondary pull-right advanced-search-start-over" %> +

+ +
+
+ <%= render 'advanced_search_form' %> +
+
+ <%= render "advanced_search_help" %> +
+
+
diff --git a/config/locales/spot.en.yml b/config/locales/spot.en.yml index 680997a99..b9727b00e 100644 --- a/config/locales/spot.en.yml +++ b/config/locales/spot.en.yml @@ -12,6 +12,9 @@ en: log_in: Log in + advanced_search: + page_title: 'Advanced Search // %{name}' + catalog: index: page_title: 'Search Results // %{name}'