Making dropdowns look a bit better. (#322)

* Making dropdowns look a bit better.

* Pleasing Lint.
This commit is contained in:
kevgliss 2016-05-19 09:04:50 -07:00
parent 88aa5d3fdb
commit b13370bf0d
2 changed files with 34 additions and 0 deletions

View File

@ -53,6 +53,23 @@ angular.module('lemur')
$scope.authority.authority = authority; $scope.authority.authority = authority;
} }
}); });
},
render: {
option: function(item) {
return '<div><dl>' +
'<dt>' +
'<span>' + item.name + ' <small>' + item.owner + '</small></span>' +
'</dt>' +
'<dd>' +
'<span>' + item.description + '</span>' +
'</dd>' +
'</dl></div>';
}
},
load: function (value) {
AuthorityService.findAuthorityByName(value).then(function (authorities) {
$scope.authorities = authorities;
});
} }
}; };

View File

@ -111,6 +111,23 @@ angular.module('lemur')
$scope.certificate.authority = authority; $scope.certificate.authority = authority;
} }
}); });
},
render: {
option: function(item) {
return '<div><dl>' +
'<dt>' +
'<span>' + item.name + ' <small>' + item.owner + '</small></span>' +
'</dt>' +
'<dd>' +
'<span>' + item.description + '</span>' +
'</dd>' +
'</dl></div>';
}
},
load: function (value) {
AuthorityService.findAuthorityByName(value).then(function (authorities) {
$scope.authorities = authorities;
});
} }
}; };