opt-cc/static/src/app/statistic/campaign/campaign-submit/campaign-submit.component.html

30 lines
801 B
HTML
Raw Normal View History

<form #form="ngForm" (keydown.enter)="$event.preventDefault()" class="overview">
2018-04-28 10:44:52 +02:00
<h3 *ngIf="campaign._id">Kampagne editieren</h3>
<h3 *ngIf="!campaign._id">Neue Kampagne hinzufügen</h3>
2017-09-14 11:47:41 +02:00
<div class="form-group">
<label for="title">Titel</label>
<input type="text" class="form-control"
[(ngModel)]="campaign.title"
name="title"
id="title"
required maxlength="50"/>
2018-03-08 10:17:10 +01:00
<show-error displayName="Name" controlPath="title"></show-error>
2017-09-14 11:47:41 +02:00
</div>
<button id="cancel"
(click)="cancel()"
class="btn btn-default">
Abbrechen
</button>
<button id="save"
type="submit"
2017-09-14 11:47:41 +02:00
(click)="saveCampaign()"
class="btn btn-default"
[disabled]="!form.valid">
Bestätigen
</button>
</form>