Skip to content
Snippets Groups Projects
Verified Commit ab594587 authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #8218 add about-us link

parent 57131d19
No related branches found
No related tags found
No related merge requests found
<div class="admin-container" [class.admin-is-mobile]="mobileQuery.matches"> <div class="admin-container" [class.admin-is-mobile]="mobileQuery.matches">
<mat-toolbar color="primary" class="admin-toolbar">
<button mat-icon-button (click)="snav.toggle()" *ngIf="mobileMode">
<mat-icon class="fa fa-bars fa-2x"></mat-icon>
</button>
<button mat-button (click)="snav.toggle()" *ngIf="!mobileMode">
<mat-icon class="maarchLogo" [svgIcon]="mobileQuery.matches ? 'maarchLogoOnly' : 'maarchLogo'"></mat-icon>
</button>
<h1 class="admin-toolbar-title">{{lang.aboutUs}}
<!-- <small [class.hide-for-mobile]="mobileQuery.matches">{{user.firstname}} {{user.lastname}}</small> -->
</h1>
<span style="flex: 1 1 auto;"></span>
<search-home></search-home>
<menu-top></menu-top>
</mat-toolbar>
<mat-sidenav-container class="admin-sidenav-container" [style.marginTop.px]="mobileMode ? 56 : 0"> <mat-sidenav-container class="admin-sidenav-container" [style.marginTop.px]="mobileMode ? 56 : 0">
<mat-sidenav #snav [mode]="mobileMode ? 'over' : 'side'" [fixedInViewport]="mobileMode" fixedTopGap="56" [opened]="mobileMode ? false : true" <mat-sidenav #snav [mode]="mobileMode ? 'over' : 'side'" [fixedInViewport]="mobileMode" fixedTopGap="56" [opened]="mobileMode ? false : true"
autoFocus="false"> autoFocus="false">
......
...@@ -13,12 +13,17 @@ ...@@ -13,12 +13,17 @@
</div> </div>
<mat-card class="card-app-content"> <mat-card class="card-app-content">
<mat-card id="viewThumbnail" style="display:none;position: absolute;z-index: 2;height: 600px;width: 400px;"></mat-card> <mat-card id="viewThumbnail" style="display:none;position: absolute;z-index: 2;height: 600px;width: 400px;"></mat-card>
<mat-card style="display: flex"> <mat-card>
<div *ngIf="!mobileMode" style="text-align:center;flex: 1;background: url(static.php?filename=logo_only.svg);background-size: auto auto;height: 70px;background-size: 100%;background-repeat: no-repeat;background-position: center;"> <div style="display: flex">
<div *ngIf="!mobileMode" style="text-align:center;flex: 1;background: url(static.php?filename=logo_only.svg);background-size: auto auto;height: 70px;background-size: 100%;background-repeat: no-repeat;background-position: center;">
</div>
<div style="flex:10;padding-left: 10px;">
<span [innerHTML]="lang.welcomeInGEC"></span>&nbsp;
<b>{{currentDate}}</b>.
</div>
</div> </div>
<div style="flex:10;padding-left: 10px;"> <div style="text-align: right;opacity: 0.5;">
<span [innerHTML]="lang.welcomeInGEC"></span>&nbsp; <button mat-button routerLink="/about-us" style="position:absolute;font-size:10px;right: 0px;bottom: 0px;">{{lang.aboutUs}}</button>
<b>{{currentDate}}</b>.
</div> </div>
</mat-card> </mat-card>
...@@ -32,7 +37,8 @@ ...@@ -32,7 +37,8 @@
<i class="fa fa-calendar" title="date d'enregistrement"></i> {{row.creation_date | timeAgo}} <i class="fa fa-calendar" title="date d'enregistrement"></i> {{row.creation_date | timeAgo}}
</div> </div>
<div style="overflow: hidden;text-overflow: ellipsis;"> <div style="overflow: hidden;text-overflow: ellipsis;">
<mat-icon [ngStyle]="{'color': row.priority_color}" color="primary" class="{{row.status_icon.charAt(0)}}{{row.status_icon.charAt(1)}} {{row.status_icon}} {{row.status_icon.charAt(0)}}{{row.status_icon.charAt(1)}}-2x" title="{{row.status_label}}"></mat-icon> <mat-icon [ngStyle]="{'color': row.priority_color}" color="primary" class="{{row.status_icon.charAt(0)}}{{row.status_icon.charAt(1)}} {{row.status_icon}} {{row.status_icon.charAt(0)}}{{row.status_icon.charAt(1)}}-2x"
title="{{row.status_label}}"></mat-icon>
</div> </div>
<div style="padding-top: 5px;color: rgba(0,0,0,0.4);font-size: 90%;overflow: hidden;text-overflow: ellipsis;"> <div style="padding-top: 5px;color: rgba(0,0,0,0.4);font-size: 90%;overflow: hidden;text-overflow: ellipsis;">
{{row.alt_identifier}} {{row.alt_identifier}}
...@@ -85,7 +91,7 @@ ...@@ -85,7 +91,7 @@
</div> </div>
<div> <div>
<button mat-icon-button (click)="$event.stopPropagation();goTo(row);" (mouseenter)="viewThumbnail(row);" (mouseleave)="closeThumbnail();"> <button mat-icon-button (click)="$event.stopPropagation();goTo(row);" (mouseenter)="viewThumbnail(row);" (mouseleave)="closeThumbnail();">
<mat-icon color="primary" class="fa fa-eye" ></mat-icon> <mat-icon color="primary" class="fa fa-eye"></mat-icon>
</button> </button>
</div> </div>
</td> </td>
......
<mat-nav-list *ngIf="router.url != '/home' && router.url != '/administration' && router.url.indexOf('/basketList') == -1"> <mat-nav-list *ngIf="router.url != '/home' && router.url != '/about-us' && router.url != '/administration' && router.url.indexOf('/basketList') == -1">
<a mat-list-item (click)="backClicked()"> <a mat-list-item (click)="backClicked()">
<mat-icon color="primary" mat-list-icon class="fa fa-chevron-left"></mat-icon> <mat-icon color="primary" mat-list-icon class="fa fa-chevron-left"></mat-icon>
<p mat-line> <p mat-line>
...@@ -6,4 +6,4 @@ ...@@ -6,4 +6,4 @@
</p> </p>
</a> </a>
</mat-nav-list> </mat-nav-list>
<mat-divider *ngIf="router.url != '/home' && router.url != '/administration' && router.url.indexOf('/basketList') == -1"></mat-divider> <mat-divider *ngIf="router.url != '/home' && router.url != '/about-us' && router.url != '/administration' && router.url.indexOf('/basketList') == -1"></mat-divider>
\ No newline at end of file \ No newline at end of file
...@@ -17,7 +17,12 @@ declare var angularGlobals: any; ...@@ -17,7 +17,12 @@ declare var angularGlobals: any;
styleUrls: ['../../../css/profile.component.css'], styleUrls: ['../../../css/profile.component.css'],
providers: [NotificationService] providers: [NotificationService]
}) })
export class AboutUsComponent extends AutoCompletePlugin implements OnInit { export class AboutUsComponent implements OnInit {
/*HEADER*/
titleHeader : string;
@ViewChild('snav') public sidenavLeft : MatSidenav;
@ViewChild('snav2') public sidenavRight : MatSidenav;
private _mobileQueryListener: () => void; private _mobileQueryListener: () => void;
mobileQuery: MediaQueryList; mobileQuery: MediaQueryList;
...@@ -28,12 +33,8 @@ export class AboutUsComponent extends AutoCompletePlugin implements OnInit { ...@@ -28,12 +33,8 @@ export class AboutUsComponent extends AutoCompletePlugin implements OnInit {
loading: boolean = false; loading: boolean = false;
@ViewChild('snav2') sidenav: MatSidenav;
@ViewChildren(MatExpansionPanel) viewPanels: QueryList<MatExpansionPanel>;
constructor(changeDetectorRef: ChangeDetectorRef, media: MediaMatcher, public http: HttpClient, public dialog: MatDialog) { constructor(changeDetectorRef: ChangeDetectorRef, media: MediaMatcher, public http: HttpClient, public dialog: MatDialog) {
super(http, ['users']);
this.mobileMode = angularGlobals.mobileMode; this.mobileMode = angularGlobals.mobileMode;
$j("link[href='merged_css.php']").remove(); $j("link[href='merged_css.php']").remove();
this.mobileQuery = media.matchMedia('(max-width: 768px)'); this.mobileQuery = media.matchMedia('(max-width: 768px)');
...@@ -41,23 +42,11 @@ export class AboutUsComponent extends AutoCompletePlugin implements OnInit { ...@@ -41,23 +42,11 @@ export class AboutUsComponent extends AutoCompletePlugin implements OnInit {
this.mobileQuery.addListener(this._mobileQueryListener); this.mobileQuery.addListener(this._mobileQueryListener);
} }
prepareProfile() {
$j('#inner_content').remove();
$j('#inner_content_contact').parent('div').remove();
$j('#inner_content_contact').remove();
$j('#menunav').hide();
$j('#divList').remove();
$j('#magicContactsTable').remove();
$j('#manageBasketsOrderTable').remove();
$j('#controlParamTechnicTable').remove();
$j('#container').width("99%");
if ($j('#content h1')[0] && $j('#content h1')[0] != $j('my-app h1')[0]) {
$j('#content h1')[0].remove();
}
}
ngOnInit(): void { ngOnInit(): void {
this.prepareProfile(); window['MainHeaderComponent'].refreshTitle(this.lang.aboutUs);
window['MainHeaderComponent'].setSnav(this.sidenavLeft);
window['MainHeaderComponent'].setSnavRight(null);
this.coreUrl = angularGlobals.coreUrl; this.coreUrl = angularGlobals.coreUrl;
this.applicationMinorVersion = angularGlobals.applicationMinorVersion; this.applicationMinorVersion = angularGlobals.applicationMinorVersion;
this.loading = false; this.loading = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment