2 <!-- $Id: editpage.tmpl,v 1.21 2002-02-07 03:47:27 carstenklapp Exp $ -->
4 $WidthI = HTML::input(array('type' => 'text',
7 'name' => 'pref[editWidth]',
8 'value' => $request->getPref('editWidth'),
9 'onchange' => 'this.form.submit();'));
11 $HeightI = HTML::input(array('type' => 'text',
14 'name' => 'pref[editHeight]',
15 'value' => $request->getPref('editHeight'),
16 'onchange' => 'this.form.submit();'));
19 $s = $Theme->getButtonSeparator();
22 <?php if (isset($PREVIEW_CONTENT)) { ?>
23 <p><strong><?=_("Preview only! Changes not saved.")?></strong>
24 <!-- FIXME: it would be nice to put a link to the #editarea anchor below,
25 but it does not work currently with the <base> declared in top.tmpl.
26 I think we need to do away with using <base> altogether... -->
27 Please continue editing. (You'll find your <!--a href="#editarea"-->edit area<!--/a--> at the bottom of the page.)
29 <div class="wikitext"><?= $PREVIEW_CONTENT ?></div>
32 <?= $PAGE_LOCKED_MESSAGE ?>
33 <?= $CONCURRENT_UPDATE_MESSAGE ?>
35 <?php if (! $IS_CURRENT) { ?>
36 <p><strong><?=_("Warning: You are editing an old revision.")?>
37 <?=_("Saving this page will overwrite the current version.")?></strong></p>
38 <hr class="ignore" noshade="noshade" />
43 * The funky URL used for the form action parameter is bogus.
44 * This is needed, otherwise the redirect to the real browser
45 * page won't work with some browsers. (NS4 and Mozilla 0.97 won't accept
46 * a redirect from a page to itself.)
48 * <textarea wrap="virtual"> is not valid xhtml but Netscape 4 requires it
53 <form method="post" name="editpage"
54 action="<?=WikiURL($page,array('action'=>'edit'))?>"
55 accept-charset="<?=CHARSET?>">
56 <!-- FIXME: fix layout, move CSS to CSS -->
57 <div style="text-align: right; vertical-align: top;">
58 <small><?=_("Edit Area Size:")?> <b><?=_("H")?></b></small>
60 <small><b><?=_("W")?></b></small>
62 <noscript><?=Button("submit:", _("Adjust"))?></noscript>
65 <a name="editarea" id="editarea"><?=$EDIT_TEXTAREA?></a>
67 <!-- FIXME: fix layout, move CSS to CSS -->
68 <div class="toolbar" style="text-align: center;">
69 <?=_("Summary:")?> <?=$SUMMARY_INPUT?>
71 <table summary="Toolbar: Page editing options." class="toolbar" width="100%"
72 cellpadding="0" cellspacing="0" border="0">
75 <?=$MINOR_EDIT_CB ?> <?=_("This is a minor change.")?><br />
76 <?=$NEW_MARKUP_CB?> <?=_("Use new markup")?>
80 <?php if ($SAVE_B) { ?>
85 <?= $user->isSignedIn()
87 : fmt("Author will be logged as %s.", HTML::em($user->getId())) ?>
88 <?= Template('signin', array('FORMNAME' => 'editpage')) ?>
91 <?php if ($user->isadmin()) { ?>
93 <td><?= $LOCKED_CB ?> <?=_("Locked")?></td>
98 <hr noshade="noshade" />
100 <div class="wiki-edithelp">
101 <!-- FIXME: do we need this at all? If so, it could probably be moved to TextFormattingRules -->
102 <p><?= fmt("See %s tips for editing.", WikiLink(_("GoodStyle"), "button")) ?></p>
103 <?plugin IncludePage page=_("TextFormattingRules") section=_("Synopsis") quiet=1?>