'Build API key inputs.'

def _build_inputs_api_key(self, user, message=''):

    inputs = [{'name': 'api-key', 'type': 'text', 'label': 'Current    API    key:', 'value': (user.api_keys[0].key if user.api_keys else 'Not    available.'), 'readonly': True, 'help': '    An    API    key    will    allow    you    to    access    via    web    API.    Please    note    that    this    key    acts    as    an    alternate    means    to    access    your    account    and    should    be    treated    with    the    same    care    as    your    login    password.'}]
    return {'message': message, 'inputs': inputs}
