Making dropdowns look a bit better. (#322)
* Making dropdowns look a bit better. * Pleasing Lint.
This commit is contained in:
parent
88aa5d3fdb
commit
b13370bf0d
|
@ -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;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue