[vhffs-dev] [916] Description is now editable in objects admin part

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 916
Author:   crafty
Date:     2007-09-11 22:01:25 +0000 (Tue, 11 Sep 2007)

Log Message:
-----------
Description is now editable in objects admin part

Modified Paths:
--------------
    trunk/vhffs-panel/admin/object/edit_submit.pl
    trunk/vhffs-panel/templates/admin/object/edit.tmpl


Modified: trunk/vhffs-panel/admin/object/edit_submit.pl
===================================================================
--- trunk/vhffs-panel/admin/object/edit_submit.pl	2007-09-11 19:46:04 UTC (rev 915)
+++ trunk/vhffs-panel/admin/object/edit_submit.pl	2007-09-11 22:01:25 UTC (rev 916)
@@ -61,8 +61,8 @@
 my $cgi = $panel->{'cgi'};
 my $oid = $cgi->param("OID");
 my $status = $cgi->param("STATUS");
+my $description = $cgi->param('description');
 
-
 my $object;
 
 my $templatesdir = $vhffs->get_config->get_templatedir;
@@ -83,6 +83,7 @@
 else
 {
 	$object->set_status( $status );	
+	$object->set_description( $description );
 
 	if( $object->commit < 0 )
 	{

Modified: trunk/vhffs-panel/templates/admin/object/edit.tmpl
===================================================================
--- trunk/vhffs-panel/templates/admin/object/edit.tmpl	2007-09-11 19:46:04 UTC (rev 915)
+++ trunk/vhffs-panel/templates/admin/object/edit.tmpl	2007-09-11 22:01:25 UTC (rev 916)
@@ -44,7 +44,7 @@
 		<label>		
 			<TMPL_VAR NAME="TEXT_DESCRIPTION">:
 		</label>
-		<TMPL_VAR NAME="VALUE_DESCRIPTION">
+		<textarea name="description" id="description" cols="45" rows="7"><TMPL_VAR NAME="VALUE_DESCRIPTION"></textarea>
 	</p>
 
 	<p class="button" id="buttonSend">


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/