tazpanel rev 29

Add support for write-iso in live.cgi with nice select box :-)
author Christophe Lincoln <pankso@slitaz.org>
date Tue Apr 05 03:35:45 2011 +0200 (2011-04-05)
parents f82057fcce3f
children 55ce67f05cf9
files live.cgi styles/default/style.css tazpanel.conf
line diff
     1.1 --- a/live.cgi	Tue Apr 05 03:34:47 2011 +0200
     1.2 +++ b/live.cgi	Tue Apr 05 03:35:45 2011 +0200
     1.3 @@ -19,12 +19,29 @@
     1.4  TITLE="- Live"
     1.5  
     1.6  #
     1.7 +# Commands executed in Xterm first
     1.8 +#
     1.9 +
    1.10 +case "$QUERY_STRING" in
    1.11 +	write-iso=*)
    1.12 +		COMPRESSION=${QUERY_STRING#write-iso=}
    1.13 +		xterm $XTERM_OPTS \
    1.14 +			-title "write-iso" \
    1.15 +			-e "tazlito writeiso $COMPRESSION" & ;;
    1.16 +	*)
    1.17 +		continue ;;
    1.18 +esac
    1.19 +
    1.20 +#
    1.21  # Commands
    1.22  #
    1.23  
    1.24  case "$QUERY_STRING" in
    1.25 -	gen-distro)
    1.26 -		echo "" ;;
    1.27 +	create)
    1.28 +		#
    1.29 +		# Create a flavor file and ISO in option with all settings
    1.30 +		#
    1.31 +		gettext "TODO" ;;
    1.32  	*)
    1.33  		#
    1.34  		# Default xHTML content
    1.35 @@ -36,6 +53,21 @@
    1.36  	<p>`gettext "Create and manage Live CD or USB SliTaz systems"`<p>
    1.37  </div>
    1.38  
    1.39 +<h3>`gettext "Write an ISO"`</h3>
    1.40 +<p>
    1.41 +	`gettext "Writeiso will generate an ISO image of the current filesystem
    1.42 +	as is, including the /home directory. It is an easy way to remaster a
    1.43 +	SliTaz Live system, you just have to: boot, modify, writeiso."`
    1.44 +</p>
    1.45 +<form method="get" action="$SCRIPT_NAME">
    1.46 +	`gettext "Compression type:"`
    1.47 +	<select name="write-iso">
    1.48 +		<option value="gzip">gzip</option>
    1.49 +		<option value="lzma">lzma</option>
    1.50 +		<option value="none">none</option>
    1.51 +	</select>
    1.52 +	<input type="submit" value="`gettext "write ISO"`" />
    1.53 +</form
    1.54  EOT
    1.55  		;;
    1.56  esac
     2.1 --- a/styles/default/style.css	Tue Apr 05 03:34:47 2011 +0200
     2.2 +++ b/styles/default/style.css	Tue Apr 05 03:35:45 2011 +0200
     2.3 @@ -113,6 +113,7 @@
     2.4  
     2.5  .progress { cursor: progress; }
     2.6  
     2.7 +/* Misc */
     2.8  
     2.9  pre { 
    2.10  	background-color: #f8f8f8; 
    2.11 @@ -124,7 +125,7 @@
    2.12  
    2.13  .pre_main { margin: 20px 0 10px; }
    2.14  
    2.15 -input[type=submit] {
    2.16 +input[type=submit], select {
    2.17  	padding: 2px 4px;
    2.18  	margin: 4px 0 0;
    2.19  	background-color: #f1f1f1;
    2.20 @@ -132,7 +133,7 @@
    2.21  	cursor: pointer;
    2.22  }
    2.23  
    2.24 -input[type=submit]:hover {
    2.25 +input[type=submit]:hover, select:hover {
    2.26  	background-color: #ddd;
    2.27  	border: 1px solid #999;
    2.28  }
     3.1 --- a/tazpanel.conf	Tue Apr 05 03:34:47 2011 +0200
     3.2 +++ b/tazpanel.conf	Tue Apr 05 03:35:45 2011 +0200
     3.3 @@ -13,6 +13,9 @@
     3.4  # Display some debug message
     3.5  DEBUG="0"
     3.6  
     3.7 +# Xterm options
     3.8 +XTERM_OPTS="-geometry 80x16 -bg black -fg white"
     3.9 +
    3.10  # Busybox HTTP deamon config
    3.11  HTTPD_CONF="/etc/slitaz/httpd.conf"
    3.12  HTTPD_PORT="8080"