33 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <ng-template #rt let-r="result" let-t="term">
 | |
|   <i [class]="getIcon(r.type)" aria-hidden="true" style="width:2rem"></i>
 | |
|   <ngb-highlight [result]="formatter(r)" [term]="t"></ngb-highlight> 
 | |
| </ng-template>
 | |
| 
 | |
| <div class="map-search collapsed" [ngClass]="{'collapsed':collapsedLocal,searchcollapsed:searchMinifiedLocal}" (click)="$event.stopPropagation()">
 | |
|   <div class="card p-2">
 | |
|     <form class="form" (ngSubmit)="handleSearch($event)">
 | |
|       <div class="input-group">
 | |
|         <button type="button" class="btn btn-outline-secondary" (click)="handleToggleMenu($event)"><i class="fal fa-bars" aria-hidden="true"></i></button>
 | |
|         <input #searchText class="form-control" type="text" (focus)="handleFocus($event)" [ngModel]="searchTextLocal" name="searchTextLocal" (ngModelChange)="handleChange($event)" [ngbTypeahead]="search" [resultTemplate]="rt" [inputFormatter]="formatter" (selectItem)="handleSelect($event)" placeholder="Search" i18n-placeholder />
 | |
|         <button type="submit" class="btn btn-outline-secondary" [disabled]="disabled"><i class="fal fa-search"></i></button>
 | |
|         <button type="button" class="clear btn btn-outline-secondary" [disabled]="!clearEnabled" (click)="handleClearClick($event)"><i class="fas fa-times"></i></button>
 | |
|       </div>
 | |
|       <div class="options">
 | |
|         <div class="form-check">
 | |
|           <input class="form-check-input" (ngModelChange)="handleChangeEnableDateFilter($event)" [ngModel]="dateFilter" name="datefilterEnabled" type="checkbox" value="" id="filtercheck1">
 | |
|           <label class="form-check-label" for="filtercheck1"><span i18n>from</span> <a (click)="handleOpenSelectPeriodModal($event)" href="#">{{startEndCaption}}</a></label>
 | |
|         </div>
 | |
|         <div class="form-check">
 | |
|           <input class="form-check-input" (ngModelChange)="handleChangeEnableBBOXFilter($event)" [ngModel]="filterOptionsLocal.bboxFilter" name="bboxfilterEnabled" type="checkbox" value="" id="filtercheck2">
 | |
|           <label class="form-check-label" for="filtercheck2" i18n>Restrict to visible area</label>
 | |
|         </div>    
 | |
|       </div>
 | |
|       <div class="shortcuts">
 | |
|         <router-outlet name="map-search"></router-outlet>
 | |
|       </div>
 | |
|     </form>
 | |
|     <ng-content></ng-content>
 | |
|   </div>  
 | |
| </div>
 | |
| <fm-map-select-period-modal [modalState]="openedModalName" (onCloseModal)="handleCloseModal()" (onSelect)="handleSelectPeriod($event)" [startDate]="periodLocal.startDate" [endDate]="periodLocal.endDate"></fm-map-select-period-modal>
 |