<template name="mailer">
	<section class="page-container page-list">
		{{> header sectionName="Mailer"}}
		<div class="content">
			{{#unless hasPermission 'access-mailer'}}
				<p>{{_ "You_are_not_authorized_to_view_this_page"}}</p>
			{{else}}
				<form>
					<div class="rocket-form">
						<fieldset>
							<div class="input-line">
								<label>{{_ "Email_from"}}</label>
								<div>
									<input type="text" class="rc-input__element" name="from" value="" placeholder="{{fromEmail}}" />
								</div>
								<div>
									<small class="settings-description secondary-font-color">{{{_ "From_email_warning"}}}</small>
								</div>
							</div>
							<div class="input-line">
								<label>{{_ "Dry_run"}}</label>
								<div>
									<input type="checkbox" name="dryrun" value="1" />
								</div>
								<div>
									<small class="settings-description secondary-font-color">{{{_ "Dry_run_description"}}}</small>
								</div>
							</div>
							<div class="input-line">
								<label>{{_ "Query"}}</label>
								<div>
									<input type="text" class="rc-input__element" name="query" value="" />
								</div>
								<div>
									<small class="settings-description secondary-font-color">{{{_ "Query_description"}}}</small>
								</div>
							</div>
							<div class="input-line">
								<label>{{_ "Email_subject"}}</label>
								<div>
									<input type="text" class="rc-input__element" name="subject" value="" />
								</div>
							</div>
							<div class="input-line">
								<label>{{_ "Email_body"}}</label>
								<div>
									<textarea class="rc-input__element" name="body" rows="10" style="height: auto"></textarea>
								</div>
								<div>
									<small class="settings-description secondary-font-color">{{{_ "Mailer_body_tags"}}}</small>
								</div>
							</div>
						</fieldset>
						<div class="submit">
							<button class="button primary send"><i class="icon-send"></i><span>{{_ "Send_email"}}</span></button>
						</div>
					</div>
				</form>
			{{/unless}}
		</div>
	</section>
</template>
