Sha256: 47a827fa3ced8e43c4304a5d916f31af7ab47c5883cf8dddb832287385a141ef
Contents?: true
Size: 819 Bytes
Versions: 17
Compression:
Stored size: 819 Bytes
Contents
<% if @input.form_control? %> <%= content_tag(@tag, **@form_group_arguments) do %> <% if @input.label %> <%= builder.label(@input.name, **@input.label_arguments) do %> <%= @input.label %> <% if @input.required? %> <span aria-hidden="true">*</span> <% end %> <% end %> <% end %> <%= content %> <%= content_tag(:div, **@input.validation_arguments) do %> <span class="FormControl-inlineValidation--visual"><%= render(Primer::Beta::Octicon.new(icon: :"alert-fill", size: :xsmall, aria: { hidden: true })) %></span> <%= content_tag(:span, @input.invalid? ? @input.validation_messages.first : "", **@input.validation_message_arguments) %> <% end %> <%= render(Caption.new(input: @input)) %> <% end %> <% else %> <%= content %> <% end %>
Version data entries
17 entries across 17 versions & 2 rubygems