Add Registrant User

This commit is contained in:
Martin Lensment 2015-05-14 18:02:31 +03:00
parent 412ececd9c
commit ca2183817a
8 changed files with 57 additions and 51 deletions

View file

@ -2,15 +2,8 @@
.form-signin.col-md-6.center-block.text-center
%h2.form-signin-heading.text-center= t(:log_in)
%hr
= form_for @depp_user, url: registrant_sessions_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', placeholder: t(:password), required: true
%button.btn.btn-lg.btn-primary.btn-block{:type => 'submit'}= t(:log_in)
= link_to '/registrant/id', method: :post do
= image_tag 'id_card.gif'
%hr
-# = link_to '/regisrant/login/mid' do