'Render the toolbox
@param list_id: the HTML ID of the list
@param resource: the S3Resource to render
@param record: the record as dict'

def render_toolbox(self, list_id, resource, record):

    record_id = record[str(resource._id)]
    toolbox = DIV(_class='edit-bar    fright')
    if current.auth.s3_has_permission('update', resource.table, record_id=record_id):
        controller = current.request.controller
        if (controller not in ('deploy', 'hrm', 'member', 'vol')):
            controller = 'pr'
        update_url = URL(c=controller, f='person', args=[record_id, 'update.popup'], vars={'refresh': list_id, 'record': record_id, 'profile': self.profile})
        btn = A(ICON('edit'), _href=update_url, _class='s3_modal', _title=S3Method.crud_string(resource.tablename, 'title_update'))
        toolbox.append(btn)
    return toolbox
