2 <!-- $Id: editpage.tmpl,v 1.3 2002-01-21 00:40:15 carstenklapp Exp $ -->
4 $SummaryInput = Element('input',
5 array('type' => 'text',
9 'value' => $FORMVARS['summary']));
11 $MinorEditCb = Element('input',
12 array('type' => 'checkbox',
13 'name' => 'minor_edit',
14 'checked' => (bool) $FORMVARS['minor_edit']));
16 $PreviewB = Element('input',
17 array('type' => 'submit',
20 'value' => _("Preview")));
21 $SaveB = Element('input',
22 array('type' => 'submit',
25 'value' => _("Save")));
28 $SignIn = new WikiTemplate('signin');
29 $SignIn->qreplace('FORMNAME', 'editpage');
31 $s = $Theme->getButtonSeparator();
36 * The <?=$ACTION?>EditPage 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" action="<?=$ACTION?>EditPage" accept-charset="<?=CHARSET?>" name="editpage">
47 <table summary="Toolbar: Save, Preview, and edit warnings." class="toolbar" width="100%"
48 cellpadding="0" cellspacing="0" border="0"><tr align="baseline">
50 <?php if (!$IS_CURRENT) { ?>
51 <p><strong><?=_("Warning: You are editing an old revision.")?>
52 <?=_("Saving this page will overwrite the current version.")?></strong></p>
54 <?php if (isset($PREVIEW_CONTENT)) { ?>
55 <p><strong><?=_("Preview only! Changes not saved.")?></strong></p>
58 <td align="right"><?= $PreviewB ?><?=$s?><?= $SaveB ?></td></tr>
59 <?php if (isset($PREVIEW_CONTENT)) { ?>
62 <div class="wikitext"><?= $PREVIEW_CONTENT ?></div>
66 <textarea class="wikiedit"
68 rows="<?=$EDIT_AREA_HEIGHT?>"
69 cols="<?=$EDIT_AREA_WIDTH?>"
70 wrap="virtual"><?=$FORMVARS['content']?></textarea>
72 <?=_("Summary:")?> <?= $SummaryInput ?>
74 <?php printf(_("Author will be logged as %s."),
75 QElement('em', $USERID)); ?>
78 <?php printf(_("I'm just doing minor edits. Please divert the usual logging to %s instead."),
79 LinkExistingWikiWord(_("RecentEdits"))); ?>
81 <div name="#edit-tips"><?php
82 // FIXME: convert this to use the IncludePage plugin.
83 printf(_("See %s tips for editing."),
84 LinkExistingWikiWord(_("GoodStyle")));
85 printf("<br />\n" ._("You can change the size of the editing area in %s."),
86 LinkExistingWikiWord(_("UserPreferences")));
89 <div class="wiki-edithelp">
90 <?plugin IncludePage page=_("TextFormattingRules") section=_("Synopsis") quiet=1?>
92 <input type="hidden" name="action" value="save" />
93 <input type="hidden" name="pagename" value="<?=$FORMVARS['pagename']?>" />
94 <input type="hidden" name="editversion" value="<?=$FORMVARS['editversion']?>" />
95 <input type="hidden" name="version" value="<?=$FORMVARS['version']?>" />