-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdate.html
More file actions
96 lines (80 loc) · 2.38 KB
/
date.html
File metadata and controls
96 lines (80 loc) · 2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!doctype html>
<html ng-app="ui.bootstrap.demo">
<head>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.5.3/angular.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.5.3/angular-animate.js"></script>
<script src="//angular-ui.github.io/bootstrap/ui-bootstrap-tpls-1.3.3.js"></script>
<script src="example.js"></script>
<link href="//netdna.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<style>
.full button span {
background-color: limegreen;
border-radius: 32px;
color: black;
}
.partially button span {
background-color: orange;
border-radius: 32px;
color: black;
}
.y-mt20{
margin-top:20px;
}
.y-ml30{
margin-left:30px;
}
.y-ml10{
margin-left:10px;
}
.y-mr10{
margin-right:10px;
}
.well{
background:#ffffff;
}
.y-fw-n{
font-weight:normal;
}
</style>
<div ng-controller="DatepickerDemoCtrl">
<div class="container">
<div class="row">
<div class="col-md-5">
<input type="button" class="form-control" value="{{dt1 | date:'fullDate' }} - {{dt2 | date:'fullDate' }}" ng-click="toggle()">
</div>
</div>
</div>
<div ng-show="myVar">
<div class="container y-mt20">
<div class="row">
<form class="form-inline">
<div class="form-group">
<label class="y-mr10 y-fw-n">从</label>
<input type="text" class="form-control" value="{{dt1 | date:'fullDate' }}" disabled>
</div>
<div class="form-group">
<label class="y-mr10 y-ml10 y-fw-n">到</label>
<input type="text" class="form-control" value="{{dt2 | date:'fullDate' }}" disabled>
</div>
<button type="button" class="btn btn-default y-ml30 y-mr10" ng-click="toggle()">取消</button>
<button type="button" class="btn btn-success" ng-click="toggle()">确定</button>
</form>
</div>
</div>
<div class="container y-mt20">
<div class="row">
<div style="display:inline-block; min-height:290px;">
<uib-datepicker ng-model="dt1" class="well well-sm" datepicker-options="options"></uib-datepicker>
</div>
<div style="display:inline-block; min-height:290px;">
<uib-datepicker ng-model="dt2" class="well well-sm" datepicker-options="options"></uib-datepicker>
</div>
<hr />
</div>
</div>
</div>
</div>
</body>
</html>