Show selection box for dns provider
This commit is contained in:
@@ -14,6 +14,12 @@
|
||||
<input type="text" class="form-control" ng-model="dnsCredentials.customDomain" id="customDomainId" name="customDomainId" ng-disabled="dnsCredentials.busy" ng-minlength="4" ng-maxlength="128" placeholder="example.com" required autofocus>
|
||||
</div>
|
||||
|
||||
<div class="form-group" ng-show="dnsConfig.provider !== 'caas'">
|
||||
<label class="control-label">DNS API Provider</label>
|
||||
<select class="form-control" ng-model="dnsCredentials.provider" ng-options="a.value as a.name for a in dnsProvider" ng-change="updateFilter()">
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- Route53 -->
|
||||
<div class="form-group" ng-class="{ 'has-error': false }" ng-show="dnsCredentials.provider === 'route53'">
|
||||
<label class="control-label" for="dnsCredentialsAccessKeyId">Access Key Id</label>
|
||||
|
||||
@@ -6,6 +6,12 @@ angular.module('Application').controller('CertsController', ['$scope', '$locatio
|
||||
$scope.config = Client.getConfig();
|
||||
$scope.dnsConfig = null;
|
||||
|
||||
$scope.dnsProvider = [
|
||||
{ name: 'Manual/Wildcard', value: 'noop' },
|
||||
{ name: 'AWS Route53', value: 'route53' },
|
||||
{ name: 'Digital Ocean', value: 'digitalocean' }
|
||||
];
|
||||
|
||||
$scope.defaultCert = {
|
||||
error: null,
|
||||
success: false,
|
||||
|
||||
Reference in New Issue
Block a user