The Date Options dropdown UI added as a result of bug
1717025
hides the state of the "checkboxes" for custom due date and
the datepicker wasn't disabled when custom due date was disabled.
This addresses these UX issues, to that the user has visual feedback
as to the state of that option.
Signed-off-by: Cesar Velez <cesar.velez@equinoxinitiative.org>
Signed-off-by: Rogan Hamby <rogan.hamby@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
<div class="input-group">
<div class="input-group-btn" uib-dropdown>
- <button type="button" class="btn btn-default" uib-dropdown-toggle>
+ <button type="button" ng-class="{'btn-success' : date_options.has_sticky_date}" class="btn btn-default" uib-dropdown-toggle>
[% l('Date Options') %]
<span class="caret"></span>
</button>
</div> -->
<!-- FIXME: This needs a time component as well, but type="datetime"
is not yet supported by any browsers -->
- <div><eg-date-input ng-model="checkoutArgs.due_date"></eg-date-input>
+ <div>
+ <eg-date-input ng-model="checkoutArgs.due_date" ng-disabled="!date_options.has_sticky_date"></eg-date-input>
</div>
</div>
</div>