Sha256: 3ea7ff5cdc46a8ad1cf18775450e7e1fc994fd6dac1703dfb5a9bdfc3cb2c849

Contents?: true

Size: 1.8 KB

Versions: 10

Compression:

Stored size: 1.8 KB

Contents

- @reader_session ||= ReaderSession.new
- no_title ||= false
- purpose ||= false

.login_form
  - cssclass = "compact friendly"
  - cssclass << " inline" if @inline
  - form_for @reader_session, :url => reader_session_path, :html => {:class => cssclass} do |f|
    %input{:type => :hidden, :name => :authentication_type, :value => :session}
    
    - unless no_title
      %h2
        - if purpose
          = purpose + ','
          = t('reader_extension.please')
        - else
          = t('reader_extension.please').titlecase
        = t('reader_extension.log_in')
        - if Radiant::Config['reader.allow_registration?']
          = t('reader_extension.or')
          = link_to t('reader_extension.register'), new_reader_url

    - if @error
      %p.haserror
        = t('reader_extension.login_unknown')
        %br
        = link_to t('reader_extension.forgotten_password'), new_password_reset_url

    %p{ :class => @reader_session.errors.on(:login) ? 'haserror' : '' }
      %label{:for => "reader_session_login"}
        = t('reader_extension.login_or_email')
      %br
      = f.text_field :login, :class => 'login' 
        
    %p{ :class => @reader_session.errors.on(:password) ? 'haserror' : '' }
      %label{:for => "reader_session_password"}
        = t('reader_extension.password').titlecase
      %br
      = f.password_field :password, :class => 'login'

    %p.buttons
      = f.submit ' Log in '
      = f.check_box :remember_me
      %label.paranthetical{:for => "reader_session_remember_me"}
        = t('reader_extension.remember_me')

  %ul
    - if Radiant::Config['reader.allow_registration?']
      %li
        = link_to "registration".titlecase, new_reader_url
        = t('reader_extension.is_free_and_quick')
    %li
      = link_to t("reader_extension.forgotten_password"), new_password_reset_url
      

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
radiant-reader-extension-3.0.7 app/views/reader_sessions/_login_form.html.haml
radiant-reader-extension-3.0.5 app/views/reader_sessions/_login_form.html.haml
radiant-reader-extension-3.0.4 app/views/reader_sessions/_login_form.html.haml
radiant-reader-extension-3.0.3 app/views/reader_sessions/_login_form.html.haml
radiant-reader-extension-3.0.2 app/views/reader_sessions/_login_form.html.haml
radiant-reader-extension-3.0.1 app/views/reader_sessions/_login_form.html.haml
radiant-reader-extension-3.0.0 app/views/reader_sessions/_login_form.html.haml
radiant-reader-extension-3.0.0.rc4 app/views/reader_sessions/_login_form.html.haml
radiant-reader-extension-3.0.0.rc3 app/views/reader_sessions/_login_form.html.haml
radiant-reader-extension-2.0.0.rc4 app/views/reader_sessions/_login_form.html.haml