Module: Card::Set::Right::Password::HtmlFormat

Extended by:
AbstractFormat
Defined in:
card/tmpsets/set/mod011-card-mod-account/right/password.rb,
card/tmpsets/set/mod010-card-mod-account/right/password.rb

Instance Method Summary collapse

Instance Method Details

#autocomplete?Boolean

Returns:

  • (Boolean)


54
55
56
57
# File 'card/tmpsets/set/mod011-card-mod-account/right/password.rb', line 54

def autocomplete?
  return "on" if @parent && @parent.card.name == "*signin+*account" # HACK
  "off"
end

#view: coreObject



45
46
47
# File 'card/tmpsets/set/mod011-card-mod-account/right/password.rb', line 45

view :core, wrap: :em do
  render_raw
end

#view: inputObject



49
50
51
52
# File 'card/tmpsets/set/mod011-card-mod-account/right/password.rb', line 49

view :input do
  card.content = ""
  password_field :content, class: "d0-card-content", autocomplete: autocomplete?
end