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

    T = current.T
    record_id = record['_row']['work_job.id']
    has_permission = current.auth.s3_has_permission
    table = current.db.work_job
    if has_permission('update', table, record_id=record_id):
        edit_btn = A(ICON('edit'), _href=URL(c='work', f='job', args=[record_id, 'update.popup'], vars={'refresh': list_id, 'record': record_id}), _class='s3_modal', _title=T('Edit    Job'))
    else:
        edit_btn = ''
    if has_permission('delete', table, record_id=record_id):
        delete_btn = A(ICON('delete'), _class='dl-item-delete')
    else:
        delete_btn = ''
    return DIV(edit_btn, delete_btn, _class='edit-bar    fright')
