Sha256: bea8dddca621df03d52f03013811e0302d5f696a41ae068ee69e9a25e291a120

Contents?: true

Size: 688 Bytes

Versions: 13

Compression:

Stored size: 688 Bytes

Contents

<%
  # name: headmin/forms/label
  #
  # ==== Required parameters
  # * +form+ - Form object
  # * +attribute+ - Name of the attribute of the form model
  #
  # ==== Optional parameters
  # * +text+ - Custom label to be used instead of the attribute
  #
  # ==== References
  # https://headmin.dev/docs/forms/label
  # https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label
  # https://apidock.com/rails/ActionView/Helpers/FormHelper/label
  #
  # ==== Examples
  #   Basic version
  #   <%= render "headmin/forms/label", form: form, attribute: :image %#>
%>

<% label = Headmin::Form::LabelView.new(local_assigns) %>
<%= form.label label.attribute, label.text, label.options %>

Version data entries

13 entries across 13 versions & 1 rubygems

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