Files
manyfold/app/components/password_input_row.rb
James Smith a1b9804f53 Remove client-side password strength check
Not really needed, and it massively increased the Javascript size
2026-02-06 22:47:30 +00:00

13 lines
367 B
Ruby

class Components::PasswordInputRow < Components::InputRow
def initialize(form:, attribute:, label:, help: nil, options: {})
@field_options = {class: "form-control"}.merge(options)
super
end
def input_group
div class: "input-group" do
raw @form.password_field(@attribute, @field_options) # rubocop:disable Rails/OutputSafety
end
end
end