Sha256: cc26c0e9fb0716e697680acdc59cef11048c54b96224336e408100dc48f860b6
Contents?: true
Size: 529 Bytes
Versions: 121
Compression:
Stored size: 529 Bytes
Contents
<% add_gem_component_stylesheet("error-message") id ||= "error-message-#{SecureRandom.hex(4)}" classes ||= '' css_classes = %w( gem-c-error-message govuk-error-message ) css_classes << classes if classes items ||= [] right_to_left ||= false if items.any? errors = items.map { |item| capture { item[:text] } } text = raw(errors.join("<br />")) end %> <%= tag.p id: id, class: css_classes, dir: right_to_left ? "rtl" : nil do %> <span class="govuk-visually-hidden">Error:</span> <%= text %> <% end %>
Version data entries
121 entries across 121 versions & 1 rubygems