Sha256: 93648df7ae99caeeddef29b9f6dfd87abac6d2ad59963947c4c7ade952b76314

Contents?: true

Size: 949 Bytes

Versions: 2

Compression:

Stored size: 949 Bytes

Contents

<%= bootstrap_form_tag(url: similar_url, method: :get) do |f| %>
  <div class="p-3 row no-gutters align-items-center bg-white">
    <div class="col-auto">
      <i class="fa fa-search fa-lg"></i>
    </div>
    <div class="col">
      <%= f.text_field :terms, hide_label: true, autofocus: (@terms ? false : true), wrapper_class: 'mb-0',
                       class: 'form-control-lg form-control-borderless border-0', autocomplete: 'off',
                       value: (@terms ? InlineDataHelper.generate_inline_values(@terms) : params[:terms])
      %>
    </div>
    <div class="col-auto">
      <%= f.submit t('txt.views.search_results.submit'), class: 'btn btn-block btn-lg btn-primary p-2' %>
    </div>
  </div>
  <div class="py-3 row">
    <div class="col-auto">
      <%= f.check_box :synonyms_only, label: t('txt.views.similar_terms.synonyms_only'), checked: ['1', 'true'].include?(params[:synonyms_only]) %>
    </div>
  </div>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
iqvoc_similar_terms-2.11.4 app/views/similar_terms/_form.html.erb
iqvoc_similar_terms-2.11.3 app/views/similar_terms/_form.html.erb