... | in mobile.naml |
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217
|
<macro name="new_post5" parameters="page_name,bottom,focus" requires="servlet">
<n.mobile.>
<n.node_page.>
<n.handle_new_node_permission_error/>
<n.if.not.is_submitted_form>
<then>
<n.subject_field.set_value value="[n.page_node.default_reply_subject/]" />
<n.alert_field.set_value value="[n.page_node.alert_default_value/]" />
<n.init_new_post_custom_fields/>
</then>
<else>
<n.catch_exception. id="save-block">
<n.check_antispam_submit bypass="preview"/>
<n.check_recent_post_limit/>
<n.create_child_of_page_node commit="[n.not.is_preview/]">
<subject><n.subject_field.value/></subject>
<message><n.message_field.value/></message>
<is_html><n.html_format_field.value/></is_html>
<type><n.type_field.value/></type>
<kind>post</kind>
<do>
<n.remember_new_node/>
<n.if.not.is_preview>
<then>
<n.save_post/>
<n.save_new_post_custom_fields/>
<n.new_node.send_node_as_email/>
</then>
</n.if.not.is_preview>
</do>
</n.create_child_of_page_node>
<n.if.not.is_preview>
<then>
<n.new_node.save_alert_field/>
<n.redirect_to.new_node.url/>
</then>
</n.if.not.is_preview>
</n.catch_exception.>
</else>
</n.if.not.is_submitted_form>
<n.html5>
<head>
<META NAME="robots" CONTENT="noindex,nofollow"/>
<n.title.><n.page_name/></n.title.>
<n.focus/>
<style>
.title-row {
padding:.6em .8em;
font-weight:bold;
}
div.field-title { margin-top: 0; }
label { display:inline;vertical-align:-15%; }
#subject { width:90% }
</style>
</head>
<body>
<n.edit_header first_text="[n.page_name/]" second_text="[n.truncate. size='80'][n.page_node.subject/][/n.truncate.]" />
<n.if.is_submitted_form>
<then>
<n.if.has_exception for="save-block">
<then.show_new_node_error/>
<else>
<n.if.is_preview>
<then.new_node.preview/>
</n.if.is_preview>
</else>
</n.if.has_exception>
</then>
</n.if.is_submitted_form>
<n.form. onsubmit="return singleSubmit(this)">
<n.type_field.hidden/>
<n.reply_form />
<div style="margin-top:1em">
<n.antispam_submit_button class="toolbar action-button" value="[t]Post Message[/t]"/>
<input type="submit" class="toolbar action-button" name="preview" value="[t]Preview Message[/t]"/>
<t>or</t>
<a href="[n.page_node.url /]"><t>Cancel</t></a>
</div>
</n.form.>
<n.hide_null.bottom/>
</body>
</n.html5>
</n.node_page.>
</n.mobile.>
</macro>
|
Free forum by Nabble | Edit this page |