form(class="form-horizontal subroot", style="overflow: hidden; height: 100%;" role="form", id="form")
	.new_flex_zero(style="padding-left: 15px; padding-right: 15px;")
		p#summary_title(style="font-weight: bold; font-style: italic;") Bitte überprüfen Sie nochmal alle Angaben!
		p(style="font-style: italic;") #{parish_name} <span class="glyphicon glyphicon-chevron-right", aria-hidden="true"></span> #{factory_name} <span style="font-size: 80%">(!{timespan})</span>
		
		button#button_summary_back(class="btn btn-warning btn-xs", type="button", onclick="history.back();") 
			span(class="glyphicon glyphicon-remove-circle", aria-hidden="true")
			span 
			span Zurück
			
		//-button#button_summary_send(class="btn btn-success btn-xs", type="button", onclick=" pcalpub_generate_publication_send_html2();")
		button#button_summary_send(class="btn btn-success btn-xs", type="button", data-toggle="modal" data-target="#sendEmail")
			span(class="glyphicon glyphicon-ok", aria-hidden="true")
			span 
			span Senden
	
		.row
			.col-sm-12
				span &nbsp;

	.new_flex_one(style="overflow: auto; padding-left: 15px; padding-right: 15px;")
		fieldset
			legend(style="font-size: 120%; margin-bottom: 0px;") Empfänger
			table(width='130%', class='table table-condensed' style='margin-bottom: 10px;')
				each empf in dest_to
					tr(data-addresses="#{empf.addresses}")
						td !{empf.recipient}
			
		if dest_cc.length > 0
			fieldset
				legend(style="font-size: 120%; margin-bottom: 0px;") Kopie
				table(width='130%', class='table table-condensed' style='margin-bottom: 10px;')
					each empf in dest_cc
						tr(data-addresses="#{empf.addresses}")
							td !{empf.recipient}
		
		if dest_bcc.length > 0
			fieldset(style="margin-bottom: 10px;")
				legend(style="font-size: 120%; margin-bottom: 0px;") Blindkopie
				table(width='130%', class='table table-condensed' style='margin-bottom: 10px;')
					each empf in dest_bcc
						tr(data-addresses="#{empf.addresses}")
							td !{empf.recipient}
		
		fieldset
			legend(style="font-size: 150%; margin-bottom: 0px;") Inhalt der eMail
			!{html}
	
	script.
