Module: Card::Set::Self::Signin::HtmlFormat
- Extended by:
- AbstractFormat
- Defined in:
- tmpsets/set/mod025-account/self/signin.rb
Instance Method Summary collapse
- #edit_success ⇒ Object
- #edit_view_hidden ⇒ Object
- #reset_password_link ⇒ Object
- #reset_password_voo ⇒ Object
- #signin_button ⇒ Object
- #signin_field(name) ⇒ Object
- #signin_success ⇒ Object
- #signup_link ⇒ Object
Instance Method Details
#edit_success ⇒ Object
177 178 179 |
# File 'tmpsets/set/mod025-account/self/signin.rb', line 177 def edit_success { view: :reset_password_success } end |
#edit_view_hidden ⇒ Object
173 174 175 |
# File 'tmpsets/set/mod025-account/self/signin.rb', line 173 def edit_view_hidden card: { trigger: :send_reset_password_token } end |
#reset_password_link ⇒ Object
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_voo ⇒ Object
140 141 142 143 144 |
# File 'tmpsets/set/mod025-account/self/signin.rb', line 140 def reset_password_voo voo.title ||= card.i18n_signin(:forgot_password) voo.edit_structure = [signin_field(:email)] voo.hide :help end |
#signin_button ⇒ Object
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" text, situation: "primary" end |
#signin_field(name) ⇒ Object
181 182 183 184 185 |
# File 'tmpsets/set/mod025-account/self/signin.rb', line 181 def signin_field name nest_name = "".to_name.trait(name) [nest_name, { title: name.to_s, view: "titled", nest_name: nest_name, skip_perms: true }] end |
#signin_success ⇒ Object
152 153 154 |
# File 'tmpsets/set/mod025-account/self/signin.rb', line 152 def signin_success "REDIRECT: #{Env.interrupted_action || '*previous'}" end |
#signup_link ⇒ Object
161 162 163 164 |
# File 'tmpsets/set/mod025-account/self/signin.rb', line 161 def signup_link text = I18n.t :or_sign_up, scope: "mod.account.set.self.signin" subformat(Card[:account_links]).render! :sign_up, title: text end |