diff --git a/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/Attributes.pm b/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/Attributes.pm index ae39c4a69..dba8fbed4 100644 --- a/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/Attributes.pm +++ b/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/Attributes.pm @@ -807,6 +807,13 @@ has 'portalDisplayLogout' => ( documentation => 'Display logout tab in portal', ); +has 'portalDisplayRegister' => ( + is => 'rw', + isa => 'Str', + default => '1', + documentation => 'Display register button in portal', +); + has 'portalDisplayResetPassword' => ( is => 'rw', isa => 'Str', diff --git a/lemonldap-ng-portal/example/skins/bootstrap/css/styles.css b/lemonldap-ng-portal/example/skins/bootstrap/css/styles.css index 04caa5757..eb23a42ca 100644 --- a/lemonldap-ng-portal/example/skins/bootstrap/css/styles.css +++ b/lemonldap-ng-portal/example/skins/bootstrap/css/styles.css @@ -27,9 +27,16 @@ body { .login, .password { text-align: center; - max-width: 330px; - padding: 15px; + padding: 20px; +} + +div.form { margin: 0 auto; + max-width: 330px; +} + +div.actions { + margin: 10px 0 0 0; } .buttons { diff --git a/lemonldap-ng-portal/example/skins/bootstrap/login.tpl b/lemonldap-ng-portal/example/skins/bootstrap/login.tpl index ce15fadc8..65ccbf8de 100644 --- a/lemonldap-ng-portal/example/skins/bootstrap/login.tpl +++ b/lemonldap-ng-portal/example/skins/bootstrap/login.tpl @@ -103,6 +103,7 @@ + @@ -151,7 +152,7 @@ @@ -176,7 +177,7 @@ @@ -187,7 +188,7 @@
diff --git a/lemonldap-ng-portal/example/skins/bootstrap/password.tpl b/lemonldap-ng-portal/example/skins/bootstrap/password.tpl index b2082f0b0..842a12900 100644 --- a/lemonldap-ng-portal/example/skins/bootstrap/password.tpl +++ b/lemonldap-ng-portal/example/skins/bootstrap/password.tpl @@ -1,4 +1,5 @@
+
@@ -42,5 +43,5 @@ - +
diff --git a/lemonldap-ng-portal/example/skins/bootstrap/standardform.tpl b/lemonldap-ng-portal/example/skins/bootstrap/standardform.tpl index 592f2b5aa..49d29168c 100644 --- a/lemonldap-ng-portal/example/skins/bootstrap/standardform.tpl +++ b/lemonldap-ng-portal/example/skins/bootstrap/standardform.tpl @@ -1,4 +1,4 @@ - +
" class="form-control" placeholder="" required /> @@ -23,14 +23,23 @@ - +
+ + diff --git a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Display.pm b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Display.pm index 4b2c1a37a..04cb0c332 100644 --- a/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Display.pm +++ b/lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Display.pm @@ -202,7 +202,9 @@ sub display { CHECK_LOGINS => $self->{portalCheckLogins}, ASK_LOGINS => $self->{checkLogins}, DISPLAY_RESETPASSWORD => $self->{portalDisplayResetPassword}, + DISPLAY_REGISTER => $self->{portalDisplayRegister}, MAIL_URL => $self->{mailUrl}, + REGISTER_URL => $self->{registerUrl}, HIDDEN_INPUTS => $self->buildHiddenForm(), LOGIN_INFO => $self->loginInfo(), );