

def reject_formatter(v, c, req, p):
    klass = 'btn-danger'
    msg = lazy_gettext('Reject request')
    return Markup(('<form method=\'POST\' action=\'%(url)s\' style="text-align: center">\n                        <input class=\'btn %(klass)s\' type=\'submit\' value="%(msg)s"></input>\n                        <input type=\'hidden\' name=\'request_id\' value=\'%(request_id)s\'/>\n                    </form>' % dict(url=url_for('.reject_request'), klass=klass, msg=msg, request_id=req.id)))

dataset/ETHPy150Open gateway4labs/labmanager/labmanager/views/admin.py reject_formatter/original