From 4b617ec67a5b12e3224d79590ca9aae88e5370af Mon Sep 17 00:00:00 2001 From: HardiReady Date: Sun, 29 Apr 2018 10:39:01 +0200 Subject: [PATCH] Extend editable values for edit war page --- static/src/app/services/logs/war.service.ts | 2 +- .../war/war-edit/war-edit.component.html | 46 +++++++++++++++---- 2 files changed, 39 insertions(+), 9 deletions(-) diff --git a/static/src/app/services/logs/war.service.ts b/static/src/app/services/logs/war.service.ts index e4551b1..8072a41 100644 --- a/static/src/app/services/logs/war.service.ts +++ b/static/src/app/services/logs/war.service.ts @@ -39,7 +39,7 @@ export class WarService { } updateWar(war: War) { - return this.http.put(this.config.apiWarPath, war) + return this.http.patch(this.config.apiWarPath, war) .map(res => res.json()); } } diff --git a/static/src/app/statistic/war/war-edit/war-edit.component.html b/static/src/app/statistic/war/war-edit/war-edit.component.html index c86a154..0fb5bc1 100644 --- a/static/src/app/statistic/war/war-edit/war-edit.component.html +++ b/static/src/app/statistic/war/war-edit/war-edit.component.html @@ -1,5 +1,5 @@
-

Schlacht hinzufügen

+

Schlacht bearbeiten

@@ -8,7 +8,6 @@ name="title" id="title" required maxlength="50"/> -
@@ -26,12 +25,43 @@
- - - - Logfile muss im Format RPT, LOG oder TXT vorliegen - + + + +
+ +
+ + + +
+ +
+ + + +
+ +
+ + +