mirror of
https://github.com/manyfold3d/manyfold.git
synced 2026-10-21 19:22:18 -05:00
13 lines
367 B
Ruby
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
|