unauthorized.naml

<override_macro name="unauthorized" requires="servlet">
    <n.node_page.>
        <n.if.is_submitted_form>
            <then>
                <n.users_in_group. group="[n.administrators_group/]">
                    <n.loop.>
                        <n.current_user.send_request_email
                            explanation="[n.message_field.value/]"
                        />
                    </n.loop.>
                </n.users_in_group.>
            </then>
        </n.if.is_submitted_form>
        <n.html>
            <head>
                <META NAME="robots" CONTENT="noindex,nofollow"/>
                <n.title.><t>Unauthorized</t></n.title.>
            </head>
            <body>
                <div style="font-size:140%;margin:.5em 0 1em">
                    <t>DCA Members Only</t>
                </div>
                <t>Only paid-up DCA members, who have been given forum access, can proceed in this area.</t>
                <t>Find out more about dinghy cruising and becoming a member on our <a href="http://dinghycruising.org.uk">DCA Website</a>.</t>
  
                <p><t>You can use the form below to send a request to the DCA administrators. Or simply wait until you have forum access, which can take up to 24 hours.</t></p>
                <div class="second-font big-title" style="margin:1.5em 0 .5em">
                    <t>Member Access Request</t>
                </div>
                <n.if.not.is_submitted_form>
                    <then>
                        <div class="weak-color" style="margin:.3em 0">
                            <t>Explain to the administrator(s) your DCA membership name and number</t>
                        </div>
                        <n.form.>
                            <n.message_field.textarea wrap="SOFT" style="width:35em;height:5em;" />
                            <n.message_field.focus/>
                            <br/>
                            <input type="submit" id="send-request" value="[t]Send Request[/t]"/>
                            <t>or</t> <a href="[n.page_node.url/]"><t>Cancel</t></a>
                        </n.form.>
                    </then>
                    <else>
                        <img src="/images/success.png" class="image16"/>
                        <t>Your request has been successfully sent.</t>
                    </else>
                </n.if.not.is_submitted_form>
            </body>
        </n.html>
    </n.node_page.>
</override_macro>