<template name="modal">
	<section id="{{this.id}}" class="rocket-modal {{this.class}}" tabindex="-1" role="dialog" aria-hidden="true">
		<div class="wrapper">
			<div class="window">
				<form id="{{this.id}}-form" class="modal form-horizontal">
					<header>
						<h3>{{this.title}}</h3>
						<span class="close"><i class="icon-cancel"></i></span>
					</header>
					<main>
						{{> UI.contentBlock}}
					</main>
					<footer>
						{{#if this.save}}
							<button class="button primary" type="submit" data-loading-text="{{_ "Please_wait"}}..."><span>{{this.save}}</span></button>
						{{/if}}
						{{#if this.close}}
							<button class="button danger"><span>{{this.close}}</span></button>
						{{/if}}
					</footer>
				</form>
			</div>
		</div>
	</section>
</template>
