@register.tag(u'buttons')
def bootstrap_buttons(parser, token):
 kwargs = parse_token_contents(parser, token)
 kwargs[u'nodelist'] = parser.parse((u'endbuttons',))
 parser.delete_first_token()
 return ButtonsNode(**kwargs)

@ register . tag ( u'buttons' ) def bootstrap_buttons ( parser , token ) : kwargs = parse_token_contents ( parser , token ) kwargs [ u'nodelist' ] = parser . parse ( ( u'endbuttons' , ) ) parser . delete_first_token ( ) return ButtonsNode ( ** kwargs )
render buttons for form **tag name**:: buttons **parameters**: submit text for a submit button reset text for a reset button **usage**:: {% buttons %}{% endbuttons %} **example**:: {% buttons submit=ok reset="cancel" %}{% endbuttons %} .