Skip to content

Commit

Permalink
fix(300): use bootstrap date picker
Browse files Browse the repository at this point in the history
HTML5 date type is only supported by Chrome.

Use angular-xeditable + ui-bootstrap ngClick workaround[1], plus a fork that
makes the input button optional[2] as we have space constraints.

Closes eHealthAfrica#300.

[1]: vitalets/angular-xeditable#164 (comment)
[2]: vitalets/angular-xeditable#388
  • Loading branch information
tlvince committed Nov 10, 2015
1 parent 3850986 commit 9acf923
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"angular-dragdrop": "~1.0.12",
"ng-csv": "~0.3.4",
"angular-csv-import": "~0.0.16",
"angular-xeditable": "~0.1.9",
"angular-xeditable": "https://github.com/tlvince/angular-xeditable.git#bd328b25ec309c437b9d1a96bedb0a019768e9a0",
"angular-eha.couchdb-auth": "~1.1.0",
"angular-ui-grid": "ui-grid#~3.0.7",
"ui-select": "angular-ui-select#~0.13.2",
Expand Down
14 changes: 11 additions & 3 deletions src/app/planning/schedule/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,17 @@ <h4><i class="fa fa-truck"></i> Schedules for Delivery Round: {{
<td ng-bind="::facRnd.facility.name"></td>
<td ng-bind="::facRnd.facility.id"></td>
<td>
<a href="#" editable-date="facRnd.date" e-name="deliveryDate" e-form="rowform">
{{ srCtrl.getDate(facRnd.date) }}
</a>
<span
ng-bind="srCtrl.getDate(facRnd.date)"
editable-bsdate="facRnd.date"
e-name="deliveryDate"
e-form="rowform"
e-init-date="false"
e-datepicker-popup
e-ng-click="opened = !opened"
e-is-open="opened"
buttons="no"
></span>
</td>
<td>
<span editable-select="facRnd.driverID"
Expand Down

0 comments on commit 9acf923

Please sign in to comment.