diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-07 17:53:40 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-03-07 17:53:40 +0100 |
commit | 91c916b3ee5350afaae4ce3b7bd1d59ee02a893c (patch) | |
tree | bdb5516943a784193bb3ea5508685358d1587778 /templates | |
parent | e499b1aec315294e5d422a2fca79fdb2f1d238f2 (diff) |
Use jquery datepicker for BDAY
Diffstat (limited to 'templates')
-rw-r--r-- | templates/detailItems/date.html | 6 | ||||
-rw-r--r-- | templates/main.php | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/templates/detailItems/date.html b/templates/detailItems/date.html index cab0a9e0..61e5050a 100644 --- a/templates/detailItems/date.html +++ b/templates/detailItems/date.html @@ -1,6 +1,6 @@ -<label for="details-{{ctrl.name}}">{{ctrl.meta.readableName}}</label> -<input type="date" id="details-{{ctrl.name}}" name="{{ctrl.name}}" - ng-model="ctrl.data.value" date-model ng-model-options="{ debounce: 500 }" +<label>{{ctrl.meta.readableName}}</label> +<input type="text" name="{{ctrl.name}}" + ng-model="ctrl.data.value" datepicker ng-model-options="{ debounce: 500 }" ng-change="ctrl.model.updateContact()" value="" focus-expression="$parent.ctrl.focus === ctrl.name" /> diff --git a/templates/main.php b/templates/main.php index 3ab275ff..92b71b51 100644 --- a/templates/main.php +++ b/templates/main.php @@ -14,6 +14,7 @@ script('contacts', 'public/script'); script('contacts', 'vendor/angular-bootstrap/ui-bootstrap.min'); script('contacts', 'vendor/angular-bootstrap/ui-bootstrap-tpls.min'); +script('contacts', 'vendor/jquery-timepicker/jquery.ui.timepicker'); // all styles style('contacts', 'public/style'); |