'Action buttons for contact rows'

@staticmethod
def action_buttons(table, record_id):

    T = current.T
    has_permission = current.auth.s3_has_permission
    if has_permission('update', table, record_id=record_id):
        edit_btn = A(T('Edit'), _class='edit-btn    action-btn    fright')
    else:
        edit_btn = SPAN()
    if has_permission('delete', table, record_id=record_id):
        delete_btn = A(T('Delete'), _class='delete-btn-ajax    fright')
    else:
        delete_btn = SPAN()
    return DIV(delete_btn, edit_btn, DIV(_class='inline-throbber', _style='display:none'), _class='pr-contact-actions    medium-3    columns')
