2 <!-- $Id: editpage.tmpl,v 1.7 2002-01-21 06:55:47 dairiki Exp $ -->
4 <?php if (isset($PREVIEW_CONTENT)) { ?>
5 <p><strong><?=_("Preview only! Changes not saved.")?></strong></p>
6 <div class="wikitext"><?= $PREVIEW_CONTENT ?></div>
9 <?php if (!$IS_CURRENT) { ?>
10 <p><strong><?=_("Warning: You are editing an old revision.")?>
11 <?=_("Saving this page will overwrite the current version.")?></strong></p>
12 <hr class="ignore" noshade="noshade" />
17 * The <?=$ACTION?>EditPage URL used for the form action parameter is bogus.
18 * This is needed, otherwise the redirect to the real browser
19 * page won't work with some browsers. (NS4 and Mozilla 0.97 won't accept
20 * a redirect from a page to itself.)
22 * <textarea wrap="virtual"> is not valid xhtml but Netscape 4 requires it
27 <form method="post" action="<?=$ACTION?>EditPage" accept-charset="<?=CHARSET?>" name="editpage">
28 <textarea class="wikiedit"
30 rows="<?=$EDIT_AREA_HEIGHT?>"
31 cols="<?=$EDIT_AREA_WIDTH?>"
32 wrap="virtual"><?=$FORMVARS['content']?></textarea>
34 $SummaryInput = HTML::input(array('type' => 'text',
35 'class' => 'wikitext',
38 'value' => $FORMVARS['summary']));
40 $MinorEditCb = HTML::input(array('type' => 'checkbox',
41 'name' => 'minor_edit',
42 'checked' => (bool) $FORMVARS['minor_edit']));
44 $PreviewB = HTML::input(array('type' => 'submit',
47 'value' => _("Preview")));
48 $SaveB = HTML::input(array('type' => 'submit',
51 'value' => _("Save")));
54 $SignIn = new WikiTemplate('signin');
55 $SignIn->qreplace('FORMNAME', 'editpage');
57 $UserPrefsB = $ButtonFactory->makeLinkButton(_("UserPreferences"));
58 $GoodStyleB = $ButtonFactory->makeLinkButton(_("GoodStyle"));
60 $s = $Theme->getButtonSeparator();
63 <div class="toolbar" style="text-align: center;">
64 <?=_("Summary:")?> <?= $SummaryInput ?>
66 <table summary="Toolbar: Page editing options." class="toolbar" width="100%"
67 cellpadding="0" cellspacing="0" border="0"><tr valign="baseline">
69 <?= $MinorEditCb ?> <?=_("This is a minor change.")?>
72 <?= $PreviewB ?><?=$s?><?= $SaveB ?>
75 <?= $user->isSignedIn()
77 : fmt("Author will be logged as %s.", HTML::em($USERID)) ?>
82 <table summary="Toolbar: Edit tips." class="toolbar"
83 cellpadding="0" cellspacing="0" border="0"><tr valign="middle">
84 <?php /* FIXME: convert this to use the IncludePage plugin.
85 * A table is used for proper image to text alignment when
86 * a theme uses image buttons.
90 <?php printf(_("You can change the size of the editing area in %s."),
91 "</td><td> ".$UserPrefsB->asXML()."</td><td>"); ?> </td>
93 <?php printf(_("See %s tips for editing."),
94 "</td><td> ".$GoodStyleB->asXML()." </td><td>"); ?></td>
97 <hr noshade="noshade" />
99 <div class="wiki-edithelp">
100 <?plugin IncludePage page=_("TextFormattingRules") section=_("Synopsis") quiet=1?>
103 <input type="hidden" name="action" value="save" />
104 <input type="hidden" name="pagename" value="<?=$FORMVARS['pagename']?>" />
105 <input type="hidden" name="editversion" value="<?=$FORMVARS['editversion']?>" />
106 <input type="hidden" name="version" value="<?=$FORMVARS['version']?>" />