buttongroup-nav.tpl 390 B

12345678910111213
  1. % setdefault('style', '')
  2. <div class="pure-button-group vertical-button-group" role="{{role}}" style="padding: 1em 0.25em 0;">
  3. % for target in targets:
  4. % active = 'pure-button-active' if target == action else ''
  5. % label = target.title()
  6. <button
  7. class="pure-button {{active}}"
  8. type="submit"
  9. formaction="{{target}}"
  10. style="{{style}}"
  11. > {{label}} </button>
  12. % end
  13. </div>