Sha256: fb8041c6061d06f1d7e0ea5706dfb29451a4e20816eff09f5cb76e4e75d680b5

Contents?: true

Size: 637 Bytes

Versions: 16

Compression:

Stored size: 637 Bytes

Contents

<%
  # formstrap/hidden
  #
  # ==== Required parameters
  # * +attribute+ - Name of the attribute of the form model
  # * +form+ - Form object
  #
  # ==== References
  # https://headmin.dev/docs/forms/hidden
  # https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/hidden
  # https://apidock.com/rails/ActionView/Helpers/FormHelper/hidden_field
  #
  # ==== Examples
  #   Basic version
  #   <%= form_with do |form| %#>
  #     <%= render "formstrap/hidden", form: form, attribute: :id %#>
  #   <% end %#>

  hidden = Formstrap::HiddenView.new(local_assigns)
%>

<%= form.hidden_field(attribute, hidden.input_options) %>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
formstrap-0.4.5 app/views/formstrap/_hidden.html.erb
formstrap-0.4.4 app/views/formstrap/_hidden.html.erb
formstrap-0.4.3 app/views/formstrap/_hidden.html.erb
formstrap-0.4.2 app/views/formstrap/_hidden.html.erb
formstrap-0.3.5 app/views/formstrap/_hidden.html.erb
formstrap-0.3.4 app/views/formstrap/_hidden.html.erb
formstrap-0.3.3 app/views/formstrap/_hidden.html.erb
formstrap-0.3.2 app/views/formstrap/_hidden.html.erb
formstrap-0.3.1 app/views/formstrap/_hidden.html.erb
formstrap-0.3.0 app/views/formstrap/_hidden.html.erb
formstrap-0.2.1 app/views/formstrap/_hidden.html.erb
formstrap-0.2.0 app/views/formstrap/_hidden.html.erb
formstrap-0.1.3 app/views/formstrap/_hidden.html.erb
formstrap-0.1.2 app/views/formstrap/_hidden.html.erb
formstrap-0.1.1 app/views/formstrap/_hidden.html.erb
formstrap-0.1.0 app/views/formstrap/_hidden.html.erb