Skip to content

Commit

Permalink
added localization for login page
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegPhenomenon committed Oct 2, 2023
1 parent 4c0efc2 commit 9eb59e9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions app/views/devise/sessions/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<%= component 'common/hero', title: 'Sisene' %>
<%= component 'common/hero', title: t(:sign_in) %>
<!-- Login -->
<div class="o-container">
<div class="c-block c-login">
<div class="o-grid o-grid--two-col o-grid--sep">
<div class="c-login--wrapper">
<h2 class="c-login__title u-h3">Logi sisse isikut tõendava dokumendiga</h2>
<h2 class="c-login__title u-h3"><%= t('.sign_in_with_identity_document') %></h2>
<p class="c-login__explanation">
Sisene kasutades Eesti (sh e-residendi) ID kaarti, Mobiil-IDd, pangalinki või EU liikmeriikide elektroonset isikutunnistust (EIDAS)
<%= t('.identity_document_text')%>
</p>
<div class="c-login__buttons-wrapper u-flex u-content-sp u-content-center">
<a class="c-login__button c-btn c-btn--blue-secondary" href="#" title="Sisene">Sisene</a>
<a class="c-login__button c-btn c-btn--blue-secondary" href="#" title="Sisene"><%= t(:sign_in) %></a>
<div class="c-login__icons u-flex u-content-sp u-content-center">
<%= render partial: 'svg/id_auth' %>
</div>
</div>
</div>
<div class="c-login--wrapper">
<h2 class="c-login__title u-h3">Logi sisse salasõnaga</h2>
<h2 class="c-login__title u-h3"><%= t('.sign_in_with_password') %></h2>
<%= form_for(resource, as: resource_name, url: session_path(resource_name), html: { class: 'c-login__form' }) do |f| %>
<div class="c-login__input">
<%= f.label :email, t('users.email') %>
Expand All @@ -33,19 +33,19 @@
</div>
<% if devise_mapping.rememberable? -%>
<label class="o-checkbox-container c-login__checkbox-container">
<span class="o-checkbox-text">Mäleta mind</span>
<span class="o-checkbox-text"><%= t('users.remember_me') %></span>
<%= f.check_box :remember_me, class: 'o-checkbox-sample' %>
<span class="o-checkmark-sample"></span>
</label>
<% end -%>
</div>
<div class="c-login__links u-flex u-align-center u-content-sp">
<%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %>
<%= link_to t('.forgot_your_password'), new_password_path(resource_name), class: 'c-login__remind-link' %><br />
<%= link_to t('devise.shared.links.forgot_your_password'), new_password_path(resource_name), class: 'c-login__remind-link' %><br />
<% end -%>

<%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
<%= link_to t('.didnt_receive_confirmation_instructions'), new_confirmation_path(resource_name), class: 'c-login__remind-link' %><br />
<%= link_to t('devise.shared.links.didnt_receive_confirmation_instructions'), new_confirmation_path(resource_name), class: 'c-login__remind-link' %><br />
<% end -%>
</div>
<% end %>
Expand Down

0 comments on commit 9eb59e9

Please sign in to comment.