2 <!-- $Id: editpage.tmpl,v 1.12 2002-01-30 01:33:20 dairiki Exp $ -->
5 $WidthI = HTML::input(array('type' => 'text',
7 'name' => 'pref[editWidth]',
8 'value' => $request->getPref('editWidth'),
9 'onchange' => 'this.form.submit();'));
11 $HeightI = HTML::input(array('type' => 'text',
13 'name' => 'pref[editHeight]',
14 'value' => $request->getPref('editHeight'),
15 'onchange' => 'this.form.submit();'));
17 $AdjustB = $Theme->makeButton(_("Adjust"), "submit:");
20 $GoodStyleB = $Theme->makeLinkButton(_("GoodStyle"));
22 $s = $Theme->getButtonSeparator();
27 * The funky URL used for the form action parameter is bogus.
28 * This is needed, otherwise the redirect to the real browser
29 * page won't work with some browsers. (NS4 and Mozilla 0.97 won't accept
30 * a redirect from a page to itself.)
32 * <textarea wrap="virtual"> is not valid xhtml but Netscape 4 requires it
37 <form method="post" name="editpage"
38 action="<?=WikiURL($page,array('action'=>'edit'))?>"
39 accept-charset="<?=CHARSET?>">
40 <table summary="Toolbar: Save, Preview, and edit warnings." class="toolbar" width="100%"
41 cellpadding="0" cellspacing="0" border="0">
44 <?= $PAGE_LOCKED_MESSAGE ?>
45 <?= $CONCURRENT_UPDATE_MESSAGE ?>
46 <?php if (!$IS_CURRENT) { ?>
47 <p><strong><?=_("Warning: You are editing an old revision.")?>
48 <?=_("Saving this page will overwrite the current version.")?></strong></p>
53 <?php if ($SAVE_B) { ?>
54 <?=$s?> <?= $SAVE_B ?>
61 <?=_("Summary:")?> <?= $SUMMARY_INPUT ?>
63 <?= fmt("Author will be logged as %s.", HTML::em($user->getId())) ?>
66 <?= fmt("I'm just doing minor edits. Please divert the usual logging to %s instead.",
67 $Theme->linkExistingWikiWord(_("RecentEdits"))) ?>
70 <?=_("Edit Area Size:")?> <b><?=_("H")?></b>
76 <?=$NEW_MARKUP_CB?> <?=_("Use new markup")?>
79 <?php if (isset($PREVIEW_CONTENT)) { ?>
81 <p><strong><?=_("Preview only! Changes not saved.")?></strong></p>
82 <div class="wikitext"><?= $PREVIEW_CONTENT ?></div>
85 <!-- FIXME: do we need this at all? If so, it could probably be moved to TextFormattingRules -->
86 <p><?= fmt("See %s tips for editing.", $GoodStyleB) ?></p>
87 <div class="wiki-edithelp">
88 <?plugin IncludePage page=_("TextFormattingRules") section=_("Synopsis") quiet=1?>