Fixed formattings #133

This commit is contained in:
Sven Heidemann 2023-02-21 17:29:08 +01:00
parent f3024d2ea5
commit 23ee963d65
2 changed files with 18 additions and 23 deletions

View File

@ -97,34 +97,29 @@
<tr> <tr>
<th class="table-header-small"> <th class="table-header-small">
<form [formGroup]="filterForm"> <form [formGroup]="filterForm">
<input type="text" pInputText formControlName="id" <input type="text" pInputText formControlName="id" placeholder="{{'view.server.members.headers.id' | translate}}">
placeholder="{{'view.server.members.headers.id' | translate}}">
</form> </form>
</th> </th>
<th class="table-header-medium"> <th class="table-header-medium">
<form [formGroup]="filterForm"> <form [formGroup]="filterForm">
<input type="text" pInputText formControlName="discordId" <input type="text" pInputText formControlName="discordId" placeholder="{{'view.server.members.headers.discord_id' | translate}}">
placeholder="{{'view.server.members.headers.discord_id' | translate}}">
</form> </form>
</th> </th>
<th> <th>
<form [formGroup]="filterForm"> <form [formGroup]="filterForm">
<input type="text" pInputText formControlName="name" <input type="text" pInputText formControlName="name" placeholder="{{'view.server.members.headers.name' | translate}}">
placeholder="{{'view.server.members.headers.name' | translate}}">
</form> </form>
</th> </th>
<th></th> <th></th>
<th></th> <th></th>
<th class="table-header-small-dropdown"> <th class="table-header-small-dropdown">
<form [formGroup]="filterForm"> <form [formGroup]="filterForm">
<p-dropdown formControlName="leftServer" [options]="leftServerOptions" <p-dropdown formControlName="leftServer" [options]="leftServerOptions" placeholder="{{'view.server.members.headers.left_server' | translate}}"></p-dropdown>
placeholder="{{'view.server.members.headers.left_server' | translate}}"></p-dropdown>
</form> </form>
</th> </th>
<th class="table-header-small-dropdown"> <th class="table-header-small-dropdown">
<form [formGroup]="filterForm"> <form [formGroup]="filterForm">
<p-dropdown formControlName="level" [options]="levels" <p-dropdown formControlName="level" [options]="levels" placeholder="{{'view.server.members.headers.level' | translate}}"></p-dropdown>
placeholder="{{'view.server.members.headers.level' | translate}}"></p-dropdown>
</form> </form>
</th> </th>
<th></th> <th></th>
@ -169,7 +164,8 @@
<p-cellEditor> <p-cellEditor>
<ng-template pTemplate="input"> <ng-template pTemplate="input">
<p-inputNumber class="table-edit-input" styleClass="input-number" [(ngModel)]="member.xp" mode="decimal" [min]="0" [useGrouping]="false" [showButtons]="true" <p-inputNumber class="table-edit-input" styleClass="input-number" [(ngModel)]="member.xp" mode="decimal" [min]="0" [useGrouping]="false" [showButtons]="true"
inputId="minmax-buttons"></p-inputNumber> inputId="minmax-buttons">
</p-inputNumber>
</ng-template> </ng-template>
<ng-template pTemplate="output"> <ng-template pTemplate="output">
{{member.xp}} {{member.xp}}
@ -199,8 +195,7 @@
<td> <td>
<p-cellEditor> <p-cellEditor>
<ng-template pTemplate="input"> <ng-template pTemplate="input">
<p-dropdown [options]="levels" [(ngModel)]="member.level" <p-dropdown [options]="levels" [(ngModel)]="member.level" placeholder="{{'view.server.members.headers.level' | translate}}"></p-dropdown>
placeholder="{{'view.server.members.headers.level' | translate}}"></p-dropdown>
</ng-template> </ng-template>
<ng-template pTemplate="output"> <ng-template pTemplate="output">
{{member.level.name}} {{member.level.name}}

View File

@ -1,15 +1,15 @@
import {NgModule} from "@angular/core"; import { NgModule } from "@angular/core";
import {RouterModule, Routes} from "@angular/router"; import { RouterModule, Routes } from "@angular/router";
import {ServerDashboardComponent} from "./server-dashboard/server-dashboard.component"; import { ServerDashboardComponent } from "./server-dashboard/server-dashboard.component";
import {ProfileComponent} from "./profile/profile.component"; import { ProfileComponent } from "./profile/profile.component";
import {MembersComponent} from "./members/members.component"; import { MembersComponent } from "./members/members.component";
const routes: Routes = [ const routes: Routes = [
{path: '', component: ServerDashboardComponent}, { path: "", component: ServerDashboardComponent },
{path: 'members', component: MembersComponent}, { path: "members", component: MembersComponent },
{path: 'members/:memberId', component: ProfileComponent}, { path: "members/:memberId", component: ProfileComponent },
{path: 'auto-roles', loadChildren: () => import('./auto-role/auto-role.module').then(m => m.AutoRoleModule)}, { path: "auto-roles", loadChildren: () => import("./auto-role/auto-role.module").then(m => m.AutoRoleModule) },
{path: 'levels', loadChildren: () => import('./levels/levels.module').then(m => m.LevelsModule)}, { path: "levels", loadChildren: () => import("./levels/levels.module").then(m => m.LevelsModule) }
]; ];
@NgModule({ @NgModule({