]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/gforge/templates/editpage.tmpl
Move horizontal line from wikitext to editdate class; remove hr; remove unused classe...
[SourceForge/phpwiki.git] / themes / gforge / templates / editpage.tmpl
1 <!-- -*-html-*- -->
2 <!-- $Id$ -->
3 <?php if (isset($PREVIEW_CONTENT)) { ?>
4   <p><strong><?=_("Preview only!  Changes not saved.")?></strong>
5 <!-- FIXME: it would be nice to put a link to the #editarea anchor below,
6      but it does not work currently with the <base> declared in top.tmpl.
7      I think we need to do away with using <base> altogether... -->
8      <?= fmt("Please continue editing.  (You'll find your %s at the bottom of the page.)",
9           /* HTML::a(array("href" => "#editarea"), */ _("edit area") /*)  */) ?>
10   </p>
11   <?= $PREVIEW_CONTENT ?>
12 <?php } ?>
13
14 <?= $PAGE_LOCKED_MESSAGE ?>
15 <?= $CONCURRENT_UPDATE_MESSAGE ?>
16
17 <?php if (! $IS_CURRENT) { ?>
18   <p><strong><?=_("Warning: You are editing an old revision.")?>
19         <?=_("Saving this page will overwrite the current version.")?></strong></p>
20 <?php } ?>
21 <?php /*
22  * FIXME: Hack! 
23  * The funky URL used for the form action parameter is bogus.
24  * This is needed, otherwise the redirect to the real browser
25  * page won't work with some browsers. (NS4 and Mozilla 0.97 won't accept
26  * a redirect from a page to itself.)
27  */ ?>
28 <form method="post" id="editpage" name="editpage"
29       action="<?= $request->getPostURL() ?>"
30       accept-charset="<?=CHARSET?>">
31   <?php if (!empty($_GET['start_debug'])) echo '<input type="hidden" name="start_debug" value="1" >'; ?>
32   <?php /* To clear beyond a larger logo, such as in the Hawaiian theme */ ?>
33   <br clear="all" class="clear-floats" />
34   <table width="100%">
35     <tr><td><?= $EDIT_TOOLBAR ?></td>
36         <td align="right"><div id="editarea-size">
37     <?=_("Size").':'?>
38     <label for="pref-editHeight"><b><?=_("H")?></b></label> <?=$HEIGHT_PREF?> 
39     <label for="pref-editWidth"><b><?=_("W")?></b></label> <?=$WIDTH_PREF?>
40     <noscript><?=Button("submit:", _("Adjust"), 'wikiaction')?></noscript>
41   </div></td></tr></table>
42   <a name="editarea"></a><?=$EDIT_TEXTAREA?>
43 <div class="toolbar" style="text-align: center;">
44   <label for="edit-summary"><?=_("Summary").':'?></label> <?=$SUMMARY_INPUT?>
45 </div>
46 <table summary="Toolbar: Page editing options." class="toolbar" width="100%"
47        cellpadding="0" cellspacing="0" border="0">
48 <tr valign="middle">
49   <td> 
50     <?=$MINOR_EDIT_CB ?> <label for="edit-minor_edit"><?=_("This is a minor change.")?></label><br />
51   </td>
52   <td align="center">
53     <?= $PREVIEW_B ?>
54     <?php if ($SAVE_B)  { ?> 
55       <?=$SEP?><?= $SAVE_B ?>
56     <?php } ?>
57     <?=$SEP?><?= $CHANGES_B ?>
58   </td>
59   <td>&nbsp; <?=$AUTHOR_MESSAGE?></td>
60 </tr>
61 <tr>
62   <td>
63     <?php if ($user->isAdmin()) { ?>
64     <?= $LOCKED_CB ?> <label for="edit-locked" title="<?=_("Make the page read-only?")?>"><?=_("Locked")?></label>
65     <?php if (ENABLE_PAGE_PUBLIC) { ?>
66     &nbsp;&nbsp;<?= $PUBLIC_CB ?> <label for="edit-public" title="<?=_("Make the page public?")?>"><?=_("Public")?></label>
67     <?php } ?>
68     <?php if (ENABLE_EXTERNAL_PAGES) { ?>
69     &nbsp;&nbsp;<?= $EXTERNAL_CB ?> <label for="edit-external" title="<?=_("Make the page external?")?>"><?=_("External")?></label>
70     <?php }} ?>
71   </td>
72 </tr>
73 </table>
74 <?=$HIDDEN_INPUTS?>
75 </form>
76
77 <hr noshade="noshade" />
78
79 <div class="wiki-edithelp">
80 <?php if (WIKI_NAME == "help") { ?>
81 <?plugin IncludePage page=_("Help/TextFormattingRules") section=_("Synopsis") quiet=1?>
82 <?php } else { ?>
83 <?plugin IncludePage page=_("TextFormattingRules") section=_("Synopsis") quiet=1?>
84 <?php } ?>
85 </div>