2017-05-10 11:04:06 +02:00
|
|
|
<div class="squad-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)="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>
|
|
|
|
</form>
|
|
|
|
<a class="pull-right btn btn-success" (click)="openNewSquadForm()">
|
|
|
|
Neues Squad 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)="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"
|
|
|
|
[squad]="squad"
|
2017-05-16 20:06:00 +02:00
|
|
|
(squadDelete)="deleteSquad(squad)"
|
2017-05-10 11:04:06 +02:00
|
|
|
(squadSelected)="selectSquad($event)"
|
|
|
|
[selected]="squad._id == selectedSquadId">
|
|
|
|
</pjm-squad-item>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|