commit
ce1fe9321c
|
@ -17,7 +17,7 @@ Lemur
|
||||||
:target: https://travis-ci.org/Netflix/lemur
|
:target: https://travis-ci.org/Netflix/lemur
|
||||||
|
|
||||||
.. image:: https://requires.io/github/kevgliss/lemur/requirements.svg?branch=master
|
.. image:: https://requires.io/github/kevgliss/lemur/requirements.svg?branch=master
|
||||||
:target: https://requires.io/github/kevgliss/lemur/requirements/?branch=master
|
:target: https://requires.io/github/Netflix/lemur/requirements/?branch=master
|
||||||
:alt: Requirements Status
|
:alt: Requirements Status
|
||||||
|
|
||||||
.. image:: https://badge.waffle.io/Netflix/lemur.png?label=ready&title=Ready
|
.. image:: https://badge.waffle.io/Netflix/lemur.png?label=ready&title=Ready
|
||||||
|
|
|
@ -14,7 +14,7 @@ Flask-Principal==0.4.0
|
||||||
Flask-Mail==0.9.1
|
Flask-Mail==0.9.1
|
||||||
SQLAlchemy-Utils==0.31.3
|
SQLAlchemy-Utils==0.31.3
|
||||||
BeautifulSoup4
|
BeautifulSoup4
|
||||||
requests==2.8.0
|
requests==2.8.1
|
||||||
psycopg2==2.6.1
|
psycopg2==2.6.1
|
||||||
arrow==0.7.0
|
arrow==0.7.0
|
||||||
boto==2.38.0 # we might make this optional
|
boto==2.38.0 # we might make this optional
|
||||||
|
|
|
@ -34,11 +34,9 @@
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td data-title="''">
|
|
||||||
<a ui-sref="authority({name: authority.name})">Permalink</a>
|
|
||||||
</td>
|
|
||||||
<td data-title="''">
|
<td data-title="''">
|
||||||
<div class="btn-group-vertical pull-right">
|
<div class="btn-group-vertical pull-right">
|
||||||
|
<a class="btn btn-sm btn-default" ui-sref="authority({name: authority.name})">Permalink</a>
|
||||||
<button tooltip="Edit Authority" ng-click="edit(authority.id)" class="btn btn-sm btn-info">
|
<button tooltip="Edit Authority" ng-click="edit(authority.id)" class="btn btn-sm btn-info">
|
||||||
Edit
|
Edit
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
<div class="input-group col-sm-12">
|
<div class="input-group col-sm-12">
|
||||||
<input name="selectedAuthority" tooltip="If you are unsure which authority you need; you most likely want to use 'verisign'" type="text" ng-model="certificate.selectedAuthority" placeholder="Authority Name" typeahead-on-select="certificate.attachAuthority($item)"
|
<input name="selectedAuthority" tooltip="If you are unsure which authority you need; you most likely want to use 'verisign'" type="text" ng-model="certificate.selectedAuthority" placeholder="Authority Name" typeahead-on-select="certificate.attachAuthority($item)"
|
||||||
typeahead="authority.name for authority in authorityService.findActiveAuthorityByName($viewValue)" typeahead-loading="loadingAuthorities"
|
typeahead="authority.name for authority in authorityService.findActiveAuthorityByName($viewValue)" typeahead-loading="loadingAuthorities"
|
||||||
class="form-control" typeahead-wait-ms="100" typeahead-template-url="angular/authorities/authority/select.tpl.html" required>
|
class="form-control" typeahead-wait-ms="1000" typeahead-template-url="angular/authorities/authority/select.tpl.html" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -89,7 +89,7 @@ angular.module('lemur')
|
||||||
});
|
});
|
||||||
return LemurRestangular.all('certificates');
|
return LemurRestangular.all('certificates');
|
||||||
})
|
})
|
||||||
.service('CertificateService', function ($location, CertificateApi, LemurRestangular, DefaultService) {
|
.service('CertificateService', function ($location, CertificateApi, AuthorityService, LemurRestangular, DefaultService) {
|
||||||
var CertificateService = this;
|
var CertificateService = this;
|
||||||
CertificateService.findCertificatesByName = function (filterValue) {
|
CertificateService.findCertificatesByName = function (filterValue) {
|
||||||
return CertificateApi.getList({'filter[name]': filterValue})
|
return CertificateApi.getList({'filter[name]': filterValue})
|
||||||
|
@ -100,6 +100,14 @@ angular.module('lemur')
|
||||||
|
|
||||||
CertificateService.create = function (certificate) {
|
CertificateService.create = function (certificate) {
|
||||||
certificate.attachSubAltName();
|
certificate.attachSubAltName();
|
||||||
|
// Help users who may have just typed in their authority
|
||||||
|
if (!certificate.authority) {
|
||||||
|
AuthorityService.findActiveAuthorityByName(certificate.selectedAuthority).then(function (authorities) {
|
||||||
|
if (authorities.length > 0) {
|
||||||
|
certificate.authority = authorities[0];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
return CertificateApi.post(certificate);
|
return CertificateApi.post(certificate);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<input ng-hide="currentStepNumber() == 1" class="btn btn-default pull-left" type="submit" wz-previous value="Previous" />
|
<input ng-hide="currentStepNumber() == 1" class="btn btn-default pull-left" type="submit" wz-previous value="Previous" />
|
||||||
<input ng-show="currentStepNumber() != steps.length" class="btn btn-default pull-right" type="submit" wz-next value="Next" />
|
<input ng-show="currentStepNumber() != steps.length" class="btn btn-default pull-right" type="submit" wz-next value="Next" />
|
||||||
<input ng-show="!context.loading" class="btn btn-success pull-right" type="submit" wz-finish value="Create" />
|
<input ng-show="!context.loading" ng-class="{disabled: trackingForm.invalid}" class="btn btn-success pull-right" type="submit" wz-finish value="Create" />
|
||||||
<button ng-show="context.loading" class="btn btn-success pull-right disabled"><wave-spinner></wave-spinner></button>
|
<button ng-show="context.loading" class="btn btn-success pull-right disabled"><wave-spinner></wave-spinner></button>
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue