20 lines
		
	
	
		
			871 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			871 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!-- Render (no edit). -->
 | |
| <ion-item *ngIf="!edit && field && field.name">
 | |
|     <ion-label>
 | |
|         <p class="item-heading">{{ field.name }}</p>
 | |
|         <p *ngIf="valueNumber">{{ valueNumber * 1000 | coreFormatDate }}</p>
 | |
|         <p *ngIf="displayValue">{{ displayValue }}</p>
 | |
|     </ion-label>
 | |
| </ion-item>
 | |
| 
 | |
| <!-- Edit. -->
 | |
| <ion-item *ngIf="edit && field && field.shortname && form" class="ion-text-wrap" [formGroup]="form">
 | |
|     <ion-label position="stacked">
 | |
|         <span [core-mark-required]="required">{{ field.name }}</span>
 | |
|     </ion-label>
 | |
|     <ion-datetime [formControlName]="modelName" [placeholder]="'core.choosedots' | translate" [displayFormat]="format" [max]="max"
 | |
|         [min]="min" [monthNames]="monthNames" [displayTimezone]="displayTimezone">
 | |
|     </ion-datetime>
 | |
|     <core-input-errors [control]="form.controls[modelName]"></core-input-errors>
 | |
| </ion-item>
 |