Sha256: 2abfa53fe6b1c16b7a791fe1f295030950965df4c283a79dbc8e7fea58989f8e

Contents?: true

Size: 291 Bytes

Versions: 24

Compression:

Stored size: 291 Bytes

Contents

<% if form_required? %>
  <%= form_with(url: @action, method: @http_method, **@form_arguments) do %>
    <% if render_input? %>
      <%= render(Primer::BaseComponent.new(tag: :input, **@input_arguments)) %>
    <% end %>
    <%= content %>
  <% end %>
<% else %>
  <%= content %>
<% end %>

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
primer_view_components-0.2.0 app/components/primer/alpha/action_list/form_wrapper.html.erb
primer_view_components-0.1.9 app/components/primer/alpha/action_list/form_wrapper.html.erb
primer_view_components-0.1.8 app/components/primer/alpha/action_list/form_wrapper.html.erb
primer_view_components-0.1.7 app/components/primer/alpha/action_list/form_wrapper.html.erb