      {{else}}
            <!-- If no bodyTemplate, render message instead. -->
            {{{message}}}
          {{/if}}
        </div>
      </div>

      <!--  Add in footer, if one was defined -->
      {{> Template.dynamic template=modalFooter data=modalFooterData}}
    {{/materializeModalForm}}
  </div>
</template>


<template name="materializeModalFooter">
  <div class="modal-footer">
    {{#if submitLabel}}
      <button id="submitButton" type="submit" class="waves-effect btn-flat {{btnSize}}">{{{