Sha256: 3e0a9244ecf13895c432e6951c4bf1a700e1385404b419836bb7e484ce2530de
Contents?: true
Size: 1.72 KB
Versions: 1
Compression:
Stored size: 1.72 KB
Contents
<% # headmin/forms/password # # ==== Required parameters # * +attribute+ - Name of the attribute of the form model # * +form+ - Form object # # ==== Optional parameters # * +append+ - Display as input group with text on the right-hand side # * +float+ - Use floating labels. Defaults to false # * +hint+ - Informative text to assist with data input. HTML markup is allowed. # * +label+ - Text to display inside label tag. Defaults to the attribute name. Set to false if you don"t want to show a label. # * +plaintext+ - Render input as plain text. # * +prepend+ - Display as input group with text on the left-hand side # * +wrapper+ - Hash with all options for the surrounding html tag # # ==== References # https://headmin.dev/docs/forms/password # https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/password # https://apidock.com/rails/ActionView/Helpers/FormHelper/password_field # # ==== Examples # Basic version # <%= form_with do |form| %#> # <%= render 'headmin/forms/password', form: form, attribute: :password %#> # <% end %#> password = Headmin::Form::PasswordView.new(local_assigns) %> <%= render 'headmin/forms/wrapper', password.wrapper_options do %> <%= render 'headmin/forms/label', password.label_options if password.prepend_label? %> <%= render 'headmin/forms/input_group', password.input_group_options do %> <%= form.password_field(password.attribute, password.input_options) %> <% end %> <%= render 'headmin/forms/validation', password.validation_options if password.validate? %> <%= render 'headmin/forms/hint', password.hint_options if password.hint? %> <%= render 'headmin/forms/label', password.label_options if password.append_label? %> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
headmin-0.5.2 | app/views/headmin/forms/_password.html.erb |