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

FEAT #13671 TIME 1 css + lang customization installer

parent f9aa16d7
No related branches found
No related tags found
No related merge requests found
<div style="background: url('assets/1.jpg')">
</div>
<div class="stepContent"> <div class="stepContent">
<h2 class="stepContentTitle"><i class="fas fa-tools"></i> Personnalisation</h2> <h2 class="stepContentTitle"><i class="fas fa-tools"></i> {{lang.customization}}</h2>
<p> <div class="alert-message alert-message-info" role="alert" style="margin-top: 30px;min-width: 100%;">
Maarch Courrier vous permet de personnaliser votre application afin de l'intégrer parfaitement à votre environnement de travail. {{lang.stepCustomization_desc}}
</p> </div>
<br/> <div class="col-md-6">
<mat-form-field appearance="outline"> <mat-form-field appearance="outline">
<mat-label>Nom de l'application</mat-label> <mat-label>{{lang.applicationName}}</mat-label>
<input matInput [(ngModel)]="appName" style="color: moccasin;"> <input matInput [(ngModel)]="appName">
</mat-form-field> </mat-form-field>
<div>Message écran de connexion : </div> <div>{{lang.loginMsg}} : </div>
<textarea style="padding-top: 10px;" name="loginMsg" id="loginMsg" [(ngModel)]="loginMsg"></textarea> <textarea style="padding-top: 10px;" name="loginMsg" id="loginMsg" [(ngModel)]="loginMsg"></textarea>
<br/> <br />
<br/> <br />
<div>Message d'accueil : </div> <div>{{lang.homeMsg}} : </div>
<textarea style="padding-top: 10px;" name="homeMsg" id="homeMsg" [(ngModel)]="homeMsg"></textarea> <textarea style="padding-top: 10px;" name="homeMsg" id="homeMsg" [(ngModel)]="homeMsg"></textarea>
<br/> <br />
<br/> <br />
<div>Choisissez le fond d'écran de l'écran de connexion : </div> </div>
<div class="backgroundList"> <div class="col-md-6">
<mat-card (click)="selectedBackground='bodylogin.jpg'" style="opacity: 0.3;" class="backgroundItem" [class.selected]="selectedBackground === 'bodylogin.jpg'"> <div>{{lang.chooseLoginBg}} : </div>
<img src="assets/bodylogin.jpg" style="width:100%;"/> <div class="backgroundList">
</mat-card> <mat-card (click)="selectedBackground='bodylogin.jpg'" style="opacity: 0.3;" class="backgroundItem"
<mat-card *ngFor="let background of backgroundList" (click)="selectedBackground=background.filename" style="opacity: 0.3;" class="backgroundItem" [class.selected]="background.filename === selectedBackground"> [class.selected]="selectedBackground === 'bodylogin.jpg'" style="background:url(assets/bodylogin.jpg);background-size: cover;">
<img src="assets/{{background.filename}}" style="width:100%;"/> </mat-card>
</mat-card> <mat-card *ngFor="let background of backgroundList" (click)="selectedBackground=background.filename"
style="opacity: 0.3;" class="backgroundItem" [class.selected]="background.filename === selectedBackground" [style.background]="'url(assets/'+background.filename+')'">
</mat-card>
</div>
</div> </div>
</div> </div>
\ No newline at end of file
@import '../../../css/vars.scss';
.stepContent { .stepContent {
max-width: 850px; // max-width: 850px;
margin: auto; margin: auto;
.stepContentTitle { .stepContentTitle {
color: $primary;
margin-bottom: 30px; margin-bottom: 30px;
border-bottom: solid 1px; border-bottom: solid 1px;
padding: 0; padding: 0;
} }
::ng-deep .mat-form-field-appearance-outline.mat-form-field-invalid.mat-form-field-invalid .mat-form-field-outline-thick {
/*change color of label*/
color: white !important;
}
::ng-deep .mat-form-field-appearance-outline .mat-form-field-outline {
color: white !important;
//background: white;
}
::ng-deep.mat-form-field-underline {
/*change color of underline*/
//background-color: white !important;
}
::ng-deep.mat-form-field-ripple {
/*change color of underline when focused*/
//background-color: white !important;
}
::ng-deep.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label, .mat-form-field-appearance-outline.mat-form-field-can-float .mat-input-server:focus + .mat-form-field-label-wrapper .mat-form-field-label {
color: white;
}
} }
.backgroundList { .backgroundList {
display: grid; display: grid;
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(5, 1fr);
grid-gap: 10px; grid-gap: 10px;
} }
.selected { .selected {
transition: all 0.3s;
opacity: 1 !important; opacity: 1 !important;
border: solid 10px $secondary !important;
} }
.backgroundItem { .backgroundItem {
border: solid 0px $secondary;
opacity: 0.5;
transition: all 0.3s; transition: all 0.3s;
cursor: pointer; cursor: pointer;
height: 120px;
background-size: cover !important;
} }
.backgroundItem:hover { .backgroundItem:hover {
......
...@@ -3,6 +3,7 @@ import { FormBuilder, FormGroup, Validators } from '@angular/forms'; ...@@ -3,6 +3,7 @@ import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { NotificationService } from '../../notification.service'; import { NotificationService } from '../../notification.service';
import { LANG } from '../../translate.component'; import { LANG } from '../../translate.component';
declare var tinymce: any; declare var tinymce: any;
@Component({ @Component({
...@@ -11,7 +12,7 @@ declare var tinymce: any; ...@@ -11,7 +12,7 @@ declare var tinymce: any;
styleUrls: ['./customization.component.scss'] styleUrls: ['./customization.component.scss']
}) })
export class CustomizationComponent implements OnInit { export class CustomizationComponent implements OnInit {
lang: any = LANG;
stepFormGroup: FormGroup; stepFormGroup: FormGroup;
docserversPath: string = '/opt/maaarch/docservers/'; docserversPath: string = '/opt/maaarch/docservers/';
......
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
</div> </div>
</mat-step> </mat-step>
<mat-step [stepControl]="appCustomization.getFormGroup()"> <mat-step [stepControl]="appCustomization.getFormGroup()">
<ng-template matStepLabel>Personnalisation</ng-template> <ng-template matStepLabel>{{lang.customization}}</ng-template>
<div class="stepContainer"> <div class="stepContainer">
<div class="stepContent"> <div class="stepContent">
<app-customization #appCustomization></app-customization> <app-customization #appCustomization></app-customization>
......
File moved
...@@ -1774,4 +1774,10 @@ export const LANG_FR = { ...@@ -1774,4 +1774,10 @@ export const LANG_FR = {
"docserverPath": "Chemin de la zone de stockage", "docserverPath": "Chemin de la zone de stockage",
"docserver": "Zone de stockage", "docserver": "Zone de stockage",
"stepDocserver_desc": "N'importe quel système de stockage peut être utilisé, à partir du moment où celui-ci présente un « système de fichiers » à accès direct. Ce peut être le cas d'un attachement direct ou indirect de type NFS sur une baie SAN, NAS, ou pour les cas simples un ensemble de disques RAID.", "stepDocserver_desc": "N'importe quel système de stockage peut être utilisé, à partir du moment où celui-ci présente un « système de fichiers » à accès direct. Ce peut être le cas d'un attachement direct ou indirect de type NFS sur une baie SAN, NAS, ou pour les cas simples un ensemble de disques RAID.",
"applicationName": "Nom de l'application",
"loginMsg": "Message à l'écran de connexion",
"homeMsg": "Message à l'écran d'accueil",
"chooseLoginBg": "Choisissez le fond d'écran de l'écran de connexion",
"customization": "Personnalisation",
"stepCustomization_desc": "Maarch Courrier vous permet de personnaliser votre application afin de l'intégrer parfaitement à votre environnement de travail.",
}; };
\ No newline at end of file
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