2 <!-- $Id: editpage.tmpl,v 1.5 2005-01-04 20:14:59 rurban Exp $ -->
4 $WidthI = HTML::input(array('type' => 'text',
8 'name' => 'pref[editWidth]',
9 'value' => $request->getPref('editWidth'),
10 'onchange' => 'this.form.submit();'));
12 $HeightI = HTML::input(array('type' => 'text',
16 'name' => 'pref[editHeight]',
17 'value' => $request->getPref('editHeight'),
18 'onchange' => 'this.form.submit();'));
21 $s = $WikiTheme->getButtonSeparator();
23 <?php if (isset($PREVIEW_CONTENT)) { ?>
24 <p><strong><?=_("Preview only! Changes not saved.")?></strong>
25 <!-- FIXME: it would be nice to put a link to the #editarea anchor below,
26 but it does not work currently with the <base> declared in top.tmpl.
27 I think we need to do away with using <base> altogether... -->
28 <?= fmt("Please continue editing. (You'll find your %s at the bottom of the page.)",
29 /* HTML::a(array("href" => "#editarea"), */ _("edit area") /*) */) ?>
31 <hr class="printer" noshade="noshade" />
32 <?= $PREVIEW_CONTENT ?>
33 <hr class="printer" noshade="noshade" />
35 <?= $PAGE_LOCKED_MESSAGE ?>
36 <?= $CONCURRENT_UPDATE_MESSAGE ?>
37 <?php if (! $IS_CURRENT) { ?>
38 <p><strong><?=_("Warning: You are editing an old revision.")?>
39 <?=_("Saving this page will overwrite the current version.")?></strong></p>
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 <form method="post" id="editpage" name="editpage"
49 action="<?= $request->getPostURL() ?>"
50 accept-charset="<?=CHARSET?>">
51 <?php /* To clear beyond a larger logo, such as in the Hawaiian theme */ ?>
52 <br clear="all" class="clear-floats" />
54 <tr><td><?= $EDIT_TOOLBAR ?></td>
55 <td align="right"><div id="editarea-size">
57 <b><?=_("H")?></b> <?=$HeightI?>
58 <b><?=_("W")?></b> <?=$WidthI?>
59 <noscript><?=Button("submit:", _("Adjust"), 'wikiaction')?></noscript>
60 </div></td></tr></table>
61 <fieldset class="editarea">
62 <legend><?=_("Page Content: ")?></legend>
63 <a name="editarea"></a><?=$EDIT_TEXTAREA?>
65 <!-- FIXME: fix layout, move CSS to CSS -->
66 <fieldset class="editarea">
67 <legend><?=_("Summary").':'?></legend>
68 <br /> <?=$SUMMARY_INPUT?>
70 <fieldset class="toolbar">
71 <?=$MINOR_EDIT_CB ?> <?=_("This is a minor change.")?>
72 <?=$OLD_MARKUP_CB?> <?=_("Use old markup")?>
74 <fieldset class="toolbar">
76 <?php if ($SAVE_B) { ?>
80 <fieldset class="toolbar">
81 <?= $user->isSignedIn()
83 : fmt("Author will be logged as %s.", HTML::em($user->getId())) ?>
84 <label><?= Template('signin', array('FORMNAME' => 'editpage')) ?></label>
86 <?php if ($user->isadmin()) { ?>
87 <fieldset class="toolbar">
88 <label><?= $LOCKED_CB ?> <?=_("Locked")?></label>
91 <hr noshade="noshade" />
92 <script language="JavaScript1.3" type="text/javascript">
94 function showOldMarkupRules(show) {
95 if (document.getElementById) {
97 document.getElementById('newMarkup').style.display="block";
98 document.getElementById('oldMarkup').style.display="none";
100 document.getElementById('newMarkup').style.display="none";
101 document.getElementById('oldMarkup').style.display="block";
107 <div id="oldMarkup" class="wiki-edithelp">
108 <!-- FIXME: do we need this at all? If so, it could probably be moved to TextFormattingRules -->
109 <p><?= fmt("See %s tips for editing.", WikiLink(_("GoodStyle"))) ?></p>
110 <?plugin IncludePage page=_("OldTextFormattingRules") section=_("Synopsis") quiet=1?>
112 <div id="newMarkup" class="wiki-edithelp">
113 <!-- FIXME: do we need this at all? If so, it could probably be moved to TextFormattingRules -->
114 <p><?= fmt("See %s tips for editing.", WikiLink(_("GoodStyle"))) ?></p>
115 <?plugin IncludePage page=_("TextFormattingRules") section=_("Synopsis") quiet=1?>
119 <script language="JavaScript1.3" type="text/javascript">
121 if (document.getElementById) {
122 showOldMarkupRules(document.getElementById('useOldMarkup').checked);