forked from angular-ui/bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(timepicker): fix look with bootstrap3
Closes angular-ui#1285
- Loading branch information
Showing
3 changed files
with
34 additions
and
59 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,26 @@ | ||
<span> | ||
<div class="row"> | ||
<div class="col-xs-4 text-center"> | ||
<a ng-click="incrementHours()" class="btn btn-link"><i class="glyphicon glyphicon-chevron-up"></i></a> | ||
</div> | ||
<div class="col-xs-6 text-center"> | ||
<a ng-click="incrementMinutes()" class="btn btn-link"><i class="glyphicon glyphicon-chevron-up"></i></a> | ||
</div> | ||
<div class="col-xs-2"> </div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-xs-4"> | ||
<div class="form-group" ng-class="{'has-error': invalidHours}" style="margin-bottom: 0px"> | ||
<input type="text" ng-model="hours" ng-change="updateHours()" class="form-control text-center" ng-mousewheel="incrementHours()" ng-readonly="readonlyInput" maxlength="2"> | ||
</div> | ||
</div> | ||
<div class="col-xs-6"> | ||
<div class="input-group" ng-class="{'has-error': invalidMinutes}"> | ||
<span class="input-group-addon">:</span> | ||
<input type="text" ng-model="minutes" ng-change="updateMinutes()" class="form-control text-center" ng-readonly="readonlyInput" maxlength="2"> | ||
</div> | ||
</div> | ||
<div class="col-xs-2"> | ||
<button ng-click="toggleMeridian()" class="btn btn-default text-center" ng-show="showMeridian">{{meridian}}</button> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-xs-4 text-center"> | ||
<a ng-click="decrementHours()" class="btn btn-link"><i class="glyphicon glyphicon-chevron-down"></i></a> | ||
</div> | ||
<div class="col-xs-6 text-center"> | ||
<a ng-click="decrementMinutes()" class="btn btn-link"><i class="glyphicon glyphicon-chevron-down"></i></a> | ||
</div> | ||
<div class="col-xs-2"> </div> | ||
</div> | ||
</span> | ||
<table> | ||
<tbody> | ||
<tr class="text-center"> | ||
<td><a ng-click="incrementHours()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-up"></span></a></td> | ||
<td> </td> | ||
<td><a ng-click="incrementMinutes()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-up"></span></a></td> | ||
<td ng-show="showMeridian"></td> | ||
</tr> | ||
<tr> | ||
<td style="width:50px;" class="form-group" ng-class="{'has-error': invalidHours}"> | ||
<input type="text" ng-model="hours" ng-change="updateHours()" class="form-control text-center" ng-mousewheel="incrementHours()" ng-readonly="readonlyInput" maxlength="2"> | ||
</td> | ||
<td>:</td> | ||
<td style="width:50px;" class="form-group" ng-class="{'has-error': invalidMinutes}"> | ||
<input type="text" ng-model="minutes" ng-change="updateMinutes()" class="form-control text-center" ng-readonly="readonlyInput" maxlength="2"> | ||
</td> | ||
<td ng-show="showMeridian"><button class="btn btn-default text-center" ng-click="toggleMeridian()">{{meridian}}</button></td> | ||
</tr> | ||
<tr class="text-center"> | ||
<td><a ng-click="decrementHours()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-down"></span></a></td> | ||
<td> </td> | ||
<td><a ng-click="decrementMinutes()" class="btn btn-link"><span class="glyphicon glyphicon-chevron-down"></span></a></td> | ||
<td ng-show="showMeridian"></td> | ||
</tr> | ||
</tbody> | ||
</table> |