css changes
This commit is contained in:
parent
a022259aed
commit
70e73a4925
|
@ -1,5 +1,8 @@
|
||||||
|
/* https://css-tricks.com/dont-overthink-flexbox-grids/ */
|
||||||
.flex-grid {
|
.flex-grid {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
.flex-grid .col {
|
.flex-grid .col {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
@ -24,8 +27,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
* {
|
* {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,11 +39,11 @@
|
||||||
</mat-card>
|
</mat-card>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<mat-card class="row">
|
<mat-card>
|
||||||
|
|
||||||
<mat-card-header>
|
|
||||||
<div class="flex-grid">
|
<div class="flex-grid">
|
||||||
<h1 class="col">Search</h1>
|
<div class="col">
|
||||||
|
<h1>Search</h1>
|
||||||
|
</div>
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<button mat-raised-button class="btn-lg" color="primary" (click)="searchToday()">Today</button>
|
<button mat-raised-button class="btn-lg" color="primary" (click)="searchToday()">Today</button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -53,11 +53,9 @@
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<button mat-raised-button class="btn-lg" color="primary" (click)="updateGraphData()">Run</button>
|
<button mat-raised-button class="btn-lg" color="primary" (click)="updateGraphData()">Run</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</mat-card-header>
|
|
||||||
|
|
||||||
<div class="flex-grid">
|
<div class="col">
|
||||||
<mat-form-field class="col">
|
<mat-form-field>
|
||||||
<mat-date-range-input [rangePicker]="picker">
|
<mat-date-range-input [rangePicker]="picker">
|
||||||
<input matStartDate [(ngModel)]="start_date">
|
<input matStartDate [(ngModel)]="start_date">
|
||||||
<input matEndDate [(ngModel)]="end_date">
|
<input matEndDate [(ngModel)]="end_date">
|
||||||
|
@ -65,33 +63,41 @@
|
||||||
<mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle>
|
<mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle>
|
||||||
<mat-date-range-picker #picker></mat-date-range-picker>
|
<mat-date-range-picker #picker></mat-date-range-picker>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
<mat-form-field class="col">
|
<div class="col">
|
||||||
|
<mat-form-field>
|
||||||
<mat-label>Location ID(s)</mat-label>
|
<mat-label>Location ID(s)</mat-label>
|
||||||
<textarea matInput [(ngModel)]="form.location" placeholder="Location Codes"></textarea>
|
<textarea matInput [(ngModel)]="form.location" placeholder="Location Codes"></textarea>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
|
||||||
<mat-form-field class="col">
|
<div class="col">
|
||||||
|
<mat-form-field>
|
||||||
<mat-label>Student ID(s)</mat-label>
|
<mat-label>Student ID(s)</mat-label>
|
||||||
<textarea matInput [(ngModel)]="form.student_id" placeholder="Ex. It makes me feel..."></textarea>
|
<textarea matInput [(ngModel)]="form.student_id" placeholder="Ex. It makes me feel..."></textarea>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
|
||||||
<mat-form-field class="col">
|
<div class="col">
|
||||||
|
<mat-form-field>
|
||||||
<mat-label>Compute ID(s)</mat-label>
|
<mat-label>Compute ID(s)</mat-label>
|
||||||
<textarea matInput [(ngModel)]="form.compute_id" placeholder="Ex. It makes me feel..."></textarea>
|
<textarea matInput [(ngModel)]="form.compute_id" placeholder="Ex. It makes me feel..."></textarea>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</mat-card>
|
</mat-card>
|
||||||
<div class="flex-grid row">
|
|
||||||
|
<div class="flex-grid">
|
||||||
<mat-card class="col">
|
<mat-card class="col">
|
||||||
<mat-card-header>
|
<mat-card-header>
|
||||||
<h1>{{ChartName}}</h1>
|
<h1>{{ChartName}}</h1>
|
||||||
</mat-card-header>
|
</mat-card-header>
|
||||||
|
|
||||||
|
<div style="display: block">
|
||||||
<canvas baseChart [datasets]="dailyChartsData" [labels]="dailyChartLabels" [options]="barChartOptions"
|
<canvas baseChart [datasets]="dailyChartsData" [labels]="dailyChartLabels" [options]="barChartOptions"
|
||||||
[legend]="true" chartType="bar" (chartClick)="chartClicked($event)">
|
[legend]="true" chartType="bar" (chartClick)="chartClicked($event)">
|
||||||
</canvas>
|
</canvas></div>
|
||||||
</mat-card>
|
</mat-card>
|
||||||
|
|
||||||
<mat-card class="col">
|
<mat-card class="col">
|
||||||
|
@ -119,9 +125,9 @@
|
||||||
|
|
||||||
</mat-card>
|
</mat-card>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<mat-card>
|
<mat-card>
|
||||||
<mat-card-header>
|
<mat-card-header>
|
||||||
<h3 class="mb-0">Records to be processed </h3>
|
<h3 class="mb-0">Records to be processed </h3>
|
||||||
</mat-card-header>
|
</mat-card-header>
|
||||||
|
@ -170,7 +176,7 @@
|
||||||
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
|
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</mat-card>
|
</mat-card>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -8,12 +8,6 @@ import { SearchForm } from '../models/search_form'
|
||||||
import {PageEvent} from '@angular/material/paginator'
|
import {PageEvent} from '@angular/material/paginator'
|
||||||
import * as pluginDataLabels from 'chartjs-plugin-datalabels';
|
import * as pluginDataLabels from 'chartjs-plugin-datalabels';
|
||||||
|
|
||||||
export interface Tile {
|
|
||||||
color: string;
|
|
||||||
cols: number;
|
|
||||||
rows: number;
|
|
||||||
text: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-graphs',
|
selector: 'app-graphs',
|
||||||
|
|
Loading…
Reference in New Issue