[interchange-cvs] interchange - racke modified 2 files

interchange-core@icdevgroup.org interchange-core@icdevgroup.org
Tue Aug 6 18:48:00 2002


User:      racke
Date:      2002-08-06 22:47:33 GMT
Modified:  .        Tag: STABLE_4_8-branch WHATSNEW
Modified:  dist/usertag Tag: STABLE_4_8-branch formel.tag
Log:
Fixed missing labels for checkbox and radio types
and added display type to formel tag.

Revision  Changes    Path
No                   revision



No                   revision



2.6.2.77  +3 -0      interchange/WHATSNEW


rev 2.6.2.77, prev_rev 2.6.2.76
Index: WHATSNEW
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /anon_cvs/repository/interchange/WHATSNEW,v
retrieving revision 2.6.2.76
retrieving revision 2.6.2.77
diff -u -r2.6.2.76 -r2.6.2.77
--- WHATSNEW	3 Aug 2002 05:45:31 -0000	2.6.2.76
+++ WHATSNEW	6 Aug 2002 22:47:33 -0000	2.6.2.77
@@ -67,6 +67,9 @@
=20
 * Allow bounce targets (Window-Target: header).
=20
+* Fixed missing labels for checkbox and radio types=20
+  and added display type to formel tag.
+
 Admin UI
 --------
=20



No                   revision



No                   revision



2.0.2.2   +10 -4     interchange/dist/usertag/Attic/formel.tag


rev 2.0.2.2, prev_rev 2.0.2.1
Index: formel.tag
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /anon_cvs/repository/interchange/dist/usertag/Attic/formel.tag,v
retrieving revision 2.0.2.1
retrieving revision 2.0.2.2
diff -u -r2.0.2.1 -r2.0.2.2
--- formel.tag	12 Apr 2002 12:01:15 -0000	2.0.2.1
+++ formel.tag	6 Aug 2002 22:47:33 -0000	2.0.2.2
@@ -19,7 +19,7 @@
 # MA  02111-1307  USA.
=20
 UserTag formel Order label name type size
-UserTag formel Version 0.08
+UserTag formel Version 0.09
 UserTag formel addAttr
 UserTag formel Routine <<EOF
 sub {
@@ -104,7 +104,7 @@
 			$elhtml .=3D qq{<input type=3D$type name=3D$name value=3D"${rvalue}"$se=
lect> $rlabel};
 		}
 		# delete error implicitly
-		&$labelproc();
+		$labelhtml =3D &$labelproc($label);
 		return sprintf ($fmt, $labelhtml, $elhtml);
 	}
=20
@@ -135,7 +135,10 @@
 			qq{<select name=3D$name>$elhtml</select>});
 	}
=20
-    if ($opt->{reset}) {
+	if ($type eq 'display') {
+		# try to handle widget with UI tag display
+		$elhtml =3D $Tag->display($opt->{table} || 'products', $name);
+	} elsif ($opt->{reset}) {
 		if ($type eq 'textarea') {
 	        $elhtml =3D qq{<textarea name=3D"${name}"$sizestr></textarea>};
 		} else {
@@ -184,7 +187,10 @@
 =3Ditem type
=20
 The type of the form element (supported are text, textarea,
-checkbox, radio and select).
+checkbox, radio, select and display). If the given type is display,
+the display tag will be called and the return value will be used as=20
+form element. Note that this tag might not be available depending=20
+on your configuration.
=20
 =3Ditem size
=20