diff --git a/app/views/branded/shared/_sign_in_form.html.erb b/app/views/branded/shared/_sign_in_form.html.erb new file mode 100644 index 0000000..61db8c3 --- /dev/null +++ b/app/views/branded/shared/_sign_in_form.html.erb @@ -0,0 +1,36 @@ +<%= form_for resource, as: 'user', url: user_session_path, html: {id: "sign_in_form"} do |f| %> + <% if Rails.application.config.shibboleth_enabled %> +

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

+ <% if session['devise.shibboleth_data'].nil? %> +
+ + <% target = (Rails.application.config.shibboleth_use_filtered_discovery_service ? shibboleth_ds_path : user_shibboleth_omniauth_authorize_path) %> + + +
+ <% else %> + <%= f.hidden_field :shibboleth_id, :value => session['devise.shibboleth_data']['uid'] %> + <% end %> +
+ <% end %> + +

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

+
+ <%= f.label(:email, _('Email'), class: 'control-label') %> + <%= f.email_field(:email, class: 'form-control', "aria-required": true, id: nil) %> +
+
+ <%= f.label(:password, _('Password'), class: 'control-label') %> + <%= f.password_field(:password, class: 'form-control', "aria-required": true, id: nil) %> +
+
+ <%= link_to _('Forgot password?'), new_password_path('user') %> +
+
+ <%= label_tag 'remember_email', raw("#{check_box_tag 'remember_email'}#{_('Remember email')}") %> +
+ <%= f.button(_('Sign in'), class: "btn btn-default", type: "submit") %> + + + +<% end %> diff --git a/lib/assets/stylesheets/dmpopidor.scss b/lib/assets/stylesheets/dmpopidor.scss index 3bf3bbc..9dc7087 100644 --- a/lib/assets/stylesheets/dmpopidor.scss +++ b/lib/assets/stylesheets/dmpopidor.scss @@ -477,4 +477,13 @@ font-style: italic; line-height: 1.5em; padding-bottom: 4px; +} + +.institution-login i { + display: inline-block; + padding-left: 5px; + transform: scaleX(-1); + -webkit-transform:scaleX(-1); + -moz-transform:scaleX(-1); + -o-transform:scaleX(-1); } \ No newline at end of file