2 <!-- $Id: editpage.tmpl,v 1.17 2002-01-30 23:41:55 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></p>
22 <div class="wikitext"><?= $PREVIEW_CONTENT ?></div>
25 <?= $PAGE_LOCKED_MESSAGE ?>
26 <?= $CONCURRENT_UPDATE_MESSAGE ?>
28 <?php if (! $IS_CURRENT) { ?>
29 <p><strong><?=_("Warning: You are editing an old revision.")?>
30 <?=_("Saving this page will overwrite the current version.")?></strong></p>
31 <hr class="ignore" noshade="noshade" />
36 * The funky URL used for the form action parameter is bogus.
37 * This is needed, otherwise the redirect to the real browser
38 * page won't work with some browsers. (NS4 and Mozilla 0.97 won't accept
39 * a redirect from a page to itself.)
41 * <textarea wrap="virtual"> is not valid xhtml but Netscape 4 requires it
46 <form method="post" name="editpage"
47 action="<?=WikiURL($page,array('action'=>'edit'))?>"
48 accept-charset="<?=CHARSET?>">
49 <!-- FIXME: fix layout, move CSS to CSS -->
50 <div style="text-align: right; vertical-align: top;">
51 <small><?=_("Edit Area Size:")?> <b><?=_("H")?></b></small>
53 <small><b><?=_("W")?></b></small>
55 <noscript><?=Button("submit:", _("Adjust"))?></noscript>
60 <!-- FIXME: fix layout, move CSS to CSS -->
61 <div class="toolbar" style="text-align: center;">
62 <?=_("Summary:")?> <?=$SUMMARY_INPUT?>
64 <table summary="Toolbar: Page editing options." class="toolbar" width="100%"
65 cellpadding="0" cellspacing="0" border="0">
68 <?=$MINOR_EDIT_CB ?> <?=_("This is a minor change.")?><br />
69 <?=$NEW_MARKUP_CB?> <?=_("Use new markup")?>
73 <?php if ($SAVE_B) { ?>
78 <?= $user->isSignedIn()
80 : fmt("Author will be logged as %s.", HTML::em($user->getId())) ?>
81 <?= Template('signin', array('FORMNAME' => 'editpage')) ?>
86 <hr noshade="noshade" />
88 <div class="wiki-edithelp">
89 <!-- FIXME: do we need this at all? If so, it could probably be moved to TextFormattingRules -->
90 <p><?= fmt("See %s tips for editing.", WikiLink(_("GoodStyle"), "button")) ?></p>
91 <?plugin IncludePage page=_("TextFormattingRules") section=_("Synopsis") quiet=1?>