Mercurial Hosting > nabble
comparison src/nabble/view/naml/change_app_type.naml @ 0:7ecd1a4ef557
add content
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 21 Mar 2019 19:15:52 -0600 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:7ecd1a4ef557 |
---|---|
1 <macro name="change_app_type" requires="servlet"> | |
2 <n.node_page.> | |
3 <n.if.not.visitor.can_edit.page_node> | |
4 <then> | |
5 <n.login.><t>Only authorized users can proceed in this area.</t></n.login.> | |
6 </then> | |
7 </n.if.not.visitor.can_edit.page_node> | |
8 <n.if.not.is_submitted_form> | |
9 <then> | |
10 <n.type_field.set_value value="[n.page_node.type/]" /> | |
11 </then> | |
12 <else> | |
13 <n.catch_exception. id="save-block"> | |
14 <n.edit_page_node.> | |
15 <n.set_type type="[n.type_field.value/]" /> | |
16 <n.save_node/> | |
17 </n.edit_page_node.> | |
18 <n.redirect_to.page_node.path/> | |
19 </n.catch_exception.> | |
20 </else> | |
21 </n.if.not.is_submitted_form> | |
22 <n.html> | |
23 <head> | |
24 <META NAME="robots" CONTENT="noindex,nofollow"/> | |
25 <n.title.><t>Change Application Type</t></n.title.> | |
26 </head> | |
27 <body> | |
28 <n.edit_header first_text="[t]Change Application Type[/t]" second_text="[n.page_node.get_app_node.subject/]" /> | |
29 | |
30 <n.form.> | |
31 <n.type_option option_value="forum" text="[t]Forum[/t]" description="[t]Page with topics and discussions.[/t]"/> | |
32 <n.type_option option_value="mixed" text="[t]Mixed[/t]" description="[t]Page with topics grouped by sub-applications. If no sub-apps exist, a normal list of topics is displayed.[/t]"/> | |
33 <n.type_option option_value="category" text="[t]Category[/t]" description="[t]Page with a simple list of sub-applications and discussions.[/t]"/> | |
34 <n.type_option option_value="board" text="[t]Board[/t]" description="[t]Page that groups sub-applications and discussions.[/t]"/> | |
35 <n.type_option option_value="gallery" text="[t]Gallery[/t]" description="[t]Photo and image gallery.[/t]"/> | |
36 <n.type_option option_value="blog" text="[t]Blog[/t]" description="[t]Page with full messages and related comments.[/t]"/> | |
37 <n.type_option option_value="news" text="[t]News[/t]" description="[t]Page with headlines and posts.[/t]"/> | |
38 | |
39 <div style="margin-top:1.4em"> | |
40 <input type="submit" class="toolbar action-button" value="[t]Save Changes[/t]" /> | |
41 <t>or</t> <a href="[n.page_node.path/]"><t>Cancel</t></a> | |
42 </div> | |
43 </n.form.> | |
44 </body> | |
45 </n.html> | |
46 </n.node_page.> | |
47 </macro> | |
48 | |
49 <macro name="type_option" parameters="option_value,text,description"> | |
50 <div class="second-font field-title" style="margin-top:1em"> | |
51 <n.type_field.radio id="[n.option_value/]" option_value="[n.option_value/]"/> | |
52 <label for="[n.option_value/]"><n.text/></label> | |
53 </div> | |
54 <div class="weak-color" style="margin-left:1.9em"> | |
55 <n.description/> | |
56 </div> | |
57 </macro> |