Sha256: 3c183ad1b0d39c8d8c7a1cb9002c642f0238c384bda5028eda1439bba5cd8c96

Contents?: true

Size: 965 Bytes

Versions: 130

Compression:

Stored size: 965 Bytes

Contents

<%= render(Primer::BaseComponent.new(tag: :div, **@system_arguments)) do %>
  <%= render(Primer::BaseComponent.new(tag: :label, **@label_arguments)) do %>
    <%= @label %>
    <% if required? %>
      <span aria-hidden="true">*</span>
    <% end %>
  <% end %>
  <% if @input_block %>
    <%= view_context.capture { @input_block.call(@input_arguments) } %>
  <% end %>
  <% if @validation_message %>
    <%= render(Primer::BaseComponent.new(tag: :div, **@validation_arguments)) do %>
      <span class="FormControl-inlineValidation--visual"><%= render(Primer::Beta::Octicon.new(icon: :"alert-fill", size: :xsmall, aria: { hidden: true })) %></span>
      <span><%= @validation_message %></span>
    <% end %>
  <% end %>
  <% if @init_caption || caption? %>
    <span class="FormControl-caption" id="<%= @caption_id %>">
      <% if caption? %>
        <%= caption %>
      <% else %>
        <%= @init_caption %>
      <% end %>
    </span>
  <% end %>
<% end %>

Version data entries

130 entries across 130 versions & 2 rubygems

Version Path
openproject-primer_view_components-0.52.4 app/components/primer/alpha/form_control.html.erb
openproject-primer_view_components-0.52.3 app/components/primer/alpha/form_control.html.erb
primer_view_components-0.36.5 app/components/primer/alpha/form_control.html.erb
openproject-primer_view_components-0.52.2 app/components/primer/alpha/form_control.html.erb
primer_view_components-0.36.4 app/components/primer/alpha/form_control.html.erb
openproject-primer_view_components-0.52.1 app/components/primer/alpha/form_control.html.erb
openproject-primer_view_components-0.52.0 app/components/primer/alpha/form_control.html.erb
primer_view_components-0.36.3 app/components/primer/alpha/form_control.html.erb
openproject-primer_view_components-0.51.0 app/components/primer/alpha/form_control.html.erb
primer_view_components-0.36.2 app/components/primer/alpha/form_control.html.erb
openproject-primer_view_components-0.50.1 app/components/primer/alpha/form_control.html.erb
openproject-primer_view_components-0.50.0 app/components/primer/alpha/form_control.html.erb
primer_view_components-0.36.1 app/components/primer/alpha/form_control.html.erb
primer_view_components-0.36.0 app/components/primer/alpha/form_control.html.erb
openproject-primer_view_components-0.49.2 app/components/primer/alpha/form_control.html.erb
primer_view_components-0.35.2 app/components/primer/alpha/form_control.html.erb
openproject-primer_view_components-0.49.1 app/components/primer/alpha/form_control.html.erb
openproject-primer_view_components-0.49.0 app/components/primer/alpha/form_control.html.erb
primer_view_components-0.35.1 app/components/primer/alpha/form_control.html.erb
primer_view_components-0.35.0 app/components/primer/alpha/form_control.html.erb