Sha256: 16daa9a44c3e53bb0e2fa55731cc4f4c2ca1bd3b7a52e25ddf744baa643a74a7
Contents?: true
Size: 1.72 KB
Versions: 16
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
16 entries across 16 versions & 1 rubygems