]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Portland/templates/editpage.tmpl
Clean up old markup
[SourceForge/phpwiki.git] / themes / Portland / templates / editpage.tmpl
1 <?php /*
2  * FIXME: Hack!
3  * The funky URL used for the form action parameter is bogus.
4  * This is needed, otherwise the redirect to the real browser
5  * page won't work with some browsers. (NS4 and Mozilla 0.97 won't accept
6  * a redirect from a page to itself.)
7  *
8  */ ?>
9
10 <form method="post" name="editpage"
11       action="<?php echo $request->getPostURL() ?>"
12       accept-charset="UTF-8">
13 <table class="toolbar fullwidth">
14 <tr class="bottom">
15   <td>
16     <?php echo $PAGE_LOCKED_MESSAGE ?>
17     <?php echo $CONCURRENT_UPDATE_MESSAGE ?>
18     <?php if (!$IS_CURRENT) { ?>
19       <p class="warning_msg"><strong><?php echo _("Warning: You are editing an old revision.")?>
20             <?php echo _("Saving this page will overwrite the current version.")?></strong></p>
21     <?php } ?>
22   </td>
23   <td class="align-right">
24     <?php echo $PREVIEW_B ?>
25     <?php if ($SAVE_B) { ?>
26       <?php echo $SEP?> <?php echo $SAVE_B ?>
27     <?php } ?>
28   </td>
29 </tr>
30 </table>
31 <a id="editarea"><?php echo $EDIT_TEXTAREA?></a>
32 <br />
33 <?php echo _("Summary")?>: <?php echo $SUMMARY_INPUT ?>
34 <br />
35 <?php echo fmt("Author will be logged as %s.", HTML::em($user->getId())) ?>
36 <br />
37 <?php echo $MINOR_EDIT_CB ?>
38 <?php echo fmt("I'm just doing minor edits. Please divert the usual logging to %s instead.",
39         WikiLink(_("RecentEdits"))) ?>
40 <br />
41 <p>
42   <?php echo _("Edit Area Size")?>: <b><?php echo _("H")?></b> <?php echo $HEIGHT_PREF?> 
43   <b><?php echo _("W")?></b> <?php echo $WIDTH_PREF?>
44   <?php echo Button("submit:", _("Adjust"), 'wikiaction')?>
45 </p>
46
47 <?php if (isset($PREVIEW_CONTENT)) { ?>
48   <hr />
49   <p><strong><?php echo _("Preview only!  Changes not saved.")?></strong></p>
50   <?php echo $PREVIEW_CONTENT ?>
51   <hr />
52 <?php } ?>
53
54 <div class="wiki-edithelp">
55 <!-- FIXME: do we need this at all?  If so, it could probably be moved to TextFormattingRules -->
56 <p><?php echo fmt("See %s tips for editing.", WikiLink(_("Help")."/"._("GoodStyle"))) ?></p>
57 <?plugin IncludePage page=_("Help")."/"._("TextFormattingRules") section=_("Synopsis") quiet=1?>
58 </div>
59 <?php echo $HIDDEN_INPUTS?>
60 </form>
61
62 <hr />