2 <!-- $Id: editpage.tmpl,v 1.13 2002-01-30 23:41:55 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 $s = $Theme->getButtonSeparator();
22 * The funky URL used for the form action parameter is bogus.
23 * This is needed, otherwise the redirect to the real browser
24 * page won't work with some browsers. (NS4 and Mozilla 0.97 won't accept
25 * a redirect from a page to itself.)
27 * <textarea wrap="virtual"> is not valid xhtml but Netscape 4 requires it
32 <form method="post" name="editpage"
33 action="<?=WikiURL($page,array('action'=>'edit'))?>"
34 accept-charset="<?=CHARSET?>">
35 <table summary="Toolbar: Save, Preview, and edit warnings." class="toolbar" width="100%"
36 cellpadding="0" cellspacing="0" border="0">
39 <?= $PAGE_LOCKED_MESSAGE ?>
40 <?= $CONCURRENT_UPDATE_MESSAGE ?>
41 <?php if (!$IS_CURRENT) { ?>
42 <p><strong><?=_("Warning: You are editing an old revision.")?>
43 <?=_("Saving this page will overwrite the current version.")?></strong></p>
48 <?php if ($SAVE_B) { ?>
49 <?=$s?> <?= $SAVE_B ?>
56 <?=_("Summary:")?> <?= $SUMMARY_INPUT ?>
58 <?= fmt("Author will be logged as %s.", HTML::em($user->getId())) ?>
61 <?= fmt("I'm just doing minor edits. Please divert the usual logging to %s instead.",
62 WikiLink(_("RecentEdits"))) ?>
65 <?=_("Edit Area Size:")?> <b><?=_("H")?></b>
69 <?=Button("submit:", _("Adjust"))?>
71 <?=$NEW_MARKUP_CB?> <?=_("Use new markup")?>
74 <?php if (isset($PREVIEW_CONTENT)) { ?>
76 <p><strong><?=_("Preview only! Changes not saved.")?></strong></p>
77 <div class="wikitext"><?= $PREVIEW_CONTENT ?></div>
80 <!-- FIXME: do we need this at all? If so, it could probably be moved to TextFormattingRules -->
81 <p><?= fmt("See %s tips for editing.", WikiLink(_("GoodStyle"), "button")) ?></p>
82 <div class="wiki-edithelp">
83 <?plugin IncludePage page=_("TextFormattingRules") section=_("Synopsis") quiet=1?>