2 <!-- $Id: editpage.tmpl,v 1.5 2002-01-22 03:17:47 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")));
24 $SignIn = new WikiTemplate('signin');
25 $SignIn->qreplace('FORMNAME', 'editpage');
27 $s = $Theme->getButtonSeparator();
32 * The <?=$ACTION?>EditPage URL used for the form action parameter is bogus.
33 * This is needed, otherwise the redirect to the real browser
34 * page won't work with some browsers. (NS4 and Mozilla 0.97 won't accept
35 * a redirect from a page to itself.)
37 * <textarea wrap="virtual"> is not valid xhtml but Netscape 4 requires it
42 <form method="post" action="<?=$ACTION?>EditPage" accept-charset="<?=CHARSET?>" name="editpage">
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 (!$IS_CURRENT) { ?>
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="<?=$EDIT_AREA_HEIGHT?>"
65 cols="<?=$EDIT_AREA_WIDTH?>"
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 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 LinkExistingWikiWord(_("GoodStyle"))) ?>
81 <?= fmt("You can change the size of the editing area in %s.",
82 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']?>" />