2 <!-- $Id: editpage.tmpl,v 1.22 2005-09-28 19:00:24 rurban Exp $ -->
5 * The funky URL used for the form action parameter is bogus.
6 * This is needed, otherwise the redirect to the real browser
7 * page won't work with some browsers. (NS4 and Mozilla 0.97 won't accept
8 * a redirect from a page to itself.)
10 * <textarea wrap="virtual"> is not valid xhtml but Netscape 4 requires it
15 <form method="post" name="editpage"
16 action="<?= $request->getPostURL() ?>"
17 accept-charset="<?=CHARSET?>">
18 <table summary="Toolbar: Save, Preview, and edit warnings." class="toolbar" width="100%"
19 cellpadding="0" cellspacing="0" border="0">
22 <?= $PAGE_LOCKED_MESSAGE ?>
23 <?= $CONCURRENT_UPDATE_MESSAGE ?>
24 <?php if (!$IS_CURRENT) { ?>
25 <p><strong><?=_("Warning: You are editing an old revision.")?>
26 <?=_("Saving this page will overwrite the current version.")?></strong></p>
31 <?php if ($SAVE_B) { ?>
32 <?=$SEP?> <?= $SAVE_B ?>
37 <a name="editarea" id="editarea"><?=$EDIT_TEXTAREA?></a>
39 <?=_("Summary")?>: <?= $SUMMARY_INPUT ?>
41 <?= fmt("Author will be logged as %s.", HTML::em($user->getId())) ?>
44 <?= fmt("I'm just doing minor edits. Please divert the usual logging to %s instead.",
45 WikiLink(_("RecentEdits"))) ?>
48 <?=_("Edit Area Size")?>: <b><?=_("H")?></b> <?=$HEIGHT_PREF?>
49 <b><?=_("W")?></b> <?=$WIDTH_PREF?>
50 <?=Button("submit:", _("Adjust"), 'wikiaction')?>
52 <?=$OLD_MARKUP_CB?> <?=_("Use old markup")?>
55 <?php if (isset($PREVIEW_CONTENT)) { ?>
57 <p><strong><?=_("Preview only! Changes not saved.")?></strong></p>
58 <?= $PREVIEW_CONTENT ?>
62 <script language="JavaScript1.3" type="text/javascript">
64 function showOldMarkupRules(show) {
65 if (document.getElementById) {
67 document.getElementById('newMarkup').style.display="block";
68 document.getElementById('oldMarkup').style.display="none";
70 document.getElementById('newMarkup').style.display="none";
71 document.getElementById('oldMarkup').style.display="block";
78 <div id="oldMarkup" class="wiki-edithelp">
79 <!-- FIXME: do we need this at all? If so, it could probably be moved to TextFormattingRules -->
80 <p><?= fmt("See %s tips for editing.", WikiLink(_("GoodStyle"))) ?></p>
81 <?plugin IncludePage page=_("OldTextFormattingRules") section=_("Synopsis") quiet=1?>
83 <div id="newMarkup" class="wiki-edithelp">
84 <!-- FIXME: do we need this at all? If so, it could probably be moved to TextFormattingRules -->
85 <p><?= fmt("See %s tips for editing.", WikiLink(_("GoodStyle"))) ?></p>
86 <?plugin IncludePage page=_("TextFormattingRules") section=_("Synopsis") quiet=1?>
91 <script language="JavaScript1.3" type="text/javascript">
93 if (document.getElementById) {
94 showOldMarkupRules(document.getElementById('useOldMarkup').checked);