51 lines
1.8 KiB
HTML
51 lines
1.8 KiB
HTML
<div class="select-list">
|
|
<div class="input-group list-header">
|
|
<form class="pull-left">
|
|
<label class="radio-inline">
|
|
<input type="radio" name="fractSelect"
|
|
[checked]="(fractionRadioSelect == undefined) ? 'true' : 'false'"
|
|
[(ngModel)]="fractionRadioSelect"
|
|
(change)="filterRanks(query.value, '')">Alle
|
|
</label>
|
|
<label class="radio-inline">
|
|
<input type="radio" name="fractSelect" value="blufor"
|
|
[(ngModel)]="fractionRadioSelect"
|
|
#fractRadioBufor
|
|
(change)="filterRanks(query.value, fractRadioBufor.value)">NATO
|
|
</label>
|
|
<label class="radio-inline">
|
|
<input type="radio" name="fractSelect" value="opfor"
|
|
[(ngModel)]="fractionRadioSelect"
|
|
#fractRadioOpfor
|
|
(change)="filterRanks(query.value, fractRadioOpfor.value)">CSAT
|
|
</label>
|
|
</form>
|
|
<a class="pull-right btn btn-success" (click)="openNewRankForm()">
|
|
Rang hinzufügen
|
|
</a>
|
|
</div>
|
|
|
|
<div class="input-group list-header">
|
|
<input id="search-tasks"
|
|
type="text" #query class="form-control"
|
|
(keyup.enter)="filterRanks(query.value, fractionRadioSelect)"
|
|
[formControl]="searchTerm">
|
|
<span class="input-group-btn">
|
|
<button class="btn btn-default" type="button"
|
|
(click)="filterRanks(query.value, fractionRadioSelect)">
|
|
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>
|