Merge pull request 'Logger Manager Screen design' (#5) from mazdak/UX-1272 into dev-pending-09-12-2025
Reviewed-on: https://ct.mfsys.com.pk/aConnect/aConnect-UX/pulls/5pull/6/head
commit
6d88ae8767
@ -1 +1,209 @@
|
|||||||
<p>logging works!</p>
|
<div id="layout-wrapper">
|
||||||
|
<div class="inner-pg-sp">
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<div class="d-sm-flex align-items-center justify-content-between navbar-header p-0">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class="col-xl-12 mt-4">
|
||||||
|
<div class="card border">
|
||||||
|
<div class="card-body">
|
||||||
|
<div class="table-section">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<div class="card-body mt-2 p-0">
|
||||||
|
<div class="card mb-0 mt-2">
|
||||||
|
<div
|
||||||
|
class="card-header font-edit-13-child d-flex justify-content-between align-items-center">
|
||||||
|
{{'loggerManager' | translate}}
|
||||||
|
</div>
|
||||||
|
<div class="card-body">
|
||||||
|
<form>
|
||||||
|
<div class="row g-3 mb-3">
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="d-flex align-items-center gap-2">
|
||||||
|
<label for="fromDate" class="text-nowrap">
|
||||||
|
{{ 'fromDate' | translate }}<span
|
||||||
|
class="mandatory">*</span>
|
||||||
|
</label>
|
||||||
|
<div
|
||||||
|
class="password-wrapper position-relative w-100">
|
||||||
|
<div
|
||||||
|
class="d-flex flex-row align-items-stretch">
|
||||||
|
<input type="date" id="fromDate"
|
||||||
|
class="form-control"
|
||||||
|
appNoWhitespaces />
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<!-- <div class="text-danger">
|
||||||
|
{{ 'requiredField' | translate }}
|
||||||
|
</div> -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-md-6">
|
||||||
|
<div class="d-flex align-items-start gap-2">
|
||||||
|
<label for="toDate" class="text-nowrap mt-2">
|
||||||
|
{{ 'toDate' | translate }}<span
|
||||||
|
class="mandatory">*</span>
|
||||||
|
</label>
|
||||||
|
<div
|
||||||
|
class="password-wrapper position-relative w-100">
|
||||||
|
|
||||||
|
<input id="toDate" type="date" class="form-control"
|
||||||
|
maxlength="500"
|
||||||
|
appNoWhitespaces rows="3" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row g-3 mb-3">
|
||||||
|
<div class="col-md-6 ms-auto text-end">
|
||||||
|
<button
|
||||||
|
class="btn btn-primary waves-effect waves-light">{{'findLogs'
|
||||||
|
| translate}}</button>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="container-fluid">
|
||||||
|
<div class="col-xl-12 mt-4">
|
||||||
|
<div class="card border">
|
||||||
|
<div class="card-body">
|
||||||
|
<div class="table-section">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-12">
|
||||||
|
<div class="card-body mt-2 p-0">
|
||||||
|
<div class="card mb-0 mt-2">
|
||||||
|
<div
|
||||||
|
class="card-header font-edit-13-child d-flex justify-content-between align-items-center">
|
||||||
|
{{'loggerManagerDetails' | translate}}
|
||||||
|
<div class="d-flex align-items-center gap-2">
|
||||||
|
<div class="search-box">
|
||||||
|
<input type="text" class="form-control form-control-sm"
|
||||||
|
placeholder="{{ 'search' | translate }}">
|
||||||
|
<i class="fas fa-search search-icon"></i>
|
||||||
|
</div>
|
||||||
|
<i class="materialdesignicons">
|
||||||
|
<ng-container *ngIf="renewalDataExpanded; else collapsedIcon">
|
||||||
|
<i class="dripicons-chevron-up float-end"></i>
|
||||||
|
</ng-container>
|
||||||
|
<ng-template #collapsedIcon>
|
||||||
|
<i class="dripicons-chevron-down float-end"></i>
|
||||||
|
</ng-template>
|
||||||
|
</i>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-body">
|
||||||
|
<div class="table-responsive">
|
||||||
|
<table class="table mb-0 border">
|
||||||
|
<thead class="table-light">
|
||||||
|
<tr>
|
||||||
|
<th>{{'loggingID' | translate}}</th>
|
||||||
|
<th>{{'loggingRequestUri' | translate}}</th>
|
||||||
|
<th>{{'loggingResponseCode' | translate}}</th>
|
||||||
|
<th>{{'loggingRemoteIP' | translate}}</th>
|
||||||
|
<th>{{'loggingTimeTaken' | translate}}</th>
|
||||||
|
<th>{{'loggingDateTime' | translate}}</th>
|
||||||
|
<th>{{'loggingMethod' | translate}}</th>
|
||||||
|
<th>{{'action' | translate}}</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
|
||||||
|
<td>
|
||||||
|
<div
|
||||||
|
class="d-flex justify-content-center gap-2">
|
||||||
|
|
||||||
|
<button class="btn btn-info btn-sm"
|
||||||
|
title="View">
|
||||||
|
<i class="mdi mdi-eye-outline"></i>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<button class="btn btn-secondary btn-sm"
|
||||||
|
title="Edit">
|
||||||
|
<i class="fas fa-pen"></i>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
|
||||||
|
<button class="btn btn-danger btn-sm"
|
||||||
|
title="Delete">
|
||||||
|
<i class="fas fa-trash-alt"></i>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<div
|
||||||
|
class="d-flex justify-content-between align-items-center mt-3">
|
||||||
|
<div class="form-group mb-0">
|
||||||
|
<ng-select class="form-select-sm"
|
||||||
|
[items]="pageSizeOptions" bindLabel="label"
|
||||||
|
bindValue="value" [(ngModel)]="itemsPerPage"
|
||||||
|
[searchable]="false" [clearable]="false"
|
||||||
|
[dropdownPosition]="'top'">
|
||||||
|
</ng-select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="text-muted">
|
||||||
|
{{ 'page' | translate }} {{ 'of' | translate }} ({{
|
||||||
|
'totalItems' | translate }})
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="btn-group">
|
||||||
|
<button
|
||||||
|
class="btn btn-primary waves-effect waves-light">
|
||||||
|
{{ 'previous' | translate }}
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
class="btn btn-primary waves-effect waves-light">
|
||||||
|
{{ 'next' | translate }}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
@ -1,11 +1,28 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
|
import { NgSelectModule } from '@ng-select/ng-select';
|
||||||
|
import { TranslateModule } from '@ngx-translate/core';
|
||||||
|
import { pageSizeOptions } from '../utils/app.constants';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-logging',
|
selector: 'app-logging',
|
||||||
imports: [],
|
imports: [TranslateModule, FormsModule, NgSelectModule, CommonModule, ReactiveFormsModule],
|
||||||
templateUrl: './logging.component.html',
|
templateUrl: './logging.component.html',
|
||||||
styleUrl: './logging.component.scss'
|
styleUrl: './logging.component.scss'
|
||||||
})
|
})
|
||||||
export class LoggingComponent {
|
export class LoggingComponent {
|
||||||
|
currentPage: number = 1;
|
||||||
|
pageSizeOptions = pageSizeOptions
|
||||||
|
renewalDataExpanded: boolean = true
|
||||||
|
itemsPerPage: number = 5;
|
||||||
|
searchText: any;
|
||||||
|
toggleCard(arg0: string) {
|
||||||
|
throw new Error('Method not implemented.');
|
||||||
|
}
|
||||||
|
nextPage() {
|
||||||
|
throw new Error('Method not implemented.');
|
||||||
|
}
|
||||||
|
logsForm: any;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue