refs #1477 Refactor Env-Vars, Roles and Users components for improved layout and styling
testing/ogGui-multibranch/pipeline/head There was a failure building this commit
Details
testing/ogGui-multibranch/pipeline/head There was a failure building this commit
Details
parent
4437acdac2
commit
9e071814e9
|
@ -1,9 +1,5 @@
|
||||||
.env-settings {
|
.env-settings {
|
||||||
padding: 16px;
|
padding: 0rem 1rem 0rem 1rem;
|
||||||
|
|
||||||
h1 {
|
|
||||||
margin-bottom: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mat-table {
|
.mat-table {
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
<div class="env-settings">
|
<div class="env-settings">
|
||||||
<h1>Editar Variables de Entorno</h1>
|
<div class="header-container">
|
||||||
|
<div class="header-container-title">
|
||||||
|
<h2>Editar Variables de Entorno</h2>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<mat-table [dataSource]="envVars" class="mat-elevation-z8">
|
<mat-table [dataSource]="envVars" class="mat-elevation-z8">
|
||||||
<!-- Nombre de la variable -->
|
<!-- Nombre de la variable -->
|
||||||
|
@ -22,7 +26,7 @@
|
||||||
<mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row>
|
<mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row>
|
||||||
</mat-table>
|
</mat-table>
|
||||||
|
|
||||||
<div class="actions" >
|
<div class="actions">
|
||||||
<button mat-raised-button color="primary" (click)="saveEnvVars()">Guardar Cambios</button>
|
<button mat-raised-button color="primary" (click)="saveEnvVars()">Guardar Cambios</button>
|
||||||
<button mat-raised-button color="accent" (click)="loadEnvVars()">Recargar</button>
|
<button mat-raised-button color="accent" (click)="loadEnvVars()">Recargar</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,6 +1,19 @@
|
||||||
|
.header-container {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
padding: 10px 10px;
|
||||||
|
border-bottom: 1px solid #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-container-title {
|
||||||
|
flex-grow: 1;
|
||||||
|
text-align: left;
|
||||||
|
margin-left: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
table {
|
table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: 50px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-container {
|
.search-container {
|
||||||
|
@ -8,14 +21,10 @@ table {
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0 5px;
|
margin: 1.5rem 0rem 1.5rem 0rem;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.divider {
|
|
||||||
margin: 20px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.search-string {
|
.search-string {
|
||||||
flex: 2;
|
flex: 2;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
|
@ -26,15 +35,8 @@ table {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-container {
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
padding: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mat-elevation-z8 {
|
.mat-elevation-z8 {
|
||||||
box-shadow: 0px 0px 0px rgba(0,0,0,0.2);
|
box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.paginator-container {
|
.paginator-container {
|
||||||
|
@ -42,4 +44,3 @@ table {
|
||||||
justify-content: end;
|
justify-content: end;
|
||||||
margin-bottom: 30px;
|
margin-bottom: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,24 +1,25 @@
|
||||||
<div class="header-container">
|
<div class="header-container">
|
||||||
<h2 class="title">{{ 'adminRolesTitle' | translate }}</h2>
|
<div class="header-container-title">
|
||||||
|
<h2>{{ 'adminRolesTitle' | translate }}</h2>
|
||||||
|
</div>
|
||||||
<div class="images-button-row">
|
<div class="images-button-row">
|
||||||
<button mat-flat-button color="primary" (click)="addUser()">
|
<button mat-flat-button color="primary" (click)="addUser()">
|
||||||
{{ 'addRole' | translate }}
|
{{ 'addRole' | translate }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<mat-divider class="divider"></mat-divider>
|
|
||||||
<div class="search-container">
|
<div class="search-container">
|
||||||
<mat-form-field appearance="fill" class="search-string">
|
<mat-form-field appearance="fill" class="search-string">
|
||||||
<mat-label>{{ 'searchRoleLabel' | translate }}</mat-label>
|
<mat-label>{{ 'searchRoleLabel' | translate }}</mat-label>
|
||||||
<input matInput placeholder="{{ 'searchPlaceholder' | translate }}" [(ngModel)]="filters['name']" (keyup.enter)="search()">
|
<input matInput placeholder="{{ 'searchPlaceholder' | translate }}" [(ngModel)]="filters['name']"
|
||||||
|
(keyup.enter)="search()">
|
||||||
<mat-icon matSuffix>search</mat-icon>
|
<mat-icon matSuffix>search</mat-icon>
|
||||||
<mat-hint>{{ 'searchHint' | translate }}</mat-hint>
|
<mat-hint>{{ 'searchHint' | translate }}</mat-hint>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div *ngIf="loading" class="loading-container">
|
<app-loading [isLoading]="loading"></app-loading>
|
||||||
<mat-spinner></mat-spinner>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div *ngIf="!loading">
|
<div *ngIf="!loading">
|
||||||
<table mat-table [dataSource]="dataSource" class="mat-elevation-z8">
|
<table mat-table [dataSource]="dataSource" class="mat-elevation-z8">
|
||||||
|
@ -33,7 +34,8 @@
|
||||||
<button mat-icon-button color="primary" (click)="editRole(role)">
|
<button mat-icon-button color="primary" (click)="editRole(role)">
|
||||||
<mat-icon>edit</mat-icon>
|
<mat-icon>edit</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
<button mat-icon-button color="warn" (click)="deleteRole(role)" [disabled]="role.permissions.includes('ROLE_SUPER_ADMIN')">
|
<button mat-icon-button color="warn" (click)="deleteRole(role)"
|
||||||
|
[disabled]="role.permissions.includes('ROLE_SUPER_ADMIN')">
|
||||||
<mat-icon>delete</mat-icon>
|
<mat-icon>delete</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
</td>
|
</td>
|
||||||
|
@ -44,10 +46,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="paginator-container">
|
<div class="paginator-container">
|
||||||
<mat-paginator [length]="length"
|
<mat-paginator [length]="length" [pageSize]="itemsPerPage" [pageIndex]="page" [pageSizeOptions]="pageSizeOptions"
|
||||||
[pageSize]="itemsPerPage"
|
|
||||||
[pageIndex]="page"
|
|
||||||
[pageSizeOptions]="pageSizeOptions"
|
|
||||||
(page)="onPageChange($event)">
|
(page)="onPageChange($event)">
|
||||||
</mat-paginator>
|
</mat-paginator>
|
||||||
</div>
|
</div>
|
|
@ -1,6 +1,19 @@
|
||||||
|
.header-container {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
padding: 10px 10px;
|
||||||
|
border-bottom: 1px solid #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-container-title {
|
||||||
|
flex-grow: 1;
|
||||||
|
text-align: left;
|
||||||
|
margin-left: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
table {
|
table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: 50px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-container {
|
.search-container {
|
||||||
|
@ -8,14 +21,10 @@ table {
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0 5px;
|
margin: 1.5rem 0rem 1.5rem 0rem;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.divider {
|
|
||||||
margin: 20px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.search-string {
|
.search-string {
|
||||||
flex: 2;
|
flex: 2;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
|
@ -26,13 +35,6 @@ table {
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-container {
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
|
||||||
padding: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mat-elevation-z8 {
|
.mat-elevation-z8 {
|
||||||
box-shadow: 0px 0px 0px rgba(0,0,0,0.2);
|
box-shadow: 0px 0px 0px rgba(0,0,0,0.2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,24 +1,26 @@
|
||||||
<div class="header-container">
|
<div class="header-container">
|
||||||
<h2 class="title">{{ 'adminUsersTitle' | translate }}</h2>
|
<div class="header-container-title">
|
||||||
|
<h2>{{ 'adminUsersTitle' | translate }}</h2>
|
||||||
|
</div>
|
||||||
<div class="images-button-row">
|
<div class="images-button-row">
|
||||||
<button mat-flat-button color="primary" (click)="addUser()">
|
<button mat-flat-button color="primary" (click)="addUser()">
|
||||||
{{ 'addUser' | translate }}
|
{{ 'addUser' | translate }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<mat-divider class="divider"></mat-divider>
|
|
||||||
|
|
||||||
<div class="search-container">
|
<div class="search-container">
|
||||||
<mat-form-field appearance="fill" class="search-string">
|
<mat-form-field appearance="fill" class="search-string">
|
||||||
<mat-label>{{ 'searchLabel' | translate }}</mat-label>
|
<mat-label>{{ 'searchLabel' | translate }}</mat-label>
|
||||||
<input matInput placeholder="{{ 'searchPlaceholder' | translate }}" [(ngModel)]="filters['name']" (keyup.enter)="search()">
|
<input matInput placeholder="{{ 'searchPlaceholder' | translate }}" [(ngModel)]="filters['name']"
|
||||||
|
(keyup.enter)="search()">
|
||||||
<mat-icon matSuffix>search</mat-icon>
|
<mat-icon matSuffix>search</mat-icon>
|
||||||
<mat-hint>{{ 'searchHint' | translate }}</mat-hint>
|
<mat-hint>{{ 'searchHint' | translate }}</mat-hint>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div *ngIf="loading" class="loading-container">
|
<app-loading [isLoading]="loading"></app-loading>
|
||||||
<mat-spinner></mat-spinner>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div *ngIf="!loading">
|
<div *ngIf="!loading">
|
||||||
<table mat-table [dataSource]="dataSource" class="mat-elevation-z8">
|
<table mat-table [dataSource]="dataSource" class="mat-elevation-z8">
|
||||||
|
@ -44,10 +46,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="paginator-container">
|
<div class="paginator-container">
|
||||||
<mat-paginator [length]="length"
|
<mat-paginator [length]="length" [pageSize]="itemsPerPage" [pageIndex]="page" [pageSizeOptions]="pageSizeOptions"
|
||||||
[pageSize]="itemsPerPage"
|
|
||||||
[pageIndex]="page"
|
|
||||||
[pageSizeOptions]="pageSizeOptions"
|
|
||||||
(page)="onPageChange($event)">
|
(page)="onPageChange($event)">
|
||||||
</mat-paginator>
|
</mat-paginator>
|
||||||
</div>
|
</div>
|
Loading…
Reference in New Issue