This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
__author__ = 'hidashun' | |
import re | |
def replace_with_pattern(pattern, replace, text): | |
pattern = re.compile(pattern, flags=re.MULTILINE | re.VERBOSE) | |
return pattern.sub(replace, text) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import OrderedDict | |
from django.apps import apps | |
from django.contrib.admin import AdminSite | |
from django.core.urlresolvers import reverse, NoReverseMatch | |
from django.template.response import TemplateResponse | |
from django.utils.text import capfirst | |
from django.views.decorators.cache import never_cache | |
import six | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<mat-form-field> | |
<mat-date-range-input [formGroup]="range" [rangePicker]="picker"> | |
<input matStartDate formControlName="start" placeholder="Start Date"> | |
<input matEndDate formControlName="end" placeholder="End Date"> | |
</mat-date-range-input> | |
<mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle> | |
<mat-date-range-picker #picker></mat-date-range-picker> | |
</mat-form-field> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Component} from '@angular/core'; | |
import {FormControl, FormGroup} from '@angular/forms'; | |
@Component({ | |
selector: 'app-date-range-picker-form', | |
templateUrl: './date-range-picker-form.component.html', | |
}) | |
export class DateRangePickerFormComponent { | |
range = new FormGroup({ | |
start: new FormControl(), |