diff src/nabble/view/naml/delete_app.naml @ 0:7ecd1a4ef557

add content
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 21 Mar 2019 19:15:52 -0600
parents
children 72765b66e2c3
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/nabble/view/naml/delete_app.naml	Thu Mar 21 19:15:52 2019 -0600
@@ -0,0 +1,68 @@
+<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.>
+					<n.if.page_node.is_a_mailing_list_archive>
+						<then><n.mailing_list_unsubscription_notice/></then>
+					</n.if.page_node.is_a_mailing_list_archive>
+
+					<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>
+
+<macro name="mailing_list_unsubscription_notice" requires="node_page">
+	<table style="margin:1em 0 .3em">
+		<tr>
+			<td><img src="/images/icon_alert_sm.png" align="absmiddle" height="16" width="16" alt="Important note"/></td>
+			<td class="second-font" style="font-weight:bold;font-size:110%;"><t>Before deleting this archive...</t></td>
+		</tr>
+	</table>
+	<div class="weak-color" style="margin-bottom:1em">
+		<t>Since this application is a mailing list archive, please unsubscribe the email address below before clicking on the delete button.</t>
+		<div style="padding:1em">
+			<span class="info-message rounded bold" style="padding:.4em .3em">
+				<n.page_node.get_this_mailing_list_archive.subscriber_address/>
+			</span>
+		</div>
+		<t>We have prepared a page with <n.unsubscription_instructions_link.>some instructions on how to unsubscribe this archive</n.unsubscription_instructions_link.>.</t><br/>
+		<t>If you have already removed the subscription, then you can proceed with the deletion.</t>
+	</div>
+</macro>
+
+<macro name="unsubscription_instructions_link" dot_parameter="text" requires="node_page">
+	<a href="[n.page_node.unsubscription_instructions_path/]"><n.text/></a>
+</macro>
\ No newline at end of file