individual warning
This commit is contained in:
parent
0a20aa3dd4
commit
0e673d06ff
|
|
@ -0,0 +1,77 @@
|
|||
/* Export Overtime Eligible List: Process Month, file format and Generate in one panel (palette colours) */
|
||||
.eol-panel {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: flex-end;
|
||||
gap: 16px 24px;
|
||||
padding: 16px;
|
||||
background: var(--gh-tb);
|
||||
border: 1px solid var(--gh-bo);
|
||||
border-left: 4px solid var(--gh-btn);
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.eol-field {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
width: 240px;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.eol-field ::ng-deep kendo-label,
|
||||
.eol-field ::ng-deep .k-label {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.04em;
|
||||
text-transform: uppercase;
|
||||
color: var(--gh-muted);
|
||||
}
|
||||
|
||||
.eol-format {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.eol-format__label {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.04em;
|
||||
text-transform: uppercase;
|
||||
color: var(--gh-muted);
|
||||
}
|
||||
|
||||
.eol-format__label i {
|
||||
color: var(--gh-xls);
|
||||
}
|
||||
|
||||
.eol-format__cols {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
min-height: 34px;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.eol-chip {
|
||||
padding: 4px 12px;
|
||||
border-radius: 999px;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--gh-lk);
|
||||
background: var(--gh-th);
|
||||
border: 1px solid var(--gh-bo);
|
||||
}
|
||||
|
||||
.eol-actions {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.eol-actions button {
|
||||
min-width: 140px;
|
||||
}
|
||||
|
|
@ -1,37 +1,37 @@
|
|||
|
||||
<div class="grid">
|
||||
<div class="col-1">
|
||||
<kendo-label [class]="'k-display-block'"
|
||||
[for]="ot_Month"
|
||||
[text]="'Process Month'">
|
||||
</kendo-label>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<kendo-datepicker #ot_Month
|
||||
[activeView]="'year'"
|
||||
[bottomView]="'year'"
|
||||
[format]="'MMMM yyyy'"
|
||||
[(ngModel)]="nextMonthDate"
|
||||
style="width: 100%">
|
||||
</kendo-datepicker>
|
||||
</div>
|
||||
<!-- Layout only: same datepicker binding, same Generate button and click as before. -->
|
||||
<div class="eol-panel">
|
||||
<div class="eol-field">
|
||||
<kendo-label [class]="'k-display-block'"
|
||||
[for]="ot_Month"
|
||||
[text]="'Process Month'">
|
||||
</kendo-label>
|
||||
<kendo-datepicker #ot_Month
|
||||
[activeView]="'year'"
|
||||
[bottomView]="'year'"
|
||||
[format]="'MMMM yyyy'"
|
||||
[(ngModel)]="nextMonthDate"
|
||||
style="width: 100%">
|
||||
</kendo-datepicker>
|
||||
</div>
|
||||
|
||||
<div class="col-1">
|
||||
File Format :
|
||||
</div>
|
||||
<div class="col-4">
|
||||
Employee-ID, Employee Name, Term/OT Type
|
||||
</div>
|
||||
<div class="col-4" align="right">
|
||||
<button (click)="onGenerate()" class="k-primary gh-process" kendoButton style="width: 42%; margin-right: 10px;"
|
||||
type="submit">
|
||||
Generate
|
||||
</button>
|
||||
<!--<button (click)="onCancel()" class="k-primary gh-reset" kendoButton
|
||||
style="width: 42%;"
|
||||
type="submit">Undo
|
||||
</button>-->
|
||||
<div class="eol-format">
|
||||
<span class="eol-format__label"><i class="pi pi-file-excel"></i>File Format</span>
|
||||
<div class="eol-format__cols">
|
||||
<span class="eol-chip">Employee-ID</span>
|
||||
<span class="eol-chip">Employee Name</span>
|
||||
<span class="eol-chip">Term/OT Type</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="eol-actions">
|
||||
<button (click)="onGenerate()" class="k-primary gh-process" kendoButton [svgIcon]="apiService.KendoSVGIcon['gear']"
|
||||
type="submit">
|
||||
Generate
|
||||
</button>
|
||||
<!--<button (click)="onCancel()" class="k-primary gh-reset" kendoButton
|
||||
style="width: 42%;"
|
||||
type="submit">Undo
|
||||
</button>-->
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,39 @@
|
|||
/* Overtime Process: Process Month on the left, Process / Undo on the right (layout only, palette colours) */
|
||||
.otproc-panel {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: flex-end;
|
||||
gap: 16px 24px;
|
||||
padding: 16px;
|
||||
background: var(--gh-tb);
|
||||
border: 1px solid var(--gh-bo);
|
||||
border-left: 4px solid var(--gh-btn);
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.otproc-field {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
width: 240px;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.otproc-field > label {
|
||||
margin: 0;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.04em;
|
||||
text-transform: uppercase;
|
||||
color: var(--gh-muted);
|
||||
}
|
||||
|
||||
.otproc-actions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.otproc-actions button {
|
||||
min-width: 120px;
|
||||
}
|
||||
|
|
@ -1,33 +1,28 @@
|
|||
<app-loading-panel></app-loading-panel>
|
||||
|
||||
<div class="card card-w-title">
|
||||
<div class="col-12">
|
||||
<div class="grid">
|
||||
<div class="col-2" style="margin: auto;">
|
||||
<label>Process Month</label>
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<!-- <label>{{ this.payrollType?.nextPayProcessDate | date:'MMM yyyy' }}</label> -->
|
||||
<kendo-datepicker [activeView]="'year'" [bottomView]="'year'" [format]="'MMMM yyyy'"
|
||||
[value]="payrollType.nextPayProcessDate" style="width: 100%">
|
||||
</kendo-datepicker>
|
||||
</div>
|
||||
<div class="col-8" align="right">
|
||||
<button class="gh-process" type="button" kendoButton themeColor="primary" [svgIcon]="apiService.KendoSVGIcon['gear']" [disabled]="disable"
|
||||
(click)="onProcess()" style="margin-right: 5px;">
|
||||
Process
|
||||
</button>
|
||||
<button class="gh-reset" type="button" kendoButton themeColor="primary" [svgIcon]="apiService.KendoSVGIcon['undo']" [disabled]="!disable"
|
||||
(click)="onUndo()">
|
||||
Undo
|
||||
</button>
|
||||
<!-- <button (click)="onProcess()" [disabled]="disable" class="ui-button-success" label="Process" pButton
|
||||
style="margin-bottom: 10px; margin-right: 10px; width: 100px; background:var(--gh-ok); color: var(--gh-tb)"
|
||||
type="submit"></button>
|
||||
<button (click)="onUndo()" [disabled]="!disable" label="Undo" pButton
|
||||
style="margin-bottom: 10px; width: 100px; background:var(--gh-btn); color: var(--gh-tb)"
|
||||
type="submit"></button> -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- Layout only: same datepicker value, same Process / Undo buttons, conditions and clicks as before. -->
|
||||
<div class="otproc-panel">
|
||||
<div class="otproc-field">
|
||||
<label>Process Month</label>
|
||||
<!-- <label>{{ this.payrollType?.nextPayProcessDate | date:'MMM yyyy' }}</label> -->
|
||||
<kendo-datepicker [activeView]="'year'" [bottomView]="'year'" [format]="'MMMM yyyy'"
|
||||
[value]="payrollType.nextPayProcessDate" style="width: 100%">
|
||||
</kendo-datepicker>
|
||||
</div>
|
||||
</div>
|
||||
<div class="otproc-actions">
|
||||
<button class="gh-process" type="button" kendoButton themeColor="primary" [svgIcon]="apiService.KendoSVGIcon['gear']" [disabled]="disable"
|
||||
(click)="onProcess()">
|
||||
Process
|
||||
</button>
|
||||
<button class="gh-reset" type="button" kendoButton themeColor="primary" [svgIcon]="apiService.KendoSVGIcon['undo']" [disabled]="!disable"
|
||||
(click)="onUndo()">
|
||||
Undo
|
||||
</button>
|
||||
<!-- <button (click)="onProcess()" [disabled]="disable" class="ui-button-success" label="Process" pButton
|
||||
style="margin-bottom: 10px; margin-right: 10px; width: 100px; background:var(--gh-ok); color: var(--gh-tb)"
|
||||
type="submit"></button>
|
||||
<button (click)="onUndo()" [disabled]="!disable" label="Undo" pButton
|
||||
style="margin-bottom: 10px; width: 100px; background:var(--gh-btn); color: var(--gh-tb)"
|
||||
type="submit"></button> -->
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
/* Overtime Parameterization: a single card around the grid (layout only, palette colours) */
|
||||
.otp-card {
|
||||
margin: 0 0 12px;
|
||||
padding: 16px;
|
||||
background: var(--gh-tb);
|
||||
border: 1px solid var(--gh-bo);
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 1px 3px color-mix(in srgb, var(--gh-sb) 8%, transparent);
|
||||
}
|
||||
|
|
@ -1,50 +1,39 @@
|
|||
<app-loading-panel></app-loading-panel>
|
||||
<div class="col-12">
|
||||
<div class="card card-w-title">
|
||||
<div class="col-12">
|
||||
<div class="card card-w-title">
|
||||
<div class="col-12">
|
||||
<div class="grid">
|
||||
<kendo-grid [data]="_termParams" (edit)="editHandler($event)" (remove)="removeHandler($event)"
|
||||
(add)="addHandler()">
|
||||
<ng-template kendoGridToolbarTemplate>
|
||||
<button class="gh-add" themeColor="primary" kendoGridAddCommand [svgIcon]="apiService.KendoSVGIcon['plus']">Add New</button>
|
||||
</ng-template>
|
||||
<kendo-grid-column field="termName" title="OT Description">
|
||||
</kendo-grid-column>
|
||||
<kendo-grid-column field="housInMonth" title="Hours In Month">
|
||||
</kendo-grid-column>
|
||||
<kendo-grid-column field="amount" title="Overtime Rate">
|
||||
</kendo-grid-column>
|
||||
<!--<kendo-grid-column field="type" title="Type">
|
||||
</kendo-grid-column>
|
||||
<!-- One clean card around the grid (was card inside card); the grid and all its bindings are unchanged. -->
|
||||
<div class="otp-card">
|
||||
<kendo-grid [data]="_termParams" (edit)="editHandler($event)" (remove)="removeHandler($event)"
|
||||
(add)="addHandler()">
|
||||
<ng-template kendoGridToolbarTemplate>
|
||||
<button class="gh-add" themeColor="primary" kendoGridAddCommand [svgIcon]="apiService.KendoSVGIcon['plus']">Add New</button>
|
||||
</ng-template>
|
||||
<kendo-grid-column field="termName" title="OT Description">
|
||||
</kendo-grid-column>
|
||||
<kendo-grid-column field="housInMonth" title="Hours In Month">
|
||||
</kendo-grid-column>
|
||||
<kendo-grid-column field="amount" title="Overtime Rate">
|
||||
</kendo-grid-column>
|
||||
<!--<kendo-grid-column field="type" title="Type">
|
||||
</kendo-grid-column>
|
||||
|
||||
<kendo-grid-command-column title="Edit">
|
||||
<ng-template kendoGridCellTemplate let-dataItem let-rowIndex="rowIndex">
|
||||
<button class="gh-edit" kendoGridEditCommand [primary]="true" [svgIcon]="apiService.KendoSVGIcon['edit']">Edit</button>
|
||||
</ng-template>
|
||||
</kendo-grid-command-column>
|
||||
<kendo-grid-command-column title="Edit">
|
||||
<ng-template kendoGridCellTemplate let-dataItem let-rowIndex="rowIndex">
|
||||
<button class="gh-edit" kendoGridEditCommand [primary]="true" [svgIcon]="apiService.KendoSVGIcon['edit']">Edit</button>
|
||||
</ng-template>
|
||||
</kendo-grid-command-column>
|
||||
|
||||
<kendo-grid-command-column title="Delete">
|
||||
<ng-template kendoGridCellTemplate let-dataItem let-rowIndex="rowIndex">
|
||||
<button kendoGridRemoveCommand [svgIcon]="apiService.KendoSVGIcon['delete']" class="kt-delete gh-delete">
|
||||
Delete
|
||||
</button>
|
||||
</ng-template>
|
||||
</kendo-grid-command-column>-->
|
||||
<kendo-grid-command-column title="Action">
|
||||
<ng-template kendoGridCellTemplate let-dataItem let-rowIndex="rowIndex">
|
||||
<button kendoGridEditCommand themeColor="primary" [svgIcon]="apiService.KendoSVGIcon['edit']" style="margin-right: 5px;"></button>
|
||||
<button kendoGridRemoveCommand [svgIcon]="apiService.KendoSVGIcon['delete']" class="kt-delete"></button>
|
||||
</ng-template>
|
||||
</kendo-grid-command-column>
|
||||
|
||||
</kendo-grid>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<kendo-grid-command-column title="Delete">
|
||||
<ng-template kendoGridCellTemplate let-dataItem let-rowIndex="rowIndex">
|
||||
<button kendoGridRemoveCommand [svgIcon]="apiService.KendoSVGIcon['delete']" class="kt-delete gh-delete">
|
||||
Delete
|
||||
</button>
|
||||
</ng-template>
|
||||
</kendo-grid-command-column>-->
|
||||
<kendo-grid-command-column title="Action">
|
||||
<ng-template kendoGridCellTemplate let-dataItem let-rowIndex="rowIndex">
|
||||
<button kendoGridEditCommand themeColor="primary" [svgIcon]="apiService.KendoSVGIcon['edit']" style="margin-right: 5px;"></button>
|
||||
<button kendoGridRemoveCommand [svgIcon]="apiService.KendoSVGIcon['delete']" class="kt-delete"></button>
|
||||
</ng-template>
|
||||
</kendo-grid-command-column>
|
||||
|
||||
</kendo-grid>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -64,6 +64,10 @@
|
|||
border-radius: 18px;
|
||||
padding: 16px 20px;
|
||||
box-shadow: $empcard-card-shadow;
|
||||
margin-bottom: 16px; // gap between the Search, Add New, List and summary cards
|
||||
}
|
||||
.iad-card:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.iad-card-header {
|
||||
display: flex; align-items: center; gap: 8px;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user