diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-06-05 14:37:01 +0200 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-06-05 14:37:01 +0200 |
commit | 44458f3ca2d142a7d6088d627382f9dab5698f40 (patch) | |
tree | a0a5e0540feac202be2f7d2398001f99bf44842a /app/views/devise | |
parent | 3f59a8f0be101c2405372d05a304540beb1b6d01 (diff) | |
download | gitlab-ce-44458f3ca2d142a7d6088d627382f9dab5698f40.tar.gz |
Add "Remember me" checkbox to LDAP signin form.ldap-remember-me
Diffstat (limited to 'app/views/devise')
-rw-r--r-- | app/views/devise/sessions/_new_ldap.html.haml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/devise/sessions/_new_ldap.html.haml b/app/views/devise/sessions/_new_ldap.html.haml index 812e22373a7..6ec741e4882 100644 --- a/app/views/devise/sessions/_new_ldap.html.haml +++ b/app/views/devise/sessions/_new_ldap.html.haml @@ -1,4 +1,9 @@ = form_tag(user_omniauth_callback_path(server['provider_name']), id: 'new_ldap_user' ) do = text_field_tag :username, nil, {class: "form-control top", placeholder: "#{server['label']} Login", autofocus: "autofocus"} = password_field_tag :password, nil, {class: "form-control bottom", placeholder: "Password"} + - if devise_mapping.rememberable? + .remember-me.checkbox + %label{for: "remember_me"} + = check_box_tag :remember_me, '1', false, id: 'remember_me' + %span Remember me = button_tag "#{server['label']} Sign in", class: "btn-save btn" |