forked from mgcrea/angular-strap
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtimepicker.tpl.html
More file actions
86 lines (86 loc) · 3.38 KB
/
timepicker.tpl.html
File metadata and controls
86 lines (86 loc) · 3.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
<div class="dropdown-menu timepicker" style="min-width: 0px;width: auto;">
<table height="100%">
<thead>
<tr class="text-center">
<th>
<button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(-1, 0)">
<i class="{{ $iconUp }}"></i>
</button>
</th>
<th>
</th>
<th>
<button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(-1, 1)">
<i class="{{ $iconUp }}"></i>
</button>
</th>
<th>
</th>
<th>
<button ng-if="showSeconds" tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(-1, 2)">
<i class="{{ $iconUp }}"></i>
</button>
</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="(i, row) in rows">
<td class="text-center">
<button tabindex="-1" style="width: 100%" type="button" class="btn btn-default" ng-class="{'btn-primary': row[0].selected}" ng-click="$select(row[0].date, 0)" ng-disabled="row[0].disabled">
<span ng-class="{'text-muted': row[0].muted}" ng-bind="row[0].label"></span>
</button>
</td>
<td>
<span ng-bind="i == midIndex ? timeSeparator : ' '"></span>
</td>
<td class="text-center">
<button tabindex="-1" ng-if="row[1].date" style="width: 100%" type="button" class="btn btn-default" ng-class="{'btn-primary': row[1].selected}" ng-click="$select(row[1].date, 1)" ng-disabled="row[1].disabled">
<span ng-class="{'text-muted': row[1].muted}" ng-bind="row[1].label"></span>
</button>
</td>
<td>
<span ng-bind="i == midIndex ? timeSeparator : ' '"></span>
</td>
<td class="text-center">
<button tabindex="-1" ng-if="showSeconds && row[2].date" style="width: 100%" type="button" class="btn btn-default" ng-class="{'btn-primary': row[2].selected}" ng-click="$select(row[2].date, 2)" ng-disabled="row[2].disabled">
<span ng-class="{'text-muted': row[2].muted}" ng-bind="row[2].label"></span>
</button>
</td>
<td ng-if="showAM">
</td>
<td ng-if="showAM">
<button tabindex="-1" ng-show="i == midIndex - !isAM * 1" style="width: 100%" type="button" ng-class="{'btn-primary': !!isAM}" class="btn btn-default" ng-click="$switchMeridian()" ng-disabled="el.disabled">AM</button>
<button tabindex="-1" ng-show="i == midIndex + 1 - !isAM * 1" style="width: 100%" type="button" ng-class="{'btn-primary': !isAM}" class="btn btn-default" ng-click="$switchMeridian()" ng-disabled="el.disabled">PM</button>
</td>
</tr>
</tbody>
<tfoot>
<tr class="text-center">
<th>
<button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(1, 0)">
<i class="{{ $iconDown }}"></i>
</button>
</th>
<th>
</th>
<th>
<button tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(1, 1)">
<i class="{{ $iconDown }}"></i>
</button>
</th>
<th>
</th>
<th>
<button ng-if="showSeconds" tabindex="-1" type="button" class="btn btn-default pull-left" ng-click="$arrowAction(1, 2)">
<i class="{{ $iconDown }}"></i>
</button>
</th>
</tr>
</tfoot>
</table>
</div>