diff --git a/HRM.UI/ClientApp/src/app/LMS/courses/courses.component.html b/HRM.UI/ClientApp/src/app/LMS/courses/courses.component.html index 0d13634..949d229 100644 --- a/HRM.UI/ClientApp/src/app/LMS/courses/courses.component.html +++ b/HRM.UI/ClientApp/src/app/LMS/courses/courses.component.html @@ -15,9 +15,9 @@ [valuePrimitive]="true" [(ngModel)]="selectedStatus" (valueChange)="selectedStatusChange($event)" - class="form-control form-control-sm"> + class="form-control form-control-sm ct-toolbar-dd" kendoGridToolbarFocusable> - + diff --git a/HRM.UI/ClientApp/src/app/LMS/courses/courses.component.scss b/HRM.UI/ClientApp/src/app/LMS/courses/courses.component.scss index e69de29..9b2195a 100644 --- a/HRM.UI/ClientApp/src/app/LMS/courses/courses.component.scss +++ b/HRM.UI/ClientApp/src/app/LMS/courses/courses.component.scss @@ -0,0 +1,9 @@ +/* Grid toolbar: dropdown and search at a fixed width (same as Course Type) instead of stretching */ +.ct-toolbar-dd { + width: 220px !important; + flex: 0 0 auto; +} +.ct-toolbar-search { + width: 260px !important; + flex: 0 0 auto; +} diff --git a/HRM.UI/ClientApp/src/app/adhoc-feature/work-flow-setup/workflow-rule.component.html b/HRM.UI/ClientApp/src/app/adhoc-feature/work-flow-setup/workflow-rule.component.html index dfda3c8..57defc0 100644 --- a/HRM.UI/ClientApp/src/app/adhoc-feature/work-flow-setup/workflow-rule.component.html +++ b/HRM.UI/ClientApp/src/app/adhoc-feature/work-flow-setup/workflow-rule.component.html @@ -94,16 +94,15 @@
@if (showStepPopUp) { -
- +
+ --> - - - - - -
-
-
-
- - - -
- - - -
- @if (this.allowEmployeeSelect) { -
- -
- + + +
+
Step
+
+
+ +
+ + +
- } - @if (this.allowpositiontype) { -
- - - +
+ + +
+
Actors
+
+
+ + + +
+ @if (this.allowEmployeeSelect) { +
+ +
+ +
+
+ } + @if (this.allowpositiontype) { +
+ + + +
+ } + @if (this.allowListField) { +
+ + +
+ } + @if (this.StepActors.length>1) { +
+ + +
+ }
- } - @if (this.allowListField) { -
- - +
+
- } - @if (this.StepActors.length>1) { -
- - -
- } -
- -
-
-
-
- + - + - + -
-
-
-
-
- - -
-
- + + + + + + + } diff --git a/HRM.UI/ClientApp/src/app/adhoc-feature/work-flow-setup/workflow-rule.component.scss b/HRM.UI/ClientApp/src/app/adhoc-feature/work-flow-setup/workflow-rule.component.scss new file mode 100644 index 0000000..f5be1b8 --- /dev/null +++ b/HRM.UI/ClientApp/src/app/adhoc-feature/work-flow-setup/workflow-rule.component.scss @@ -0,0 +1,96 @@ +/* Add/Modify a Step dialog: layout only. Every binding, condition and handler stays in the template as it was. */ +.wf-step-dialog ::ng-deep .k-dialog-content { + padding: 14px 16px; + background-color: var(--gh-pb); +} + +.wf-section { + background: var(--gh-tb); + border: 1px solid var(--gh-bo); + border-radius: 8px; + padding: 12px 14px 14px; +} +.wf-section + .wf-section { + margin-top: 12px; +} +.wf-section-title { + margin: 0 0 10px; + padding-bottom: 8px; + border-bottom: 1px solid var(--gh-bo); + font-size: calc(var(--gh-fz) * 13 / 14); + font-weight: 700; + text-transform: uppercase; + letter-spacing: .04em; + color: var(--gh-btn); +} + +/* Two fields per line */ +.wf-fields { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: 12px 16px; + align-items: end; +} +/* A field left alone on its line takes the full width (e.g. Actor Type until a second field + shows beside it, Approve Limit Amount always) */ +.wf-fields > .wf-field:last-child:nth-child(odd) { + grid-column: 1 / -1; +} +.wf-field { + display: flex; + flex-direction: column; + gap: 5px; + min-width: 0; +} +.wf-field > label { + margin: 0; + font-size: calc(var(--gh-fz) * 13 / 14); + font-weight: 600; + color: var(--gh-ht); +} +.wf-field :is(.k-dropdownlist, .k-textbox, input.form-control) { + width: 100% !important; +} + +/* Checkbox in front of the amount box */ +.wf-inline { + display: flex; + align-items: center; + gap: 10px; +} +.wf-inline input[type=checkbox] { + flex: 0 0 auto; + margin: 0; +} +.wf-inline input:not([type=checkbox]) { + flex: 1 1 auto; + min-width: 0; +} + +/* Checkbox field: box beside its label */ +.wf-field-check { + flex-direction: row; + align-items: center; + gap: 8px; + min-height: var(--gh-h, 34px); +} +.wf-field-check > label { + order: 1; +} +.wf-field-check input[type=checkbox] { + margin: 0; +} + +.wf-add-row { + display: flex; + justify-content: flex-end; + margin: 12px 0 10px; +} + +.wf-actor-grid { + margin: 0; +} + +.wf-step-dialog ::ng-deep .k-dialog-actions { + gap: 8px; +} diff --git a/HRM.UI/ClientApp/src/app/adhoc-feature/work-flow-setup/workflow-rule.component.ts b/HRM.UI/ClientApp/src/app/adhoc-feature/work-flow-setup/workflow-rule.component.ts index 0a2ca15..4444909 100644 --- a/HRM.UI/ClientApp/src/app/adhoc-feature/work-flow-setup/workflow-rule.component.ts +++ b/HRM.UI/ClientApp/src/app/adhoc-feature/work-flow-setup/workflow-rule.component.ts @@ -24,7 +24,8 @@ import { DatePickerModule } from '@progress/kendo-angular-dateinputs'; @Component({ selector: 'app-workflow-rule', - templateUrl: './workflow-rule.component.html' + templateUrl: './workflow-rule.component.html', + styleUrls: ['./workflow-rule.component.scss'] ,changeDetection: ChangeDetectionStrategy.Eager, standalone: false })