| 
									
										
										
										
											2018-07-17 10:07:12 +02:00
										 |  |  | <form #form="ngForm" (keydown.enter)="$event.preventDefault()" class="overview"> | 
					
						
							| 
									
										
										
										
											2018-10-03 11:54:37 +02:00
										 |  |  |   <h3 *ngIf="campaign._id">{{'stats.campaign.submit.headline.edit' | translate}}</h3> | 
					
						
							|  |  |  |   <h3 *ngIf="!campaign._id">{{'stats.campaign.submit.headline.new' | translate}}</h3> | 
					
						
							| 
									
										
										
										
											2017-09-14 11:47:41 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |   <div class="form-group"> | 
					
						
							| 
									
										
										
										
											2018-10-03 11:54:37 +02:00
										 |  |  |     <label for="title">{{'stats.campaign.submit.title' | translate}}</label> | 
					
						
							| 
									
										
										
										
											2017-09-14 11:47:41 +02:00
										 |  |  |     <input type="text" class="form-control" | 
					
						
							|  |  |  |            [(ngModel)]="campaign.title" | 
					
						
							|  |  |  |            name="title" | 
					
						
							|  |  |  |            id="title" | 
					
						
							|  |  |  |            required maxlength="50"/> | 
					
						
							| 
									
										
										
										
											2018-10-03 11:54:37 +02:00
										 |  |  |     <show-error displayName="{{'stats.campaign.submit.title' | translate}}" controlPath="title"></show-error> | 
					
						
							| 
									
										
										
										
											2017-09-14 11:47:41 +02:00
										 |  |  |   </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   <button id="cancel" | 
					
						
							|  |  |  |           (click)="cancel()" | 
					
						
							|  |  |  |           class="btn btn-default"> | 
					
						
							| 
									
										
										
										
											2018-10-03 11:54:37 +02:00
										 |  |  |     {{'stats.campaign.submit.button.cancel' | translate}} | 
					
						
							| 
									
										
										
										
											2017-09-14 11:47:41 +02:00
										 |  |  |   </button> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   <button id="save" | 
					
						
							| 
									
										
										
										
											2018-07-17 10:07:12 +02:00
										 |  |  |           type="submit" | 
					
						
							| 
									
										
										
										
											2017-09-14 11:47:41 +02:00
										 |  |  |           (click)="saveCampaign()" | 
					
						
							|  |  |  |           class="btn btn-default" | 
					
						
							|  |  |  |           [disabled]="!form.valid"> | 
					
						
							| 
									
										
										
										
											2018-10-03 11:54:37 +02:00
										 |  |  |     {{'stats.campaign.submit.button.submit' | translate}} | 
					
						
							| 
									
										
										
										
											2017-09-14 11:47:41 +02:00
										 |  |  |   </button> | 
					
						
							|  |  |  | </form> |