'@todo: docstring?'

@staticmethod
def add_button(r, widget_id=None, visible=True, **attr):

    if current.auth.s3_has_permission('create', r.tablename):
        return A(S3Method.crud_string(r.tablename, 'label_create'), _href=r.url(method='create', id=0, vars={}), _class='action-btn')
    else:
        return ''
