[vhffs-dev] [svn] commit: r48 - in trunk/vhffs-panel: templates/mailinglist/prefs.tmpl templates/web/prefs.tmpl themes/default/main.css web/prefs.pl web/prefs_save.pl

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


Author: soda
Date: Sat Jun 11 11:35:24 2005
New Revision: 48

Log:
Close bug #0000162. Modifications de la description de la webarea possible.


Modified:
    trunk/vhffs-panel/templates/mailinglist/prefs.tmpl
    trunk/vhffs-panel/templates/web/prefs.tmpl
    trunk/vhffs-panel/themes/default/main.css
    trunk/vhffs-panel/web/prefs.pl
    trunk/vhffs-panel/web/prefs_save.pl

Modified: trunk/vhffs-panel/templates/mailinglist/prefs.tmpl
==============================================================================
--- trunk/vhffs-panel/templates/mailinglist/prefs.tmpl (original)
+++ trunk/vhffs-panel/templates/mailinglist/prefs.tmpl Sat Jun 11 11:35:24 2005
@@ -9,7 +9,7 @@
 		</legend>
 		<p>
 			<tmpl_var name="TEXT_PREFIX">
-			<input type="TEXT" name="PREFIX" value="<tmpl_var name="VALUE_PREFIX">"/>
+			<input type="TEXT" size=20 name="PREFIX" value="<tmpl_var name="VALUE_PREFIX">"/>
 
 		</p>
 		<p>

Modified: trunk/vhffs-panel/templates/web/prefs.tmpl
==============================================================================
--- trunk/vhffs-panel/templates/web/prefs.tmpl (original)
+++ trunk/vhffs-panel/templates/web/prefs.tmpl Sat Jun 11 11:35:24 2005
@@ -1,78 +1,85 @@
-<h1><tmpl_var name="TEXT_TITLE"></h1>
-	
-<form method="post" action="/web/prefs_save.pl">
+<h1><tmpl_var name="TEXT_TITLE"></h1>
+	
+<form method="post" action="/web/prefs_save.pl">
 	<p>
-		<label>
-			<tmpl_var name="TEXT_SERVERNAME"> :
-		</label>
-		<tmpl_var name="VALUE_SERVERNAME">
-		<input type="hidden" name="name" id="name" value="<tmpl_var name="VALUE_SERVERNAME">" />
-	</p>
-
+		<label>
+			<tmpl_var name="TEXT_SERVERNAME"> :
+		</label>
+		<tmpl_var name="VALUE_SERVERNAME">
+		<input type="hidden" name="name" id="name" value="<tmpl_var name="VALUE_SERVERNAME">" />
+	</p>
+
 	<fieldset>
-		<legend>
-			<tmpl_var name="TEXT_CRAWL"> :
+		<legend>
+			<tmpl_var name="TEXT_CRAWL"> :
 		</legend>
-		<p>
-			<input type="radio" name="CRAWL" id="CRAWL_YES" value="1" <tmpl_var name="YES_CHECKED"> />
-			<label for="CRAWL_YES">
+		<p>
+			<input type="radio" name="CRAWL" id="CRAWL_YES" value="1" <tmpl_var name="YES_CHECKED"> />
+			<label for="CRAWL_YES">
 				<tmpl_var name="TEXT_YES">
-			</label>
-		</p>
+			</label>
+		</p>
 		<p>
-			<input type="radio" name="CRAWL" id="CRAWL_NO" value="0" <tmpl_var name="NO_CHECKED"> /> 
-			<label for="CRAWL_NO">
+			<input type="radio" name="CRAWL" id="CRAWL_NO" value="0" <tmpl_var name="NO_CHECKED"> /> 
+			<label for="CRAWL_NO">
 				<tmpl_var name="TEXT_NO">
-			</label>
-		</p>
-	</fieldset>
-
+			</label>
+		</p>
+
+	</fieldset>
+		<p>
+		<label>
+			<tmpl_var name="TEXT_DESCRIPTION"> :
+		</label>
+		 <textarea name="DESCRIPTION" id="DESCRIPTION" cols="45" rows="7"><tmpl_var name="VALUE_DESCRIPTION"></textarea>
+		</p>
+
 	<p class="button" id="buttonModify">
 		<input value="<tmpl_var name="TEXT_SEND">" type="submit" />
-	</p>
-
-</form>
+	</p>
 
-<h2><tmpl_var name="TEXT_ACL_ADMIN"></h2>
+</form>
+
+<h2><tmpl_var name="TEXT_ACL_ADMIN"></h2>
 		
 <form method="post" action="../acl/view.pl">
 	<p><tmpl_var name="EXPLAIN_ADMIN_ACL"></p>
-
+
 	<input type="hidden" name="NAME" value="<tmpl_var name="VALUE_SERVERNAME">" />
 	<input type="hidden" name="TYPE" value="web" />
 	<p class="button" id="buttonAclAdmin">
 		<input type="submit" value="<tmpl_var name="ADMIN_ACL">" />
 	</p>
 </form>
-
-<h2><tmpl_var name="TEXT_DELETE_WEB"></h2>
-
-<form method="post" action="/web/delete.pl">
+
+<h2><tmpl_var name="TEXT_DELETE_WEB"></h2>
+
+<form method="post" action="/web/delete.pl">
 	<fieldset>
-		<legend>
-			<tmpl_var name="ASK_DELETE_WEB">:
-		</legend>
-
-		<p class="warning"><tmpl_var name="TEXT_BEFORE_DELETE"></p>
-		<p>
-			<input type="radio" name="DELETE" id="DELETE_NO"  value="0" checked="checked" />
-			<label for="DELETE_NO">
-				<tmpl_var name="NO">
-			</label>
-		</p>
-		<p>
-			<input type="radio" name="DELETE" id="DELETE_YES" value="1" />
-			<label for="DELETE_YES">
-				<tmpl_var name="YES">
-			</label>
-		</p>
-	</fieldset>
-	
-	<p class="button" id="buttonDelete">
-		<input type="hidden" name="name" value="<tmpl_var name="VALUE_SERVERNAME">" />
-		<input type="submit" value="<tmpl_var name="TEXT_DELETE">" />
-	</p>
-				
-</form>
-
-
+		<legend>
+			<tmpl_var name="ASK_DELETE_WEB">:
+		</legend>
+
+		<p class="warning"><tmpl_var name="TEXT_BEFORE_DELETE"></p>
+		<p>
+			<input type="radio" name="DELETE" id="DELETE_NO"  value="0" checked="checked" />
+			<label for="DELETE_NO">
+				<tmpl_var name="NO">
+			</label>
+		</p>
+		<p>
+			<input type="radio" name="DELETE" id="DELETE_YES" value="1" />
+			<label for="DELETE_YES">
+				<tmpl_var name="YES">
+			</label>
+		</p>
+	</fieldset>
+	
+	<p class="button" id="buttonDelete">
+		<input type="hidden" name="name" value="<tmpl_var name="VALUE_SERVERNAME">" />
+		<input type="submit" value="<tmpl_var name="TEXT_DELETE">" />
+	</p>
+				
+</form>
+
+

Modified: trunk/vhffs-panel/themes/default/main.css
==============================================================================
--- trunk/vhffs-panel/themes/default/main.css (original)
+++ trunk/vhffs-panel/themes/default/main.css Sat Jun 11 11:35:24 2005
@@ -612,4 +612,4 @@
 	color: red;
 	text-align: center;
 	text-decoration: blink;
-}
+}

Modified: trunk/vhffs-panel/web/prefs.pl
==============================================================================
--- trunk/vhffs-panel/web/prefs.pl (original)
+++ trunk/vhffs-panel/web/prefs.pl Sat Jun 11 11:35:24 2005
@@ -66,6 +66,10 @@
 	$template->param( VALUE_SERVERNAME => $web->get_servername );
 
 	$template->param( TEXT_CRAWL => gettext("Use crawl (useful for web-search engine)") );
+	$template->param( TEXT_DESCRIPTION => gettext("Description of your webarea") );
+	
+	#Show the current description	
+	$template->param( VALUE_DESCRIPTION => $web->get_description );
 
 	if( $web->get_crawl == 1 )
 	{

Modified: trunk/vhffs-panel/web/prefs_save.pl
==============================================================================
--- trunk/vhffs-panel/web/prefs_save.pl (original)
+++ trunk/vhffs-panel/web/prefs_save.pl Sat Jun 11 11:35:24 2005
@@ -56,9 +56,11 @@
 else
 {
 	my $crawl = $cgi->param("CRAWL");
+	my $description = $cgi->param("DESCRIPTION");
 	$web->set_crawl( $crawl );
+	$web->set_description( $description );
 	$web->commit;
-	$message = gettext( "Modifications applied to the database" );
+	$message = gettext( "Modifications applied to your webarea" );
 }
 
 




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