Sha256: 306a71e06714bf0a32a63a1da7f9a561b780c033896240df017665a3d0a9cb86

Contents?: true

Size: 1.08 KB

Versions: 7

Compression:

Stored size: 1.08 KB

Contents

<!-- Header Search Start -->
<header class="container mb-4">
  <div class="row">
    <div class="col col-sm-3">
      <select id="form-search-model-name" class="form-select" aria-label="Model select" onchange="document.location.href=this.value" required>
        <option value="">Choose event source model</option>
        <% event_class_names.each do |klass| %>
          <% is_active = klass === @model_name ? 'selected' : '' %>
          <option value="<%= model_path(klass) %>" <%= is_active %>><%= klass %></option>
        <% end %>
      </select>
    </div>

    <% if @model_name %>
      <div class="col col-sm-7">
        <%= form_with url: model_entity_path(@model_name, ''), id: 'model-search' do |f| %>
          <%= f.search_field :event_id, class: 'form-control', placeholder: 'Canonical identifier', value: @aggregate_id, required: true, aria: { label: 'Entity canonical identifier' }  %>
        </div>
        <div class="col col-sm-2">
          <%= f.submit 'Search', class: 'btn btn-primary' %>
        <% end %>
      </div>
    <% end %>
  </div>
</header>
<!-- Header Search End -->

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
eventsimple-1.2.1 app/views/eventsimple/shared/_header.html.erb
eventsimple-1.2.0 app/views/eventsimple/shared/_header.html.erb
eventsimple-1.1.3 app/views/eventsimple/shared/_header.html.erb
eventsimple-1.1.2 app/views/eventsimple/shared/_header.html.erb
eventsimple-1.1.1 app/views/eventsimple/shared/_header.html.erb
eventsimple-1.1.0 app/views/eventsimple/shared/_header.html.erb
eventsimple-1.0.0 app/views/eventsimple/shared/_header.html.erb