52 lines
1.8 KiB
HTML
52 lines
1.8 KiB
HTML
<div class="rank-list">
|
|
<h2>Übersicht</h2>
|
|
<div class="input-group search-bar" style="padding-bottom: 5px; width:100%">
|
|
<form class="pull-left form-group">
|
|
<label class="radio-inline">
|
|
<input type="radio" name="fractSelect"
|
|
[checked]="(fractionRadioSelect == undefined) ? 'true' : 'false'"
|
|
[(ngModel)]="fractionRadioSelect"
|
|
(change)="filterRanksByFraction(query.value)">Alle
|
|
</label>
|
|
<label class="radio-inline">
|
|
<input type="radio" name="fractSelect" value="blufor"
|
|
[(ngModel)]="fractionRadioSelect"
|
|
#fractRadioBufor
|
|
(change)="filterRanksByFraction(query.value, fractRadioBufor.value)">NATO
|
|
</label>
|
|
<label class="radio-inline">
|
|
<input type="radio" name="fractSelect" value="opfor"
|
|
[(ngModel)]="fractionRadioSelect"
|
|
#fractRadioOpfor
|
|
(change)="filterRanksByFraction(query.value, fractRadioOpfor.value)">CSAT
|
|
</label>
|
|
</form>
|
|
<a class="pull-right btn btn-success" (click)="openNewRankForm()">
|
|
Neuen Rang hinzufügen
|
|
</a>
|
|
</div>
|
|
|
|
<div class="input-group search-bar" style="padding-top: 0;">
|
|
<input id="search-tasks"
|
|
type="text" #query class="form-control"
|
|
(keyup.enter)="findRanks(query.value)"
|
|
[formControl]="searchTerm">
|
|
<span class="input-group-btn">
|
|
<button class="btn btn-default" type="button"
|
|
(click)="findRanks(query.value)">
|
|
Suchen
|
|
</button>
|
|
</span>
|
|
</div>
|
|
|
|
<div>
|
|
<pjm-rank-item *ngFor="let rank of ranks$ | async"
|
|
[rank]="rank"
|
|
(rankDelete)="deleteRank(rank)"
|
|
(rankSelected)="selectRank($event)"
|
|
[selected]="rank._id == selectedRankId">
|
|
</pjm-rank-item>
|
|
</div>
|
|
|
|
</div>
|