Add i18n for submit campaign
parent
ccbcece0ab
commit
0adb9b7cf9
|
@ -1,22 +1,21 @@
|
|||
<form #form="ngForm" (keydown.enter)="$event.preventDefault()" class="overview">
|
||||
<h3 *ngIf="campaign._id">Kampagne editieren</h3>
|
||||
<h3 *ngIf="!campaign._id">Neue Kampagne hinzufügen</h3>
|
||||
<h3 *ngIf="campaign._id">{{'stats.campaign.submit.headline.edit' | translate}}</h3>
|
||||
<h3 *ngIf="!campaign._id">{{'stats.campaign.submit.headline.new' | translate}}</h3>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="title">Titel</label>
|
||||
<label for="title">{{'stats.campaign.submit.title' | translate}}</label>
|
||||
<input type="text" class="form-control"
|
||||
[(ngModel)]="campaign.title"
|
||||
name="title"
|
||||
id="title"
|
||||
required maxlength="50"/>
|
||||
|
||||
<show-error displayName="Name" controlPath="title"></show-error>
|
||||
<show-error displayName="{{'stats.campaign.submit.title' | translate}}" controlPath="title"></show-error>
|
||||
</div>
|
||||
|
||||
<button id="cancel"
|
||||
(click)="cancel()"
|
||||
class="btn btn-default">
|
||||
Abbrechen
|
||||
{{'stats.campaign.submit.button.cancel' | translate}}
|
||||
</button>
|
||||
|
||||
<button id="save"
|
||||
|
@ -24,6 +23,6 @@
|
|||
(click)="saveCampaign()"
|
||||
class="btn btn-default"
|
||||
[disabled]="!form.valid">
|
||||
Bestätigen
|
||||
{{'stats.campaign.submit.button.submit' | translate}}
|
||||
</button>
|
||||
</form>
|
||||
|
|
|
@ -66,5 +66,11 @@
|
|||
"stats.war.submit.points": "Punkte",
|
||||
"stats.war.submit.final.budget": "Endbudget",
|
||||
"stats.war.submit.button.submit": "Bestätigen",
|
||||
"stats.war.submit.button.cancel": "Abbrechen"
|
||||
"stats.war.submit.button.cancel": "Abbrechen",
|
||||
|
||||
"stats.campaign.submit.headline.new": "Neue Kampagne hinzufügen",
|
||||
"stats.campaign.submit.headline.edit": "Kampagne editieren",
|
||||
"stats.campaign.submit.title": "Titel",
|
||||
"stats.campaign.submit.button.submit": "Bestätigen",
|
||||
"stats.campaign.submit.button.cancel": "Abbrechen"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue