1 <?php if (isset($PREVIEW_CONTENT)) { ?>
2 <p><strong><?php echo _("Preview only! Changes not saved.")?></strong>
3 <!-- FIXME: it would be nice to put a link to the #editarea anchor below,
4 but it does not work currently with the <base> declared in top.tmpl.
5 I think we need to do away with using <base> altogether... -->
6 <?php echo fmt("Please continue editing. (You'll find your %s at the bottom of the page.)",
7 /* HTML::a(array("href" => "#editarea"), */ _("edit area") /*) */) ?>
9 <hr class="printer" noshade="noshade" />
10 <?php echo $PREVIEW_CONTENT ?>
11 <hr class="printer" noshade="noshade" />
13 <?php echo $PAGE_LOCKED_MESSAGE ?>
14 <?php echo $CONCURRENT_UPDATE_MESSAGE ?>
15 <?php if (! $IS_CURRENT) { ?>
16 <p class="warning_msg"><strong><?php echo _("Warning: You are editing an old revision.")?>
17 <?php echo _("Saving this page will overwrite the current version.")?></strong></p>
21 * The funky URL used for the form action parameter is bogus.
22 * This is needed, otherwise the redirect to the real browser
23 * page won't work with some browsers. (NS4 and Mozilla 0.97 won't accept
24 * a redirect from a page to itself.)
26 <form method="post" id="editpage" name="editpage"
27 action="<?php echo $request->getPostURL() ?>"
28 accept-charset="UTF-8">
29 <?php if (!empty($_GET['start_debug'])) echo '<input type="hidden" name="start_debug" value="1" >'; ?>
30 <?php /* To clear beyond a larger logo, such as in the Hawaiian theme */ ?>
31 <br class="clear-floats" />
32 <table class="fullwidth">
33 <tr><td><?php echo $EDIT_TOOLBAR ?></td>
34 <td align="right"><div id="editarea-size">
35 <?php echo _("Size").':'?>
36 <label for="pref-editHeight"><b><?php echo _("H")?></b></label> <?php echo $HEIGHT_PREF?>
37 <label for="pref-editWidth"><b><?php echo _("W")?></b></label> <?php echo $WIDTH_PREF?>
38 <noscript><?php echo Button("submit:", _("Adjust"), 'wikiaction')?></noscript>
39 </div></td></tr></table>
40 <fieldset class="editarea">
41 <legend><?php echo _("Page Content: ")?></legend>
42 <a id="editarea"></a><?php echo $EDIT_TEXTAREA?>
44 <!-- FIXME: fix layout, move CSS to CSS -->
45 <fieldset class="editarea">
46 <legend><?php echo _("Summary").':'?></legend><br />
47 <?php echo $SUMMARY_INPUT?>
49 <?php if (ENABLE_CAPTCHA) { ?>
50 <fieldset class="toolbar" style="text-align: center;">
51 <?php echo $CAPTCHA_IMAGE ?><br/>
52 <?php echo $CAPTCHA_LABEL ?><?php echo $CAPTCHA_INPUT ?>
55 <fieldset class="toolbar">
56 <?php echo $MINOR_EDIT_CB ?> <label for="edit-minor_edit"><?php echo _("This is a minor change.")?></label>
57 <?php if ($user->isAdmin()) { ?>
58 <?php echo $LOCKED_CB ?> <label for="edit-locked"><?php echo _("Locked")?></label>
61 <fieldset class="toolbar">
62 <?php echo $PREVIEW_B ?>
63 <?php if ($SAVE_B) { ?>
64 <?php echo $SEP?><?php echo $SAVE_B ?>
67 <fieldset class="toolbar">
68 <?php echo $AUTHOR_MESSAGE?>
69 <label><?php echo Template('signin', array('FORMNAME' => 'editpage')) ?></label>
71 <hr noshade="noshade" />
72 <div class="wiki-edithelp">
73 <!-- FIXME: do we need this at all? If so, it could probably be moved to TextFormattingRules -->
74 <p><?php echo fmt("See %s tips for editing.", WikiLink(_("Help")."/"._("GoodStyle"))) ?></p>
75 <?plugin IncludePage page=_("Help")."/"._("TextFormattingRules") section=_("Synopsis") quiet=1?>
77 <?php echo $HIDDEN_INPUTS?>