delete_app.naml

<macro name="delete_app" requires="servlet">
	<n.node_page.>
		<n.if.not.visitor.can_delete_recursively.page_node>
			<then>
				<n.login.><t>Only authorized users can proceed in this area.</t></n.login.>
			</then>
		</n.if.not.visitor.can_delete_recursively.page_node>
		<n.if.is_submitted_form>
			<then>
				<n.page_node.delete_node_recursively_and_redirect/>
			</then>
		</n.if.is_submitted_form>
		<n.html>
			<head>
				<META NAME="robots" CONTENT="noindex,nofollow"/>
				<n.title.><t>Delete Application</t> - <n.page_node.subject/></n.title.>
			</head>
			<body>
				<n.edit_header first_text="[t]Delete Application[/t]" second_text="[n.page_node.subject/]"/>

				<n.form.>
					<div class="second-font field-title" style="margin-bottom:.6em">
						<t>Do you really want to permanently <n.important.>delete</n.important.> <t.location><i><n.page_node.subject/></i></t.location>?</t>
					</div>
					<div class="weak-color" style="margin-bottom:1em">
						<t><n.important.>CAUTION</n.important.>: Everything under <t.location.page_node.subject/> will be deleted forever!</t>
						<ul>
							<li><t>This includes subcategories, posts, images, files and everything else.</t></li>
							<li><t>It will NOT be possible to restore deleted items later.</t></li>
						</ul>
					</div>

					<div style="margin-top:1.4em">
						<input type="submit" class="toolbar action-button" value="[t]Yes, delete [t.location.page_node.subject/] forever[/t]"/>
						<t>or</t> <a href="[n.page_node.path/]"><t>Cancel</t></a>
					</div>
				</n.form.>
			</body>
		</n.html>
	</n.node_page.>
</macro>