2 <!-- $Id: editpage.tmpl,v 1.8 2002-01-24 00:45:28 dairiki Exp $ -->
4 $SummaryInput = HTML::input(array('type' => 'text',
8 'value' => $FORMVARS['summary']));
10 $MinorEditCb = HTML::input(array('type' => 'checkbox',
11 'name' => 'minor_edit',
12 'checked' => (bool) $FORMVARS['minor_edit']));
14 $PreviewB = HTML::input(array('type' => 'submit',
17 'value' => _("Preview")));
18 $SaveB = HTML::input(array('type' => 'submit',
21 'value' => _("Save")));
25 $s = $Theme->getButtonSeparator();
30 * The funky URL used for the form action parameter is bogus.
31 * This is needed, otherwise the redirect to the real browser
32 * page won't work with some browsers. (NS4 and Mozilla 0.97 won't accept
33 * a redirect from a page to itself.)
35 * <textarea wrap="virtual"> is not valid xhtml but Netscape 4 requires it
40 <form method="post" name="editpage"
41 action="<?=WikiURL($page,array('action'=>'edit'))?>"
42 accept-charset="<?=CHARSET?>">
43 <table summary="Toolbar: Save, Preview, and edit warnings." class="toolbar" width="100%"
44 cellpadding="0" cellspacing="0" border="0"><tr align="baseline">
46 <?php if (!$revision->isCurrent()) { ?>
47 <p><strong><?=_("Warning: You are editing an old revision.")?>
48 <?=_("Saving this page will overwrite the current version.")?></strong></p>
50 <?php if (isset($PREVIEW_CONTENT)) { ?>
51 <p><strong><?=_("Preview only! Changes not saved.")?></strong></p>
54 <td align="right"><?= $PreviewB ?><?=$s?><?= $SaveB ?></td></tr>
55 <?php if (isset($PREVIEW_CONTENT)) { ?>
58 <div class="wikitext"><?= $PREVIEW_CONTENT ?></div>
62 <textarea class="wikiedit"
64 rows="<?=$request->getPref('editHeight')?>"
65 cols="<?=$request->getPref('editWidth')?>"
66 wrap="virtual"><?=$FORMVARS['content']?></textarea>
68 <?=_("Summary:")?> <?= $SummaryInput ?>
70 <?= fmt("Author will be logged as %s.", HTML::em($user->getId())) ?>
73 <?= fmt("I'm just doing minor edits. Please divert the usual logging to %s instead.",
74 $Theme->linkExistingWikiWord(_("RecentEdits"))) ?>
76 <div name="#edit-tips"><?php
77 // FIXME: convert this to use the IncludePage plugin. ?>
78 <?= fmt("See %s tips for editing.",
79 $Theme->linkExistingWikiWord(_("GoodStyle"))) ?>
81 <?= fmt("You can change the size of the editing area in %s.",
82 $Theme->linkExistingWikiWord(_("UserPreferences"))) ?>
85 <div class="wiki-edithelp">
86 <?plugin IncludePage page=_("TextFormattingRules") section=_("Synopsis") quiet=1?>
88 <input type="hidden" name="action" value="save" />
89 <input type="hidden" name="pagename" value="<?=$FORMVARS['pagename']?>" />
90 <input type="hidden" name="editversion" value="<?=$FORMVARS['editversion']?>" />
91 <input type="hidden" name="version" value="<?=$FORMVARS['version']?>" />