Sha256: b9c030fb594b5cc6ae9bba530df894b337bcd1152aab0ae3a3b9f8954080242e

Contents?: true

Size: 676 Bytes

Versions: 16

Compression:

Stored size: 676 Bytes

Contents

<%
  # name: formstrap/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 "formstrap/label", form: form, attribute: :image %#>
%>

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

Version data entries

16 entries across 16 versions & 1 rubygems

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