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") /*) */) ?>
10 <?php echo $PREVIEW_CONTENT ?>
11 <hr class="printer" />
14 <?php echo $PAGE_LOCKED_MESSAGE ?>
15 <?php echo $CONCURRENT_UPDATE_MESSAGE ?>
17 <?php if (! $IS_CURRENT) { ?>
18 <p class="warning_msg"><strong><?php echo _("Warning: You are editing an old revision.")?>
19 <?php echo _("Saving this page will overwrite the current version.")?></strong></p>
23 * The funky URL used for the form action parameter is bogus.
24 * This is needed, otherwise the redirect to the real browser
25 * page won't work with some browsers. (NS4 and Mozilla 0.97 won't accept
26 * a redirect from a page to itself.)
28 <form method="post" id="editpage" name="editpage"
29 action="<?php echo $request->getPostURL() ?>"
30 accept-charset="UTF-8">
31 <?php if (!empty($_GET['start_debug'])) echo '<input type="hidden" name="start_debug" value="1" >'; ?>
32 <?php /* To clear beyond a larger logo, such as in the Hawaiian theme */ ?>
33 <br class="clear-floats" />
34 <table class="fullwidth">
35 <tr><td><?php echo $EDIT_TOOLBAR ?></td>
36 <td class="align-right"><div id="editarea-size">
37 <?php echo _("Size").':'?>
38 <label for="pref-editHeight"><b><?php echo _("H")?></b></label> <?php echo $HEIGHT_PREF?>
39 <label for="pref-editWidth"><b><?php echo _("W")?></b></label> <?php echo $WIDTH_PREF?>
40 <noscript><?php echo Button("submit:", _("Adjust"), 'wikiaction')?></noscript>
41 </div></td></tr></table>
42 <?php if (!empty($WYSIWYG_B)) { ?>
43 <br /><div class="hint"><strong>Warning:</strong> Switching to the Wysiwyg editor will not keep your changes.</div>
45 <a id="editarea"></a><?php echo $EDIT_TEXTAREA?>
46 <!-- FIXME: fix layout, move CSS to CSS -->
47 <div class="toolbar" style="text-align: center;">
48 <label for="edit-summary"><?php echo _("Summary").':'?></label> <?php echo $SUMMARY_INPUT?>
50 <?php if (ENABLE_CAPTCHA) { ?>
51 <div class="toolbar" style="text-align: center;">
52 <?php echo $CAPTCHA_IMAGE ?><br/>
53 <?php echo $CAPTCHA_LABEL ?><?php echo $CAPTCHA_INPUT ?>
56 <table class="toolbar fullwidth">
59 <?php echo $MINOR_EDIT_CB ?> <label for="edit-minor_edit"><?php echo _("This is a minor change.")?></label><br />
61 <td class="align-center">
62 <?php if (!empty($WYSIWYG_B)){ ?>
63 <?php echo $WYSIWYG_B?><?php echo $SEP?>
65 <?php echo $PREVIEW_B ?>
66 <?php if ($SAVE_B) { ?>
67 <?php echo $SEP?><?php echo $SAVE_B ?>
69 <?php echo $SEP?><?php echo $CHANGES_B ?>
71 <td> <?php echo $AUTHOR_MESSAGE?></td>
75 <?php if ($user->isAdmin()) { ?>
76 <?php echo $LOCKED_CB ?> <label for="edit-locked" title="<?php echo _("Make the page read-only?")?>"><?php echo _("Locked")?></label>
77 <?php if (ENABLE_PAGE_PUBLIC) { ?>
78 <?php echo $PUBLIC_CB ?> <label for="edit-public" title="<?php echo _("Export to a separate public area?")?>"><?php echo _("Public")?></label>
81 <td colspan="2" class="align-right">
82 <?php if (!$user->isAuthenticated()) { ?>
83 <?php echo Template('signin', array('FORMNAME' => 'editpage')) ?>
88 <?php echo $HIDDEN_INPUTS?>
90 <div style="width:100%;text-align:center;"><?php /*plugin UpLoad autolink=0 mode=edit size=30 */?></div>
94 <div class="wiki-edithelp">
95 <!-- FIXME: do we need this at all? If so, it could probably be moved to TextFormattingRules -->
96 <p><?php echo fmt("See %s tips for editing.", WikiLink(_("Help")."/"._("GoodStyle"))) ?></p>
97 <?plugin IncludePage page=_("Help")."/"._("TextFormattingRules") section=_("Synopsis") quiet=1?>