Sha256: 4fe4503ea24969e3714912757ea9d2784ad25310e9f23eda5b0c6635d266701c

Contents?: true

Size: 1.82 KB

Versions: 12

Compression:

Stored size: 1.82 KB

Contents

- render :partial => 'readers/standard_parts'

- content_for :form do
  - if @reader
    - form_for @reader, :url => password_reset_path, :method => :put, :html => {:class => 'friendly', :autocomplete => "off"} do |f|

      - if @reader.errors.any?
        %p.errornote
          %strong 
            = t('sorry').titlecase
            = t('form_problem') + '.'

      = hidden_field_tag :id, params[:id]
      = hidden_field_tag :confirmation_code, @reader.perishable_token

      %p
        = f.label :password, t('new_password'), :class => 'required'
        %br
        = f.password_field :password, :class => 'titular'

      %p
        = f.label :password_confirmation, t('confirm_password'), :class => 'required'
        %br
        = f.password_field :password_confirmation, :class => 'titular'
      %p
        = f.submit t('set_new_password')
        
      %p
        = t('password_not_yet_changed', :url => reader_login_url)

  - else 
    - form_tag edit_password_reset_path, :method => 'GET', :class => 'friendly', :autocomplete => "off" do
      = hidden_field_tag :id, params[:id]
      %p
        %label{:for => "confirmation_code"}
          = t('confirmation_code')
        %br
        = text_field_tag 'confirmation_code', '', :class => 'titular'

      %p
        = submit_tag t('continue')
    
    %ul.actions
      %li
        = link_to t("restart_password_change"), new_password_reset_url
      
- content_for :title do
  - if @reader
    = t('change_password')
  - else
    = t('enter_code')

- content_for :introduction do
  - if @reader
    %p
      %strong
        = t('hello').titlecase
        = @reader.name + '!'
      = t('new_password_instructions')
  - else
    %p.errornote
      = t('sorry_reset_not_found')
    

- content_for :breadcrumbs do
  = link_to t('home').titlecase, '/'
  > 
  = t('reset_password')

= yield :form

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
radiant-reader-extension-1.3.13 app/views/password_resets/edit.html.haml
radiant-reader-extension-1.3.12 app/views/password_resets/edit.html.haml
radiant-reader-extension-1.3.11 app/views/password_resets/edit.html.haml
radiant-reader-extension-1.3.10 app/views/password_resets/edit.html.haml
radiant-reader-extension-1.3.9 app/views/password_resets/edit.html.haml
radiant-reader-extension-1.3.8 app/views/password_resets/edit.html.haml
radiant-reader-extension-1.3.7 app/views/password_resets/edit.html.haml
radiant-reader-extension-1.3.6 app/views/password_resets/edit.html.haml
radiant-reader-extension-1.3.4 app/views/password_resets/edit.html.haml
radiant-reader-extension-1.3.3 app/views/password_resets/edit.html.haml
radiant-reader-extension-1.3.1 app/views/password_resets/edit.html.haml
radiant-reader-extension-1.3.0 app/views/password_resets/edit.html.haml