opt-cc/static/src/app/squads/squad-list/squad-list.component.html

49 lines
1.7 KiB
HTML
Raw Normal View History

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)="filterSquads(query.value, '')">Alle
2017-10-06 20:11:18 +02:00
</label>
<label class="radio-inline">
<input type="radio" name="fractSelect" value="blufor"
[(ngModel)]="fractionRadioSelect"
#fractRadioBufor
(change)="filterSquads(query.value, fractRadioBufor.value)">NATO
2017-10-06 20:11:18 +02:00
</label>
<label class="radio-inline">
<input type="radio" name="fractSelect" value="opfor"
[(ngModel)]="fractionRadioSelect"
#fractRadioOpfor
(change)="filterSquads(query.value, fractRadioOpfor.value)">CSAT
2017-10-06 20:11:18 +02:00
</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)="filterSquads(query.value, fractionRadioSelect)"
2017-05-10 11:04:06 +02:00
[formControl]="searchTerm">
<span class="input-group-btn">
<button class="btn btn-default" type="button"
(click)="filterSquads(query.value, fractionRadioSelect)">
2017-05-10 11:04:06 +02:00
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>