2017-10-06 20:11:18 +02:00
|
|
|
<div class="select-list">
|
|
|
|
<div class="input-group list-header pull-left">
|
|
|
|
<label class="radio-inline">
|
|
|
|
<input type="radio" name="fractSelect"
|
|
|
|
[checked]="(fractionRadioSelect == undefined) ? 'true' : 'false'"
|
|
|
|
[(ngModel)]="fractionRadioSelect"
|
|
|
|
(change)="filterSquadsByFraction(query.value)">Alle
|
|
|
|
</label>
|
|
|
|
<label class="radio-inline">
|
|
|
|
<input type="radio" name="fractSelect" value="blufor"
|
|
|
|
[(ngModel)]="fractionRadioSelect"
|
|
|
|
#fractRadioBufor
|
|
|
|
(change)="filterSquadsByFraction(query.value, fractRadioBufor.value)">NATO
|
|
|
|
</label>
|
|
|
|
<label class="radio-inline">
|
|
|
|
<input type="radio" name="fractSelect" value="opfor"
|
|
|
|
[(ngModel)]="fractionRadioSelect"
|
|
|
|
#fractRadioOpfor
|
|
|
|
(change)="filterSquadsByFraction(query.value, fractRadioOpfor.value)">CSAT
|
|
|
|
</label>
|
2017-05-10 11:04:06 +02:00
|
|
|
<a class="pull-right btn btn-success" (click)="openNewSquadForm()">
|
2017-10-06 20:11:18 +02:00
|
|
|
Squad hinzufügen
|
2017-05-10 11:04:06 +02:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="input-group search-bar" style="padding-top: 0;">
|
|
|
|
<input id="search-tasks"
|
|
|
|
type="text" #query class="form-control"
|
|
|
|
(keyup.enter)="findSquads(query.value)"
|
|
|
|
[formControl]="searchTerm">
|
|
|
|
<span class="input-group-btn">
|
|
|
|
<button class="btn btn-default" type="button"
|
|
|
|
(click)="findSquads(query.value)">
|
|
|
|
Suchen
|
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<pjm-squad-item *ngFor="let squad of squads$ | async"
|
2017-09-03 12:49:59 +02:00
|
|
|
[squad]="squad"
|
|
|
|
(squadDelete)="deleteSquad(squad)"
|
|
|
|
(squadSelected)="selectSquad($event)"
|
|
|
|
[selected]="squad._id == selectedSquadId">
|
2017-05-10 11:04:06 +02:00
|
|
|
</pjm-squad-item>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|