Support custom classes with h2 title
This commit is contained in:
parent
da8ae3e632
commit
ee18165a67
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user