From: Geoffrey T. D. <da...@us...> - 2002-12-17 18:32:53
|
Update of /cvsroot/phpwiki/phpwiki/themes/Portland/templates In directory sc8-pr-cvs1:/tmp/cvs-serv11157/themes/Portland/templates Modified Files: editpage.tmpl Log Message: Patches from Matti Airas: Change 'use new markup' checkbox on editpage form to 'use old markup'. Fancy DHTML old/new edit help. Index: editpage.tmpl =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/themes/Portland/templates/editpage.tmpl,v retrieving revision 1.18 retrieving revision 1.19 diff -u -2 -b -p -d -r1.18 -r1.19 --- editpage.tmpl 23 Aug 2002 18:29:33 -0000 1.18 +++ editpage.tmpl 17 Dec 2002 18:32:49 -0000 1.19 @@ -73,5 +73,5 @@ $s = $Theme->getButtonSeparator(); <?=Button("submit:", _("Adjust"), 'wikiaction')?> <br /> - <?=$NEW_MARKUP_CB?> <?=_("Use new markup")?> + <?=$OLD_MARKUP_CB?> <?=_("Use old markup")?> </p> @@ -82,10 +82,41 @@ $s = $Theme->getButtonSeparator(); <hr /> <?php } ?> + +<script language="JavaScript1.3" type="text/javascript"> +<!-- +function showOldMarkupRules(show) { + if (document.getElementById) { + if (!show) { + document.getElementById('newMarkup').style.display="block"; + document.getElementById('oldMarkup').style.display="none"; + } else { + document.getElementById('newMarkup').style.display="none"; + document.getElementById('oldMarkup').style.display="block"; + } + } +} +// --> +</script> + +<div id="oldMarkup" class="wiki-edithelp"> <!-- FIXME: do we need this at all? If so, it could probably be moved to TextFormattingRules --> -<p><?= fmt("See %s tips for editing.", WikiLink(_("GoodStyle"), "button")) ?></p> -<div class="wiki-edithelp"> +<p><?= fmt("See %s tips for editing.", WikiLink(_("GoodStyle"))) ?></p> +<?plugin IncludePage page=_("OldTextFormattingRules") section=_("Synopsis") quiet=1?> +</div> +<div id="newMarkup" class="wiki-edithelp"> +<!-- FIXME: do we need this at all? If so, it could probably be moved to TextFormattingRules --> +<p><?= fmt("See %s tips for editing.", WikiLink(_("GoodStyle"))) ?></p> <?plugin IncludePage page=_("TextFormattingRules") section=_("Synopsis") quiet=1?> </div> <?=$HIDDEN_INPUTS?> </form> + +<script language="JavaScript1.3" type="text/javascript"> +<!-- +if (document.getElementById) { + showOldMarkupRules(document.getElementById('useOldMarkup').checked); +} +// --> +</script> + <hr /> |