From 98429223dcfbcb6d47d18bda1b43e621d880b25c Mon Sep 17 00:00:00 2001 From: carstenklapp Date: Sat, 26 Jan 2002 08:13:16 +0000 Subject: [PATCH] added editarea size and markup style. git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@1605 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- themes/Portland/templates/editpage.tmpl | 63 ++++++++++++++++++------- 1 file changed, 45 insertions(+), 18 deletions(-) diff --git a/themes/Portland/templates/editpage.tmpl b/themes/Portland/templates/editpage.tmpl index 19c595a32..9f4b978c0 100644 --- a/themes/Portland/templates/editpage.tmpl +++ b/themes/Portland/templates/editpage.tmpl @@ -1,5 +1,5 @@ - + 'text', 'class' => 'wikitext', @@ -20,7 +20,32 @@ $SaveB = HTML::input(array('type' => 'submit', 'name' => 'save', 'value' => _("Save"))); +$WidthI = HTML::input(array('type' => 'text', + 'size' => 3, + 'name' => 'pref[editWidth]', + 'value' => $request->getPref('editWidth'), + 'onchange' => 'this.form.submit();')); +$HeightI = HTML::input(array('type' => 'text', + 'size' => 3, + 'name' => 'pref[editHeight]', + 'value' => $request->getPref('editHeight'), + 'onchange' => 'this.form.submit();')); + +$AdjustB = $Theme->makeButton(_("Adjust"), "submit:"); + + +$GoodStyleB = $ButtonFactory->makeLinkButton(_("GoodStyle")); + + +$Markup['old'] = new HtmlElement('option', array('value' => 'old'), + _("Old")); +$Markup['new'] = new HtmlElement('option', array('value' => 'new'), + _("New")); +$selected = $FORMVARS['markup'] == 'new' ? 'new' : 'old'; +$Markup[$selected]->setAttr('selected', true); +$MarkupSelect = new HtmlElement('select', array('name' => 'markup'), + $Markup); $s = $Theme->getButtonSeparator(); ?> @@ -64,24 +89,26 @@ $SaveB = HTML::input(array('type' => 'submit', rows="getPref('editHeight')?>" cols="getPref('editWidth')?>" wrap="virtual"> -
- -
- getId())) ?> -
- - linkExistingWikiWord(_("RecentEdits"))) ?> -

-
-linkExistingWikiWord(_("GoodStyle"))) ?>
-linkExistingWikiWord(_("UserPreferences"))) ?> -
- + +
+getId())) ?> +
+ +linkExistingWikiWord(_("RecentEdits"))) ?> +
+

+ + + + + +
+ Markup Style: +

+ +

-- 2.45.0