2 <!-- $Id: editpage.tmpl,v 1.20 2002-02-06 04:42:18 dairiki Exp $ -->
4 $WidthI = HTML::input(array('type' => 'text',
6 'name' => 'pref[editWidth]',
7 'value' => $request->getPref('editWidth'),
8 'onchange' => 'this.form.submit();'));
10 $HeightI = HTML::input(array('type' => 'text',
12 'name' => 'pref[editHeight]',
13 'value' => $request->getPref('editHeight'),
14 'onchange' => 'this.form.submit();'));
17 $s = $Theme->getButtonSeparator();
20 <?php if (isset($PREVIEW_CONTENT)) { ?>
21 <p><strong><?=_("Preview only! Changes not saved.")?></strong>
22 <!-- FIXME: it would be nice to put a link to the #editarea anchor below,
23 but it does not work currently with the <base> declared in top.tmpl.
24 I think we need to do away with using <base> altogether... -->
25 Please continue editing. (You'll find your edit area at the bottom of the page.)
27 <div class="wikitext"><?= $PREVIEW_CONTENT ?></div>
30 <?= $PAGE_LOCKED_MESSAGE ?>
31 <?= $CONCURRENT_UPDATE_MESSAGE ?>
33 <?php if (! $IS_CURRENT) { ?>
34 <p><strong><?=_("Warning: You are editing an old revision.")?>
35 <?=_("Saving this page will overwrite the current version.")?></strong></p>
36 <hr class="ignore" noshade="noshade" />
41 * The funky URL used for the form action parameter is bogus.
42 * This is needed, otherwise the redirect to the real browser
43 * page won't work with some browsers. (NS4 and Mozilla 0.97 won't accept
44 * a redirect from a page to itself.)
46 * <textarea wrap="virtual"> is not valid xhtml but Netscape 4 requires it
51 <form method="post" name="editpage"
52 action="<?=WikiURL($page,array('action'=>'edit'))?>"
53 accept-charset="<?=CHARSET?>">
54 <!-- FIXME: fix layout, move CSS to CSS -->
55 <div style="text-align: right; vertical-align: top;">
56 <small><?=_("Edit Area Size:")?> <b><?=_("H")?></b></small>
58 <small><b><?=_("W")?></b></small>
60 <noscript><?=Button("submit:", _("Adjust"))?></noscript>
63 <a name="editarea" id="editarea"><?=$EDIT_TEXTAREA?></a>
65 <!-- FIXME: fix layout, move CSS to CSS -->
66 <div class="toolbar" style="text-align: center;">
67 <?=_("Summary:")?> <?=$SUMMARY_INPUT?>
69 <table summary="Toolbar: Page editing options." class="toolbar" width="100%"
70 cellpadding="0" cellspacing="0" border="0">
73 <?=$MINOR_EDIT_CB ?> <?=_("This is a minor change.")?><br />
74 <?=$NEW_MARKUP_CB?> <?=_("Use new markup")?>
78 <?php if ($SAVE_B) { ?>
83 <?= $user->isSignedIn()
85 : fmt("Author will be logged as %s.", HTML::em($user->getId())) ?>
86 <?= Template('signin', array('FORMNAME' => 'editpage')) ?>
89 <?php if ($user->isadmin()) { ?>
91 <td><?= $LOCKED_CB ?> <?=_("Locked")?></td>
96 <hr noshade="noshade" />
98 <div class="wiki-edithelp">
99 <!-- FIXME: do we need this at all? If so, it could probably be moved to TextFormattingRules -->
100 <p><?= fmt("See %s tips for editing.", WikiLink(_("GoodStyle"), "button")) ?></p>
101 <?plugin IncludePage page=_("TextFormattingRules") section=_("Synopsis") quiet=1?>