'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):

    table = resource.table
    tablename = resource.tablename
    record_id = record[str(resource._id)]
    toolbox = DIV(_class='edit-bar    fright')
    update_url = URL(c='pr', f='contact_emergency', args=[record_id, 'update.popup'], vars={'refresh': list_id, 'record': record_id, 'profile': self.profile})
    has_permission = current.auth.s3_has_permission
    crud_string = S3Method.crud_string
    if has_permission('update', table, record_id=record_id):
        btn = A(ICON('edit'), _href=update_url, _class='s3_modal', _title=crud_string(tablename, 'title_update'))
        toolbox.append(btn)
    if has_permission('delete', table, record_id=record_id):
        btn = A(ICON('delete'), _class='dl-item-delete', _title=crud_string(tablename, 'label_delete_button'))
        toolbox.append(btn)
    return toolbox
