[ADF-3149] New Report Issue page created (#3452)

* [ADF-3149] New Report Issue page created

* [ADF-3149] Added missing comma
This commit is contained in:
davidcanonieto 2018-06-29 11:19:23 +02:00 committed by Eugenio Romano
parent 821916fbd7
commit a920c581df
6 changed files with 72 additions and 3 deletions

View File

@ -54,6 +54,7 @@ import { PreviewService } from './services/preview.service';
import { BreadcrumbDemoComponent } from './components/breadcrumb-demo/breadcrumb-demo.component'; import { BreadcrumbDemoComponent } from './components/breadcrumb-demo/breadcrumb-demo.component';
import { ContentNodeSelectorComponent } from './components/content-node-selector/content-node-selector.component'; import { ContentNodeSelectorComponent } from './components/content-node-selector/content-node-selector.component';
import { NotificationsComponent } from './components/notifications/notifications.component'; import { NotificationsComponent } from './components/notifications/notifications.component';
import { ReportIssueComponent } from './components/report-issue/report-issue.component';
@NgModule({ @NgModule({
imports: [ imports: [
@ -108,7 +109,8 @@ import { NotificationsComponent } from './components/notifications/notifications
BlobPreviewComponent, BlobPreviewComponent,
BreadcrumbDemoComponent, BreadcrumbDemoComponent,
NotificationsComponent, NotificationsComponent,
ContentNodeSelectorComponent ContentNodeSelectorComponent,
ReportIssueComponent
], ],
providers: [ providers: [
{ provide: AppConfigService, useClass: DebugAppConfigService }, // not use this service in production { provide: AppConfigService, useClass: DebugAppConfigService }, // not use this service in production
@ -130,7 +132,10 @@ import { NotificationsComponent } from './components/notifications/notifications
}, },
PreviewService PreviewService
], ],
entryComponents: [VersionManagerDialogAdapterComponent, MetadataDialogAdapterComponent], entryComponents: [
VersionManagerDialogAdapterComponent,
MetadataDialogAdapterComponent
],
bootstrap: [AppComponent] bootstrap: [AppComponent]
}) })
export class AppModule {} export class AppModule {}

View File

@ -51,6 +51,7 @@ import { BlobPreviewComponent } from './components/blob-preview/blob-preview.com
import { BreadcrumbDemoComponent } from './components/breadcrumb-demo/breadcrumb-demo.component'; import { BreadcrumbDemoComponent } from './components/breadcrumb-demo/breadcrumb-demo.component';
import { NotificationsComponent } from './components/notifications/notifications.component'; import { NotificationsComponent } from './components/notifications/notifications.component';
import { ContentNodeSelectorComponent } from './components/content-node-selector/content-node-selector.component'; import { ContentNodeSelectorComponent } from './components/content-node-selector/content-node-selector.component';
import { ReportIssueComponent } from './components/report-issue/report-issue.component';
export const appRoutes: Routes = [ export const appRoutes: Routes = [
{ path: 'login', component: LoginComponent }, { path: 'login', component: LoginComponent },
@ -221,6 +222,10 @@ export const appRoutes: Routes = [
component: OverlayViewerComponent, component: OverlayViewerComponent,
canActivate: [AuthGuardEcm] canActivate: [AuthGuardEcm]
}, },
{
path: 'report-issue',
component: ReportIssueComponent
},
{ {
path: 'datatable-lazy', path: 'datatable-lazy',
loadChildren: 'app/components/lazy-loading/lazy-loading.module#LazyLoadingModule' loadChildren: 'app/components/lazy-loading/lazy-loading.module#LazyLoadingModule'

View File

@ -0,0 +1,9 @@
<div class="adf-report-issue">
<h1>Report Issue</h1>
<form class="adf-report-issue-form">
<mat-form-field>
<textarea matInput placeholder="Leave a comment" class="adf-report-issue-form-textarea"></textarea>
</mat-form-field>
</form>
<button mat-raised-button>Submit</button>
</div>

View File

@ -0,0 +1,24 @@
.adf-report-issue {
margin: 50px 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
&-form {
width: 50%;
min-width: 250px;
margin-bottom: 50px;
& mat-form-field {
width: 100%;
}
&-textarea {
background-color: white;
width: 100%;
height: 250px;
}
}
}

View File

@ -0,0 +1,26 @@
/*!
* @license
* Copyright 2016 Alfresco Software, Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { Component } from '@angular/core';
@Component({
templateUrl: './report-issue.component.html',
styleUrls: [`./report-issue.component.scss`],
})
export class ReportIssueComponent {
}

View File

@ -307,7 +307,7 @@
"DESCRIPTION": "You're not allowed access to this resource on the server.", "DESCRIPTION": "You're not allowed access to this resource on the server.",
"SECONDARY_BUTTON": { "SECONDARY_BUTTON": {
"TEXT": "Report issue", "TEXT": "Report issue",
"URL": "" "URL": "report-issue"
}, },
"RETURN_BUTTON": { "RETURN_BUTTON": {
"TEXT": "Back to home", "TEXT": "Back to home",