mirror of
https://github.com/internetee/registry.git
synced 2025-05-29 17:10:08 +02:00
Registrar style fixes after style refactor
This commit is contained in:
parent
eeefe294b1
commit
a395a73fa0
4 changed files with 43 additions and 82 deletions
|
@ -1,41 +0,0 @@
|
||||||
.error-tab > a
|
|
||||||
color: #a94442 !important
|
|
||||||
|
|
||||||
.edit-highlight
|
|
||||||
background-color: #E7E7E7
|
|
||||||
|
|
||||||
.navbar-brand
|
|
||||||
line-height: 12px
|
|
||||||
padding-top: 20px
|
|
||||||
padding-bottom: 5px
|
|
||||||
|
|
||||||
.navbar-brand small
|
|
||||||
display: block
|
|
||||||
font-size: 10px
|
|
||||||
|
|
||||||
.footer
|
|
||||||
color: #777
|
|
||||||
padding-top: 15px
|
|
||||||
font-size: 10px
|
|
||||||
|
|
||||||
.nowrap
|
|
||||||
white-space: nowrap
|
|
||||||
|
|
||||||
.form-signin
|
|
||||||
max-width: 330px
|
|
||||||
padding: 15px
|
|
||||||
margin: 0 auto
|
|
||||||
input
|
|
||||||
margin-bottom: 10px
|
|
||||||
|
|
||||||
.form-signin .form-control
|
|
||||||
position: relative
|
|
||||||
height: auto
|
|
||||||
-webkit-box-sizing: border-box
|
|
||||||
-moz-box-sizing: border-box
|
|
||||||
box-sizing: border-box
|
|
||||||
padding: 10px
|
|
||||||
font-size: 16px
|
|
||||||
|
|
||||||
.no-border
|
|
||||||
border: 0 !important
|
|
|
@ -12,6 +12,10 @@ $navbar-default-link-active-color: #333
|
||||||
@import "bootstrap-sprockets"
|
@import "bootstrap-sprockets"
|
||||||
@import "bootstrap"
|
@import "bootstrap"
|
||||||
|
|
||||||
|
// http://stackoverflow.com/questions/18153234/center-a-column-using-twitter-bootstrap-3
|
||||||
|
.center-block
|
||||||
|
float: none !important
|
||||||
|
|
||||||
.text-left-not-xs, .text-left-not-sm, .text-left-not-md, .text-left-not-lg
|
.text-left-not-xs, .text-left-not-sm, .text-left-not-md, .text-left-not-lg
|
||||||
text-align: left
|
text-align: left
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
.form-signin.text-center
|
.row
|
||||||
%h2.form-signin-heading.text-center= t('log_in')
|
.form-signin.col-md-6.center-block.text-center
|
||||||
%hr
|
%h2.form-signin-heading.text-center= t(:log_in)
|
||||||
= link_to '/registrar/login/mid' do
|
%hr
|
||||||
= image_tag 'mid.gif'
|
= link_to '/registrar/login/mid' do
|
||||||
= link_to '/registrar/login/id' do
|
= image_tag 'mid.gif'
|
||||||
= image_tag 'id_card.gif'
|
= link_to '/registrar/login/id' do
|
||||||
|
= image_tag 'id_card.gif'
|
||||||
|
|
|
@ -1,41 +1,38 @@
|
||||||
.form-signin.text-center
|
.row
|
||||||
%h2.form-signin-heading.text-center= t('log_in_with_mid')
|
.form-signin.col-md-4.center-block.text-center
|
||||||
%hr
|
%h2.form-signin-heading.text-center= t(:log_in_with_mid)
|
||||||
= link_to '/registrar/login/mid' do
|
%hr
|
||||||
= image_tag 'mid.gif'
|
= form_for @user, url: registrar_mid_path, html: {class: 'form-signin'} do |f|
|
||||||
= link_to '/registrar/login/id' do
|
= f.text_field :phone, class: 'form-control', placeholder: t(:phone_no), autocomplete: 'off'
|
||||||
= image_tag 'id_card.gif'
|
%button.btn.btn-lg.btn-primary.btn-block.js-login{:type => 'submit'}= t(:log_in)
|
||||||
= form_for @user, url: registrar_mid_path, html: {class: 'form-signin'} do |f|
|
|
||||||
= f.text_field :phone, class: 'form-control', placeholder: t('phone_no'), autocomplete: 'off'
|
|
||||||
%button.btn.btn-lg.btn-primary.btn-block.js-login{:type => 'submit'}= t('log_in')
|
|
||||||
|
|
||||||
- if ['development', 'alpha'].include?(Rails.env)
|
- if ['development', 'alpha'].include?(Rails.env)
|
||||||
%div.text-center
|
%div.text-center
|
||||||
00007, 60000007, 00000766
|
00007, 60000007, 00000766
|
||||||
|
|
||||||
:coffee
|
:coffee
|
||||||
$('.js-login').attr('disabled', false)
|
$('.js-login').attr('disabled', false)
|
||||||
|
|
||||||
status_interval = null
|
status_interval = null
|
||||||
mid_status = () ->
|
mid_status = () ->
|
||||||
status_interval = setInterval((->
|
status_interval = setInterval((->
|
||||||
$.post('/registrar/login/mid_status').fail((data) ->
|
$.post('/registrar/login/mid_status').fail((data) ->
|
||||||
clearInterval(status_interval)
|
clearInterval(status_interval)
|
||||||
|
flash_alert(data.responseJSON.message)
|
||||||
|
$('.js-login').attr('disabled', false)
|
||||||
|
)
|
||||||
|
), 1000)
|
||||||
|
|
||||||
|
$('.js-login').on 'click', (e) ->
|
||||||
|
e.preventDefault();
|
||||||
|
$(this).attr('disabled', true)
|
||||||
|
|
||||||
|
$.post($('form').attr('action'), $('form').serialize()).done((data) ->
|
||||||
|
if data.message
|
||||||
|
flash_notice(data.message)
|
||||||
|
mid_status()
|
||||||
|
).fail((data) ->
|
||||||
flash_alert(data.responseJSON.message)
|
flash_alert(data.responseJSON.message)
|
||||||
$('.js-login').attr('disabled', false)
|
$('.js-login').attr('disabled', false)
|
||||||
)
|
)
|
||||||
), 1000)
|
|
||||||
|
|
||||||
$('.js-login').on 'click', (e) ->
|
|
||||||
e.preventDefault();
|
|
||||||
$(this).attr('disabled', true)
|
|
||||||
|
|
||||||
$.post($('form').attr('action'), $('form').serialize()).done((data) ->
|
|
||||||
if data.message
|
|
||||||
flash_notice(data.message)
|
|
||||||
mid_status()
|
|
||||||
).fail((data) ->
|
|
||||||
flash_alert(data.responseJSON.message)
|
|
||||||
$('.js-login').attr('disabled', false)
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue