Merge pull request #1245 from taigaio/multiple-login

Multiple login
stable
Jesús Espino 2017-03-09 13:39:00 +01:00 committed by GitHub
commit b51f6ede7c
11 changed files with 45 additions and 16 deletions

View File

@ -290,7 +290,8 @@
"TITLE_LINK_FORGOT_PASSWORD": "Did you forget your password?",
"ACTION_ENTER": "Enter",
"ACTION_SIGN_IN": "Login",
"PLACEHOLDER_AUTH_PASSWORD": "Password (case sensitive)"
"PLACEHOLDER_AUTH_PASSWORD": "Password (case sensitive)",
"ALT_LOGIN": "Or login with"
},
"LOGIN_FORM": {
"ERROR_AUTH_INCORRECT": "According to our Oompa Loompas, your username/email or password are incorrect.",

View File

@ -30,10 +30,15 @@ form.login-form
)
fieldset
a.button-login.button-blackish.submit-button(
button.button-green.submit-button(
type="submit"
title="{{'LOGIN_COMMON.ACTION_ENTER' | translate}}"
translate="LOGIN_COMMON.ACTION_ENTER"
)
fieldset(ng-repeat="plugin in contribPlugins|filter:{type: 'auth'}", ng-include="plugin.template")
.contrib-plugins-wrapper(ng-if="contribPlugins.length")
label(translate="LOGIN_COMMON.ALT_LOGIN")
fieldset(
ng-repeat="plugin in contribPlugins|filter:{type: 'auth'}"
ng-include="plugin.template"
)

View File

@ -44,7 +44,7 @@ form.register-form
)
fieldset
a.button-register.button-blackish.submit-button(
button.button-register.button-green.submit-button(
type="submit"
title="{{'REGISTER_FORM.ACTION_SIGN_UP' | translate}}"
translate="REGISTER_FORM.ACTION_SIGN_UP"

View File

@ -38,6 +38,9 @@
translate="LOGIN_COMMON.ACTION_SIGN_IN"
)
.contrib-plugins-wrapper(ng-if="contribPlugins.length")
label(translate="LOGIN_COMMON.ALT_LOGIN")
fieldset(
ng-repeat="plugin in contribPlugins|filter:{type: 'auth'}"
ng-include="plugin.template"

View File

@ -52,6 +52,9 @@ div.register-form-container(tg-register)
translate="REGISTER_FORM.ACTION_SIGN_UP"
)
.contrib-plugins-wrapper(ng-if="contribPlugins.length")
label(translate="LOGIN_COMMON.ALT_LOGIN")
fieldset(
ng-repeat="plugin in contribPlugins|filter:{type: 'auth'}"
ng-include="plugin.template"

View File

@ -8,7 +8,7 @@
color: $white;
cursor: pointer;
display: inline-block;
padding: .4rem 2rem;
padding: .6rem 2rem;
text-align: center;
text-transform: uppercase;
transition: all .2s linear;

View File

@ -47,6 +47,7 @@ body {
.wrapper {
display: flex;
height: 100%;
min-height: $main-height;
}

View File

@ -23,7 +23,7 @@
}
.logo {
@include font-size(xxlarge);
@include font-type(text);
@include font-type(light);
color: $white;
margin-bottom: 1rem;
text-align: center;

View File

@ -5,6 +5,7 @@
background-size: cover;
display: flex;
flex: 1;
height: 100vh;
justify-content: center;
z-index: 999;
.invitation-container {
@ -107,4 +108,10 @@
border-right: 0;
}
}
.contrib-plugins-wrapper {
label {
color: $whitish;
}
}
}

View File

@ -10,6 +10,7 @@
}
}
}
.forgot-pass {
@include font-size(small);
color: $gray;

View File

@ -0,0 +1,8 @@
.contrib-plugins-wrapper {
margin: 1rem 0 2rem;
label {
@include font-size(small);
display: block;
margin-bottom: .5rem;
}
}