{% load wagtailadmin_tags %} {% comment %} Variables this template accepts: text - The text that shows up on the button classname - custom css classes for styling data_url - A url for javascript to use has_toggle - Show toggle icon on the button attr - custom attributes for the button {% endcomment %} {% if text %} {% endif %}