AltitudeWeb/frontend/src/app/bans/bans.component.html

45 lines
1.7 KiB
HTML
Raw Normal View History

2025-04-11 19:20:02 +00:00
<ng-container>
<app-header [current_page]="'bans'" height="200px" background_image="/public/img/backgrounds/staff.png"
[overlay_gradient]="0.5">>
<div class="title" header-content>
<h1>Punishment History</h1>
</div>
</app-header>
2025-04-11 20:24:25 +00:00
<main>
<section class="darkmodeSection">
<div class="container">
<div class="columnSection">
<div class="historyTypeContainer">
<button class="button-outer" (click)="punishmentType = 'all'">All</button>
<button class="button-outer" (click)="punishmentType = 'ban'">Bans</button>
<button class="button-outer" (click)="punishmentType = 'mute'">Mutes</button>
<button class="button-outer" (click)="punishmentType = 'warn'">Warnings</button>
2025-04-11 20:24:25 +00:00
</div>
<div class="historySearchContainer">
<input class="historySearch"
type="text"
placeholder="Search.."
[(ngModel)]="searchTerm"
(input)="filterNames()"
>
<button class="searchButton" (click)="search()">Search</button>
<div class="search-dropdown" *ngIf="filteredNames.length > 0 && searchTerm">
<div
class="dropdown-item"
*ngFor="let name of filteredNames"
(mousedown)="selectName(name)">
{{ name }}
</div>
</div>
2025-04-11 20:24:25 +00:00
</div>
</div>
<div class="historyTable">
<app-history [userType]="userType" [punishmentType]="punishmentType"
[page]="page" [searchTerm]="finalSearchTerm"></app-history>
</div>
2025-04-11 19:56:46 +00:00
</div>
2025-04-11 20:24:25 +00:00
</section>
</main>
2025-04-11 19:20:02 +00:00
</ng-container>