fixing a few minor issue with cloning (#544)

This commit is contained in:
kevgliss
2016-11-30 10:54:53 -08:00
committed by GitHub
parent f9b16a2110
commit abb91fbb65
3 changed files with 20 additions and 9 deletions

View File

@ -214,8 +214,8 @@ angular.module('lemur')
CertificateApi.get(editId).then(function (certificate) {
$scope.certificate = certificate;
$scope.certificate.name = ''; // we should prefer the generated name
$scope.validityStart = null; // we should rely the defaults
$scope.validityEnd = null; // we should rely on the defaults
$scope.certificate.validityStart = Date.parse($scope.certificate.validityStart); // we should rely the defaults
$scope.certificate.validityEnd = Date.parse($scope.certificate.validityEnd); // we should rely on the defaults
CertificateService.getDefaults($scope.certificate);
});

View File

@ -107,6 +107,7 @@
<div class="col-sm-3">
<div class="input-group">
<input type="text" class="form-control"
uib-tooltip="yyyy/MM/dd"
uib-datepicker-popup="yyyy/MM/dd"
ng-model="certificate.validityStart"
is-open="popup1.opened"
@ -126,6 +127,7 @@
<div class="col-sm-3">
<div class="input-group">
<input type="text" class="form-control"
uib-tooltip="yyyy/MM/dd"
uib-datepicker-popup="yyyy/MM/dd"
ng-model="certificate.validityEnd"
is-open="popup2.opened"