Skip to content

Commit

Permalink
update labels for advanced-search form
Browse files Browse the repository at this point in the history
  • Loading branch information
rococodogs committed Oct 11, 2019
1 parent 7c60014 commit cfefc4d
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/views/advanced/_advanced_search_fields.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<%- search_fields_for_advanced_search.each do |key, field_def| -%>
<div class="form-group advanced-search-field">
<%= label_tag key, label_for_search_field(key), class: "col-sm-3 control-label" %>
<div class="col-sm-9">
<%= text_field_tag key, label_tag_default_for(key), class: "form-control" %>
</div>
</div>
<%- end -%>
17 changes: 17 additions & 0 deletions app/views/advanced/index.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<% content_for(:page_title) { t('spot.advanced_search.page_title', name: application_name) } %>

<div class="advanced-search-form col-sm-12">
<h1 class="advanced page-header">
<%= 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" %>
</h1>

<div class="row">
<div class="col-md-8">
<%= render 'advanced_search_form' %>
</div>
<div class="col-md-4">
<%= render "advanced_search_help" %>
</div>
</div>
</div>
3 changes: 3 additions & 0 deletions config/locales/spot.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ en:

log_in: Log in

advanced_search:
page_title: 'Advanced Search // %{name}'

catalog:
index:
page_title: 'Search Results // %{name}'
Expand Down

0 comments on commit cfefc4d

Please sign in to comment.