diff --git a/app/views/devise/passwords/new.html.erb b/app/views/devise/passwords/new.html.erb index f95b651..12ae462 100644 --- a/app/views/devise/passwords/new.html.erb +++ b/app/views/devise/passwords/new.html.erb @@ -1,26 +1,29 @@ +<% javascript "devise/passwords/new.js" %> + +<% unless @user.errors[:email].nil? %> +

<%= _('The email address you entered is not registered.') %>

+<% end %> +

<%= t('helpers.forgot_password') %>

-
- <%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post }) do |f| %> - <%= devise_error_messages! %> -
- - - - - -
<%= t("helpers.email") %> -

<%= t("helpers.send_password_info")%>

- -
<%= f.email_field :email, :autofocus => true , :style => "width:95%;" %>
- - -
-
- <%= f.submit t("helpers.send"), :class => "btn btn-primary", :id => "send_btn" %> -
- <% end %> +

<%= _('Please enter your email below and we will send you instructions on how to reset your password.') %>

-<%= render "devise/shared/links" %> - -
+
+ <%= form_for resource, as: 'user', url: user_password_path, html: {class: "password-reset roadmap-form", method: :post} do |f| %> + +
+ <%= render partial: 'shared/accessible_input', + locals: {type: 'email', id: 'user_email', name: 'user[email]', label: _("Email"), + classes: 'required', val: @user.email} %> + +
+ <%= render partial: 'shared/accessible_submit_button', + locals: {id: 'password-reset-button', + val: _('Send'), + disabled_initially: true, + classes: 'small-input-button', + tooltip: _('Enter a valid email.')} %> +
+ <% end %> +
+ diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index d1d3284..031ccee 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -1,4 +1,4 @@ -<%= javascript 'registrations/sign_in_sign_up.js' %> +<%= javascript 'home/index.js' %>

<%= _('Welcome.')%>

diff --git a/app/views/layouts/_signin_signout.html.erb b/app/views/layouts/_signin_signout.html.erb index 8d36ff7..8533b06 100644 --- a/app/views/layouts/_signin_signout.html.erb +++ b/app/views/layouts/_signin_signout.html.erb @@ -22,7 +22,13 @@
  • <%= link_to _("Admin area"), admin_index_users_path, class: "signIn_dropdown_link" %>
  • <% end %> <% end %> -
  • <%= link_to _('Sign out'), destroy_user_session_path, method: :delete, class: "signIn_dropdown_link" %>
  • +
  • + <% if Rails.application.config.shibboleth_enabled %> + <%= link_to _('Sign out'), destroy_user_session_path, method: :delete, class: "signIn_dropdown_link" %> + <% else %> + <%= link_to _('Sign out'), destroy_user_session_path, method: :delete, class: "signIn_dropdown_link" %> + <% end %> +
  • <% else %> diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 483511b..78dc349 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -65,10 +65,10 @@
    - <% if notice %> + <% if notice || flash[:notice] %>

    <%= raw notice %>

    <% end %> - <% if alert %> + <% if alert || flash[:alert] || flash[:error] %>

    <%= raw alert %>

    <% end %> diff --git a/app/views/shared/_accessible_input.html.erb b/app/views/shared/_accessible_input.html.erb index 09a4ebc..f0fe0d8 100644 --- a/app/views/shared/_accessible_input.html.erb +++ b/app/views/shared/_accessible_input.html.erb @@ -28,7 +28,6 @@ <% if !tooltip.blank? %>
    -
    <%= tooltip %>