diff --git a/ng2-components/ng2-alfresco-login/README.md b/ng2-components/ng2-alfresco-login/README.md index b5ea564686..a4067003b2 100644 --- a/ng2-components/ng2-alfresco-login/README.md +++ b/ng2-components/ng2-alfresco-login/README.md @@ -106,8 +106,8 @@ This component allow to authenticate to Alfresco One and Alfresco Activiti. Usage example of this component : **main.ts** -```ts +```ts import { NgModule, Component } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; @@ -153,9 +153,22 @@ export class AppComponent { export class AppModule { } platformBrowserDynamic().bootstrapModule(AppModule); - ``` +#### Properties + +| Name | Type | Default Value | Description | +| --- | --- | --- | --- | +| `providers` | string | ECM | Possible valid value are ECM, BPM or ALL. The default behaviour of this component will logged in only in the ECM . If you want log in in both system the correct value to use is ALL | +| `disableCsrf` | boolean | false | To prevent the CSRF Token from been submitted. Only for Activiti call | +| `needHelpLink` | string | '' | It will change the url of the NEED HELP link in the footer | +| `registerLink` | string | '' | It will change the url of the REGISTER link in the footer | +| `logoImageUrl` | string | Alfresco logo image | To change the logo image with a customised image | +| `backgroundImageUrl` | string | Alfresco background image | To change the background image with a customised image | +| `fieldsValidation` | { [key: string]: any; }, extra?: { [key: string]: any; } | | Use it to customise the validation rules of the login form | +| `showRememberMe` | boolean | false | Toggle `Remember me` checkbox visibility | +| `showLoginActions` | boolean | false | Toggle extra actions visibility (`Need Help`, `Register`, etc.) | + #### Events | Name | Description | @@ -164,19 +177,6 @@ platformBrowserDynamic().bootstrapModule(AppModule); | `onError` | The event is emitted when the login fails | | `executeSubmit` | The event is emitted when the form is submitted | -#### Options - -| Name | Options | Default | Description | Mandatory -| --- | --- | --- | --- | --- -| `providers` | *string* | ECM | Possible valid value are ECM, BPM or ALL. The default behaviour of this component will logged in only in the ECM . If you want log in in both system the correct value to use is ALL | -| `disableCsrf` | *boolean* | false | To prevent the CSRF Token from been submitted. Only for Activiti call | -| `needHelpLink` | *string* | '' | It will change the url of the NEED HELP link in the footer | -| `registerLink` | *string* | '' | It will change the url of the REGISTER link in the footer | -| `logoImageUrl` | *string* | Alfresco logo image | To change the logo image with a customised image | -| `backgroundImageUrl` | *string* | Alfresco background image | To change the background image with a customised image | -| `fieldsValidation` | *map* { [key: string]: any; }, extra?: { [key: string]: any; } | null | Use it to customise the validation rules of the login form | - - ## Change footer content diff --git a/ng2-components/ng2-alfresco-login/src/components/alfresco-login.component.css b/ng2-components/ng2-alfresco-login/src/components/alfresco-login.component.css index 643d1beb1f..3ba3b8801a 100644 --- a/ng2-components/ng2-alfresco-login/src/components/alfresco-login.component.css +++ b/ng2-components/ng2-alfresco-login/src/components/alfresco-login.component.css @@ -230,3 +230,14 @@ .adf-full-width { width: 100%; } + +.adf-login__remember-me { + padding-top: 15px; +} + +.adf-login__field { + display: block; + margin-left: auto; + margin-right: auto; + padding-bottom: 24px; +} diff --git a/ng2-components/ng2-alfresco-login/src/components/alfresco-login.component.html b/ng2-components/ng2-alfresco-login/src/components/alfresco-login.component.html index ac38b7139d..7cf4430e4b 100644 --- a/ng2-components/ng2-alfresco-login/src/components/alfresco-login.component.html +++ b/ng2-components/ng2-alfresco-login/src/components/alfresco-login.component.html @@ -1,6 +1,6 @@
-
+