Module: Card::Set::Self::Signin::HtmlFormat

Extended by:
AbstractFormat
Defined in:
tmpsets/set/mod025-account/self/signin.rb

Instance Method Summary collapse

Instance Method Details

#edit_successObject



177
178
179
# File 'tmpsets/set/mod025-account/self/signin.rb', line 177

def edit_success
  { view: :reset_password_success }
end

#edit_view_hiddenObject



173
174
175
# File 'tmpsets/set/mod025-account/self/signin.rb', line 173

def edit_view_hidden
  hidden_tags card: { trigger: :send_reset_password_token }
end


166
167
168
169
170
171
# File 'tmpsets/set/mod025-account/self/signin.rb', line 166

def reset_password_link
  text = I18n.t :reset_password, scope: "mod.account.set.self.signin"
  link = link_to_view :edit, text, path: { slot: { hide: :bridge_link } }
  # FIXME: inline styling
  raw("<div style='float:right'>#{link}</div>")
end

#reset_password_vooObject



140
141
142
143
144
# File 'tmpsets/set/mod025-account/self/signin.rb', line 140

def reset_password_voo
  voo.title ||= card.(:forgot_password)
  voo.edit_structure = [(:email)]
  voo.hide :help
end

#signin_buttonObject



156
157
158
159
# File 'tmpsets/set/mod025-account/self/signin.rb', line 156

def 
  text = I18n.t :sign_in, scope: "mod.account.set.self.signin"
  button_tag text, situation: "primary"
end

#signin_field(name) ⇒ Object



181
182
183
184
185
# File 'tmpsets/set/mod025-account/self/signin.rb', line 181

def  name
  nest_name = "".to_name.trait(name)
  [nest_name, { title: name.to_s, view: "titled",
                nest_name: nest_name, skip_perms: true }]
end

#signin_successObject



152
153
154
# File 'tmpsets/set/mod025-account/self/signin.rb', line 152

def 
  "REDIRECT: #{Env.interrupted_action || '*previous'}"
end


161
162
163
164
# File 'tmpsets/set/mod025-account/self/signin.rb', line 161

def 
  text = I18n.t :or_sign_up, scope: "mod.account.set.self.signin"
  subformat(Card[:account_links]).render! :sign_up, title: text
end