Extend editable values for edit war page
parent
266ce9a48a
commit
4b617ec67a
|
@ -39,7 +39,7 @@ export class WarService {
|
||||||
}
|
}
|
||||||
|
|
||||||
updateWar(war: War) {
|
updateWar(war: War) {
|
||||||
return this.http.put(this.config.apiWarPath, war)
|
return this.http.patch(this.config.apiWarPath, war)
|
||||||
.map(res => res.json());
|
.map(res => res.json());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<form #form="ngForm" class="overview">
|
<form #form="ngForm" class="overview">
|
||||||
<h3>Schlacht hinzufügen</h3>
|
<h3>Schlacht bearbeiten</h3>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="title">Titel</label>
|
<label for="title">Titel</label>
|
||||||
|
@ -8,7 +8,6 @@
|
||||||
name="title"
|
name="title"
|
||||||
id="title"
|
id="title"
|
||||||
required maxlength="50"/>
|
required maxlength="50"/>
|
||||||
|
|
||||||
<show-error displayName="Name" controlPath="title"></show-error>
|
<show-error displayName="Name" controlPath="title"></show-error>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -26,12 +25,43 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="log">Logfile</label>
|
<label for="ptBlufor">Punkte NATO</label>
|
||||||
<input id="log" name="log" class="ui-button form-control" type="file"
|
<input type="number" class="form-control"
|
||||||
(change)="fileChange($event)">
|
[(ngModel)]="war.ptBlufor"
|
||||||
<span class="label label-bg label-danger center-block" style="font-size:small" *ngIf="showFileError">
|
name="ptBlufor"
|
||||||
Logfile muss im Format RPT, LOG oder TXT vorliegen
|
id="ptBlufor"
|
||||||
</span>
|
required min="0"/>
|
||||||
|
<show-error displayName="Name" controlPath="ptBlufor"></show-error>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="ptOpfor">Punkte CSAT</label>
|
||||||
|
<input type="number" class="form-control"
|
||||||
|
[(ngModel)]="war.ptOpfor"
|
||||||
|
name="ptOpfor"
|
||||||
|
id="ptOpfor"
|
||||||
|
required min="0"/>
|
||||||
|
<show-error displayName="Name" controlPath="ptOpfor"></show-error>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="endBudgetBlufor">Endbudget NATO</label>
|
||||||
|
<input type="number" class="form-control"
|
||||||
|
[(ngModel)]="war.endBudgetBlufor"
|
||||||
|
name="endBudgetBlufor"
|
||||||
|
id="endBudgetBlufor"
|
||||||
|
required />
|
||||||
|
<show-error displayName="Name" controlPath="endBudgetBlufor"></show-error>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="endBudgetOpfor">Endbudget CSAT</label>
|
||||||
|
<input type="number" class="form-control"
|
||||||
|
[(ngModel)]="war.endBudgetOpfor"
|
||||||
|
name="endBudgetOpfor"
|
||||||
|
id="endBudgetOpfor"
|
||||||
|
required />
|
||||||
|
<show-error displayName="Name" controlPath="endBudgetOpfor"></show-error>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button id="cancel"
|
<button id="cancel"
|
||||||
|
|
Loading…
Reference in New Issue