Sha256: c0c15be78baec35313159643e06fb43aec189239a80544472f1373ee38e73564

Contents?: true

Size: 649 Bytes

Versions: 16

Compression:

Stored size: 649 Bytes

Contents

<%
  # headmin/forms/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 "headmin/forms/hidden", form: form, attribute: :id %#>
  #   <% end %#>

  hidden = Headmin::Form::HiddenView.new(local_assigns)
%>

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
headmin-0.6.3 app/views/headmin/forms/_hidden.html.erb
headmin-0.6.2 app/views/headmin/forms/_hidden.html.erb
headmin-0.6.1 app/views/headmin/forms/_hidden.html.erb
headmin-0.6.0 app/views/headmin/forms/_hidden.html.erb
headmin-0.5.9 app/views/headmin/forms/_hidden.html.erb
headmin-0.5.8 app/views/headmin/forms/_hidden.html.erb
headmin-0.5.7 app/views/headmin/forms/_hidden.html.erb
headmin-0.5.6 app/views/headmin/forms/_hidden.html.erb
headmin-0.5.5 app/views/headmin/forms/_hidden.html.erb
headmin-0.5.4 app/views/headmin/forms/_hidden.html.erb
headmin-0.5.3 app/views/headmin/forms/_hidden.html.erb
headmin-0.5.1 app/views/headmin/forms/_hidden.html.erb
headmin-0.5.0 app/views/headmin/forms/_hidden.html.erb
headmin-0.4.2 app/views/headmin/forms/_hidden.html.erb
headmin-0.4.1 app/views/headmin/forms/_hidden.html.erb
headmin-0.4.0 app/views/headmin/forms/_hidden.html.erb