Sha256: c022d2b96ff0420d741789581e97689e5ec9fc025999e0b14bd848b974d5d017

Contents?: true

Size: 805 Bytes

Versions: 17

Compression:

Stored size: 805 Bytes

Contents

<%
  id ||= nil
  title ||= nil
  content ||= nil
  data_attributes ||= {}
  data_attributes[:module] = "contextual-guidance"
%>

<%= tag.div class: "gem-c-contextual-guidance", id: id, data: data_attributes do %>
  <%= tag.div class: "govuk-grid-row" do %>
    <%= tag.div class: "govuk-grid-column-two-thirds" do %>
      <%= tag.div class: "gem-c-contextual-guidance__input-field" do %>
        <%= yield %>
      <% end %>
    <% end %>
    <%= tag.div class: "govuk-grid-column-one-third" do %>
      <%= tag.div class: "gem-c-contextual-guidance__wrapper", for: html_for do %>
        <%= tag.div class: "gem-c-contextual-guidance__guidance" do %>
          <%= tag.h2 title, class: "govuk-heading-s" %>
          <%= content %>
        <% end %>
      <% end %>
    <% end %>
  <% end %>
<% end %>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
govuk_publishing_components-21.14.0 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-21.13.5 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-21.13.4 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-21.13.3 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-21.13.2 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-21.13.1 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-21.13.0 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-21.12.0 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-21.11.0 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-21.10.0 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-21.9.0 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-21.8.1 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-21.8.0 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-21.7.0 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-21.6.1 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-21.6.0 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb
govuk_publishing_components-21.5.0 app/views/govuk_publishing_components/components/_contextual_guidance.html.erb