Sha256: 1075e9e8809aa1c02b90be19d0010556c9137cf8c942b6431f61b2e92f56ed5f

Contents?: true

Size: 691 Bytes

Versions: 22

Compression:

Stored size: 691 Bytes

Contents

<%
  options ||= []
  id ||= false
  label ||= false
  full_width ||= false

  select_helper = GovukPublishingComponents::Presenters::SelectHelper.new(options)
  data_module = "data-module=track-select-change" unless select_helper.data_tracking?.eql?(false)
%>
<% if options.any? && id && label %>
  <div class="govuk-form-group gem-c-select">
    <label class="govuk-label" for="<%= id %>">
      <%= label %>
    </label>
    <select class="govuk-select <%= 'gem-c-select__select--full-width' if full_width %>" id="<%= id %>" name="<%= id %>" <%= data_module %> >
      <%= options_for_select(select_helper.option_markup, select_helper.selected_option) %>
    </select>
  </div>
<% end %>

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
govuk_publishing_components-21.0.0 app/views/govuk_publishing_components/components/_select.html.erb
govuk_publishing_components-20.5.2 app/views/govuk_publishing_components/components/_select.html.erb
govuk_publishing_components-20.5.1 app/views/govuk_publishing_components/components/_select.html.erb
govuk_publishing_components-20.5.0 app/views/govuk_publishing_components/components/_select.html.erb
govuk_publishing_components-20.4.0 app/views/govuk_publishing_components/components/_select.html.erb
govuk_publishing_components-20.3.0 app/views/govuk_publishing_components/components/_select.html.erb
govuk_publishing_components-20.2.2 app/views/govuk_publishing_components/components/_select.html.erb
govuk_publishing_components-20.2.1 app/views/govuk_publishing_components/components/_select.html.erb
govuk_publishing_components-20.2.0 app/views/govuk_publishing_components/components/_select.html.erb
govuk_publishing_components-20.1.0 app/views/govuk_publishing_components/components/_select.html.erb
govuk_publishing_components-20.0.0 app/views/govuk_publishing_components/components/_select.html.erb
govuk_publishing_components-19.0.0 app/views/govuk_publishing_components/components/_select.html.erb
govuk_publishing_components-18.3.1 app/views/govuk_publishing_components/components/_select.html.erb
govuk_publishing_components-18.3.0 app/views/govuk_publishing_components/components/_select.html.erb
govuk_publishing_components-18.2.0 app/views/govuk_publishing_components/components/_select.html.erb
govuk_publishing_components-18.1.2 app/views/govuk_publishing_components/components/_select.html.erb
govuk_publishing_components-18.1.1 app/views/govuk_publishing_components/components/_select.html.erb
govuk_publishing_components-18.1.0 app/views/govuk_publishing_components/components/_select.html.erb
govuk_publishing_components-18.0.1 app/views/govuk_publishing_components/components/_select.html.erb
govuk_publishing_components-18.0.0 app/views/govuk_publishing_components/components/_select.html.erb