Skip to content

Commit

Permalink
Merge #1977
Browse files Browse the repository at this point in the history
1977: Unifying date components r=jniles

Unifying date components in patient registry
  • Loading branch information
bors[bot] committed Aug 22, 2017
2 parents 276168c + dbd6ef2 commit 75a8a95
Showing 1 changed file with 51 additions and 6 deletions.
57 changes: 51 additions & 6 deletions client/src/modules/templates/bhPeriodSelect.tmpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,60 @@
</div>
</div>
<div ng-show="$ctrl.customExpanded">

<div class="row">
<div class="col-md-6">
<label translate>PERIODS.CUSTOM_FROM</label>
<input class="form-control" ng-model="$ctrl.customSelection.from" type="date">
<div class="col-md-5">
<div class="input-group">
<input
id="modal-date-from"
name="dateFrom"
type="text"
class="form-control"
uib-datepicker-popup="{{ $ctrl.dateFormat }}"
datepicker-options="$ctrl.pickerOptions"
is-open="$ctrl.dateFromIsOpen"
show-button-bar="false"
ng-model="$ctrl.customSelection.from"
ng-change="$ctrl.onChange"
ng-required="$ctrl.required">
<span class="input-group-btn">
<button class="btn btn-default" type="button" ng-click="$ctrl.dateFromIsOpen =! $ctrl.dateFromIsOpen">
<i class="fa fa-calendar-plus-o"></i>
</button>
</span>
</div>
</div>
<div class="col-md-2">

</div>
<div class="col-md-5">
<div class="input-group">
<input
id="modal-date-to"
name="dateTo"
type="text"
class="form-control"
uib-datepicker-popup="{{ $ctrl.dateFormat }}"
datepicker-options="$ctrl.pickerOptions"
is-open="$ctrl.dateToIsOpen"
show-button-bar="false"
ng-model="$ctrl.customSelection.to"
ng-change="$ctrl.onChange"
ng-required="$ctrl.required"
>
<span class="input-group-btn">
<button class="btn btn-default" type="button" ng-click="$ctrl.dateToIsOpen =! $ctrl.dateToIsOpen">
<i class="fa fa-calendar-plus-o"></i>
</button>
</span>
</div>
<div class="col-md-6">
<label translate>PERIODS.CUSTOM_TO</label>
<input class="form-control" ng-model="$ctrl.customSelection.to" type="date">
<div class="help-block" ng-messages="DateIntervalForm.dateTo.$error" ng-show="$ctrl.validationTrigger && DateIntervalForm.dateTo.$invalid">
<div ng-messages-include="modules/templates/messages.tmpl.html"></div>
</div>

</div>


</div>

<div class="row" style="margin-top : 5px">
Expand Down

0 comments on commit 75a8a95

Please sign in to comment.