def lookup_object(key, lookup_type):
    """Returns a lookup button to inspect a selected object"""
    result = {'key': 'lookup_' + key, 'type': 'template', 'template': 
        '<a href="/#!/editor/' + lookup_type + '/{{$ctrl.model.' + key +
        '}}/edit">Edit</a>'}
    return result
