diff --git a/app/views/additionals/_h2_with_query_search.html.slim b/app/views/additionals/_h2_with_query_search.html.slim index b905b928..f54424fe 100644 --- a/app/views/additionals/_h2_with_query_search.html.slim +++ b/app/views/additionals/_h2_with_query_search.html.slim @@ -1,5 +1,7 @@ = render(partial: 'additionals/live_search_ajax_call.js', layout: false, formats: [:js]) -h2.title +- unless defined? classes + - classes = 'title' +h2 class="#{classes}" = @query.new_record? ? l(title) : h(@query.name) span.additionals-live-search = text_field_tag(:search, q, autocomplete: 'off', class: 'live-search-field', placeholder: l(placeholder))