Mark some text as translatable
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
This commit is contained in:
@@ -19,11 +19,11 @@
|
||||
<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">from <a (click)="handleOpenSelectPeriodModal($event)" href="#">{{startEndCaption}}</a></label>
|
||||
<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">Restrict to visible area</label>
|
||||
<label class="form-check-label" for="filtercheck2" i18n>Restrict to visible area</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="shortcuts">
|
||||
|
@@ -67,7 +67,7 @@ export class MapSearchComponent {
|
||||
public disabled: boolean = true;
|
||||
|
||||
constructor(private typeaheadService: TypeaheadService, private timespanService: TimespanService) {
|
||||
this.filterOptionsLocal = { query: "", tags: "", startDate: null, endDate: null, bboxFilter: true, itemType: null, itemCode:null,level:0,parentCode:null,bbox:[] };
|
||||
this.filterOptionsLocal = { query: "", tags: "", startDate: null, endDate: null, bboxFilter: false, itemType: null, itemCode:null,level:0,parentCode:null,bbox:[] };
|
||||
}
|
||||
|
||||
search = (text$: Observable<string>) =>
|
||||
|
@@ -1,31 +1,31 @@
|
||||
<ng-template #content let-c="close" let-d="dismiss">
|
||||
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title" i18n>Select period</h4>
|
||||
<button type="button" class="close" aria-label="Close" (click)="d('Cross click'); onCloseModal.emit()">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<ngb-datepicker #dp ngModel (ngModelChange)="onDateChange($event)" [displayMonths]="2" [dayTemplate]="t">
|
||||
</ngb-datepicker>
|
||||
|
||||
<ng-template #t let-date="date" let-focused="focused">
|
||||
<span class="custom-day"
|
||||
[class.focused]="focused"
|
||||
[class.range]="isFrom(date) || isTo(date) || isInside(date) || isHovered(date)"
|
||||
[class.faded]="isHovered(date) || isInside(date)"
|
||||
(mouseenter)="hoveredDate = date"
|
||||
(mouseleave)="hoveredDate = null">
|
||||
{{ date.day }}
|
||||
</span>
|
||||
</ng-template>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" class="btn btn-primary" (click)="handleSelect($event)" i18n>Select</button>
|
||||
<button type="button" class="btn btn-secondary" (click)="c('Close click'); onCloseModal.emit()" i18n>Close</button>
|
||||
</div>
|
||||
|
||||
</ng-template>
|
||||
|
||||
|
||||
<ng-template #content let-c="close" let-d="dismiss">
|
||||
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title" i18n>Select period</h4>
|
||||
<button type="button" class="close" aria-label="Close" (click)="d('Cross click'); onCloseModal.emit()">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<ngb-datepicker #dp ngModel (ngModelChange)="onDateChange($event)" [displayMonths]="2" [dayTemplate]="t">
|
||||
</ngb-datepicker>
|
||||
|
||||
<ng-template #t let-date="date" let-focused="focused">
|
||||
<span class="custom-day"
|
||||
[class.focused]="focused"
|
||||
[class.range]="isFrom(date) || isTo(date) || isInside(date) || isHovered(date)"
|
||||
[class.faded]="isHovered(date) || isInside(date)"
|
||||
(mouseenter)="hoveredDate = date"
|
||||
(mouseleave)="hoveredDate = null">
|
||||
{{ date.day }}
|
||||
</span>
|
||||
</ng-template>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" class="btn btn-primary" (click)="handleSelect($event)" i18n>Select</button>
|
||||
<button type="button" class="btn btn-secondary" (click)="c('Close click'); onCloseModal.emit()" i18n="@@buttonClose">Close</button>
|
||||
</div>
|
||||
|
||||
</ng-template>
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user