diff --git a/ng2-components/ng2-alfresco-login/README.md b/ng2-components/ng2-alfresco-login/README.md
index f1787f3979..86dd38ea25 100644
--- a/ng2-components/ng2-alfresco-login/README.md
+++ b/ng2-components/ng2-alfresco-login/README.md
@@ -160,6 +160,7 @@ platformBrowserDynamic().bootstrapModule(AppModule);
| --- | --- |
| `onSuccess` | The event is emitted when the login is done |
| `onError` | The event is emitted when the login fails |
+| `executeSubmit` | The event is emitted when the form is submitted |
#### Options
@@ -167,8 +168,37 @@ platformBrowserDynamic().bootstrapModule(AppModule);
| --- | --- | --- | --- | ---
| `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
+
+
+
+You can replace the entire content in the footer of the login component with your custom content.
+
+```html
+
+ My custom HTML for the footer
+`
+```
+
+## Change header content
+
+
+
+You can replace the entire content in the header of the login component with your custom content.
+
+```html
+
+ My custom HTML for the header
+`
+```
+
## Extra content
You can put additional html content between `alfresco-login` tags to get it rendered as part of the login dialog.
@@ -212,7 +242,7 @@ Alternatively you can bind to your component properties and provide values dynam
#### Customize Validation rules
-If needed it is possible customize the validation rules of the login
+If needed it is possible customise the validation rules of the login
form. You can add/modify the default rules of the login form.
**MyCustomLogin.component.html**
diff --git a/ng2-components/ng2-alfresco-login/assets/custom-footer.png b/ng2-components/ng2-alfresco-login/assets/custom-footer.png
new file mode 100644
index 0000000000..7a791c8fbd
Binary files /dev/null and b/ng2-components/ng2-alfresco-login/assets/custom-footer.png differ
diff --git a/ng2-components/ng2-alfresco-login/assets/custom-header.png b/ng2-components/ng2-alfresco-login/assets/custom-header.png
new file mode 100644
index 0000000000..8dad6608f8
Binary files /dev/null and b/ng2-components/ng2-alfresco-login/assets/custom-header.png differ
diff --git a/ng2-components/ng2-alfresco-login/demo/src/main.ts b/ng2-components/ng2-alfresco-login/demo/src/main.ts
index 997eae02cc..b9790fb2c2 100644
--- a/ng2-components/ng2-alfresco-login/demo/src/main.ts
+++ b/ng2-components/ng2-alfresco-login/demo/src/main.ts
@@ -56,8 +56,11 @@ import { LoginModule } from 'ng2-alfresco-login';
`
+ (onError)="myErrorMethod($event)">
+ `
})
export class AppComponent implements OnInit {
diff --git a/ng2-components/ng2-alfresco-login/index.ts b/ng2-components/ng2-alfresco-login/index.ts
index bdf0ea8b4e..5dd029984f 100644
--- a/ng2-components/ng2-alfresco-login/index.ts
+++ b/ng2-components/ng2-alfresco-login/index.ts
@@ -18,12 +18,19 @@
import { NgModule, ModuleWithProviders } from '@angular/core';
import { CoreModule } from 'ng2-alfresco-core';
+import { LoginHeaderDirective } from './src/directives/login-header.directive';
+import { LoginFooterDirective } from './src/directives/login-footer.directive';
+
import { AlfrescoLoginComponent } from './src/components/alfresco-login.component';
+export * from './src/directives/login-header.directive';
+export * from './src/directives/login-footer.directive';
export * from './src/components/alfresco-login.component';
export const ALFRESCO_LOGIN_DIRECTIVES: any[] = [
- AlfrescoLoginComponent
+ AlfrescoLoginComponent,
+ LoginFooterDirective,
+ LoginHeaderDirective
];
@NgModule({
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 d08632e0a5..b4cb6d52b5 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
@@ -3,15 +3,28 @@