{{#if hasBlock}}
     {{yield}}
{{else}}
     <button class="btn btn-primary" data-dismiss="modal">
         {{buttonText}}
     </button>
{{/if}}
