mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 11:16:00 +02:00
Convert HAML to ERB
This commit is contained in:
parent
096035ae11
commit
0d770137b6
2 changed files with 26 additions and 22 deletions
|
@ -1,22 +0,0 @@
|
|||
.row
|
||||
.form-signin.col-md-6.center-block.text-center
|
||||
%h2.form-signin-heading.text-center= t(:log_in)
|
||||
%hr
|
||||
= form_for @depp_user, url: registrar_user_session_path, html: {class: 'form-signin'} do |f|
|
||||
= render 'registrar/shared/errors', object: f.object
|
||||
|
||||
- error_class = f.object.errors.any? ? 'has-error' : ''
|
||||
%div{class: error_class}
|
||||
= f.text_field :tag, class: 'form-control', placeholder: t(:username), required: true
|
||||
= f.password_field :password, class: 'form-control',
|
||||
autocomplete: 'off', placeholder: t(:password), required: true
|
||||
|
||||
%button.btn.btn-lg.btn-primary.btn-block{:type => 'submit'}= t('.login_btn')
|
||||
|
||||
%hr
|
||||
= link_to '/registrar/login/mid', id: 'login-with-mobile-id-btn' do
|
||||
= image_tag 'mid.gif'
|
||||
= link_to '/registrar/id', method: :post do
|
||||
= image_tag 'id_card.gif'
|
||||
|
||||
|
26
app/views/registrar/sessions/new.html.erb
Normal file
26
app/views/registrar/sessions/new.html.erb
Normal file
|
@ -0,0 +1,26 @@
|
|||
<div class="row">
|
||||
<div class="form-signin col-md-6 center-block text-center">
|
||||
<h2 class="form-signin-heading text-center">
|
||||
<%= t(:log_in) %>
|
||||
</h2>
|
||||
<hr/>
|
||||
<%= form_for @depp_user, url: registrar_user_session_path, html: { class: 'form-signin' } do |f| %>
|
||||
<%= render 'registrar/shared/errors', object: f.object %>
|
||||
<% error_class = f.object.errors.any? ? 'has-error' : '' %>
|
||||
<div class="<%= error_class %>">
|
||||
<%= f.text_field :tag, class: 'form-control', placeholder: t(:username), required: true %>
|
||||
<%= f.password_field :password, class: 'form-control', autocomplete: 'off', placeholder: t(:password), required: true %>
|
||||
</div>
|
||||
<button class="btn btn-lg btn-primary btn-block" type="submit">
|
||||
<%= t '.login_btn' %>
|
||||
</button>
|
||||
<% end %>
|
||||
<hr/>
|
||||
<%= link_to '/registrar/login/mid', id: 'login-with-mobile-id-btn' do %>
|
||||
<%= image_tag 'mid.gif' %>
|
||||
<% end %>
|
||||
<%= link_to '/registrar/id', method: :post do %>
|
||||
<%= image_tag 'id_card.gif' %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue