summaryrefslogtreecommitdiff
path: root/users/app/views/sessions/new.html.haml
blob: 20705b98bb1b796d19ec5ae3373ce29adf2bc328 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.span8.offset2
  %noscript.alert.alert-error=t :js_required
  #cookie_warning.alert.alert-error{:display => 'none'}
    =t :cookie_disabled_warning
  :javascript
    document.cookie = "testing=cookies_enabled; path=/";
    if(document.cookie.indexOf("testing=cookies_enabled") < 0)
    {
      document.getElementById('cookie_warning').style.display = 'block';
    } else {
      document.getElementById('cookie_warning').style.display = 'none';
    }
  %h2=t :login
  = simple_form_for @session, :validate => true, :html => { :id => :new_session, :class => 'form-horizontal' } do |f|
    %legend=t :login_message
    = f.input :login, :input_html => { :id => :srp_username }
    = f.input :password, :required => true, :input_html => { :id => :srp_password }
    = f.button :submit, :value => t(:login), :class => 'btn-primary'
    = link_to t(:cancel), root_url, :class => :btn