2 <!-- $Id: editpage.tmpl,v 1.11 2002-01-23 19:21:43 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")));
23 $WidthI = HTML::input(array('type' => 'text',
25 'name' => 'pref[editWidth]',
26 'value' => $preferences->get('editWidth'),
27 'onchange' => 'this.form.submit();'));
29 $HeightI = HTML::input(array('type' => 'text',
31 'name' => 'pref[editHeight]',
32 'value' => $preferences->get('editHeight'),
33 'onchange' => 'this.form.submit();'));
35 $AdjustB = $Theme->makeButton(_("Adjust"), "submit:");
37 $SignIn = new WikiTemplate('signin');
38 $SignIn->qreplace('FORMNAME', 'editpage');
40 $GoodStyleB = $ButtonFactory->makeLinkButton(_("GoodStyle"));
42 $s = $Theme->getButtonSeparator();
45 <?php if (isset($PREVIEW_CONTENT)) { ?>
46 <p><strong><?=_("Preview only! Changes not saved.")?></strong></p>
47 <div class="wikitext"><?= $PREVIEW_CONTENT ?></div>
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>
53 <hr class="ignore" noshade="noshade" />
58 * The <?=$ACTION?>EditPage URL used for the form action parameter is bogus.
59 * This is needed, otherwise the redirect to the real browser
60 * page won't work with some browsers. (NS4 and Mozilla 0.97 won't accept
61 * a redirect from a page to itself.)
63 * <textarea wrap="virtual"> is not valid xhtml but Netscape 4 requires it
68 <form method="post" action="<?=$ACTION?>EditPage" accept-charset="<?=CHARSET?>" name="editpage">
69 <!-- FIXME: fix layout, move CSS to CSS -->
70 <div style="text-align: right; vertical-align: top;">
71 <small><?=_("Edit Area Size:")?> <b><?=_("H")?></b></small>
73 <small><b><?=_("W")?></b></small>
75 <noscript><?=$AdjustB?></noscript>
77 <textarea class="wikiedit"
79 rows="<?=$preferences->get('editHeight')?>"
80 cols="<?=$preferences->get('editWidth')?>"
81 wrap="virtual"><?=$FORMVARS['content']?></textarea>
83 <!-- FIXME: fix layout, move CSS to CSS -->
84 <div class="toolbar" style="text-align: center;">
85 <?=_("Summary:")?> <?= $SummaryInput ?>
87 <table summary="Toolbar: Page editing options." class="toolbar" width="100%"
88 cellpadding="0" cellspacing="0" border="0">
89 <tr valign="baseline">
91 <?= $MinorEditCb ?> <?=_("This is a minor change.")?>
98 <?= $user->isSignedIn()
100 : fmt("Author will be logged as %s.", HTML::em($user->getId())) ?>
106 <!-- FIXME: do we need this at all? If so, it could probably be moved to TextFormattingRules -->
107 <p><?= fmt("See %s tips for editing.", $GoodStyleB) ?></p>
109 <hr noshade="noshade" />
111 <div class="wiki-edithelp">
112 <?plugin IncludePage page=_("TextFormattingRules") section=_("Synopsis") quiet=1?>
115 <input type="hidden" name="action" value="save" />
116 <input type="hidden" name="pagename" value="<?=$FORMVARS['pagename']?>" />
117 <input type="hidden" name="editversion" value="<?=$FORMVARS['editversion']?>" />
118 <input type="hidden" name="version" value="<?=$FORMVARS['version']?>" />