Support custom classes with h2 title

This commit is contained in:
Alexander Meindl 2018-10-23 08:30:27 +02:00
parent da8ae3e632
commit ee18165a67

View File

@ -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))