tazpanel diff installer.cgi @ rev 318

Add some graphics from Tango project for helpers messages and arrows; libtazpanel: add msg() function for message boxes (tip|warn|err|up); add is_installed function to determine if we need show helper msg or not; index & settings: add a pair of helpers; installer: add arrows on buttons.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jun 23 01:10:00 2012 +0000 (2012-06-23)
parents a4779a07a422
children bfa31f855b8c
line diff
     1.1 --- a/installer.cgi	Fri May 18 21:37:27 2012 +0200
     1.2 +++ b/installer.cgi	Sat Jun 23 01:10:00 2012 +0000
     1.3 @@ -164,7 +164,7 @@
     1.4  graphically manage your partitions with Gparted")</p>
     1.5  
     1.6  <a class="button" href="$SCRIPT_NAME?page=partitioning">$(gettext "Install \
     1.7 -SliTaz")</a>
     1.8 +SliTaz") <img src="$IMAGES/go-next.png" /></a>
     1.9  </section>
    1.10  EOT
    1.11  }
    1.12 @@ -181,7 +181,7 @@
    1.13  system will be updated as long you have an active internet connection.")</p>
    1.14  
    1.15  <a class="button" href="$SCRIPT_NAME?page=upgrade">$(gettext "Upgrade \
    1.16 -SliTaz")</a>
    1.17 +SliTaz") <img src="$IMAGES/go-next.png" /></a>
    1.18  </section>
    1.19  EOT
    1.20  }
    1.21 @@ -231,9 +231,9 @@
    1.22  
    1.23  <hr />
    1.24  <a class="button" value="$1" href="$SCRIPT_NAME?page=home" >
    1.25 -	$(gettext 'Back to Installer Start Page')</a>
    1.26 +	<img src="$IMAGES/go-first.png"/> $(gettext 'Back to Installer Start Page')</a>
    1.27  <a class="button" value="$2" href="$SCRIPT_NAME?page=install">
    1.28 -	$(gettext 'Continue Installation')</a>
    1.29 +	$(gettext 'Continue Installation') <img src="$IMAGES/go-next.png" /></a>
    1.30  EOT
    1.31  }
    1.32  
    1.33 @@ -498,33 +498,32 @@
    1.34  {
    1.35  	case $1 in
    1.36  		partitioning)
    1.37 -			title1=$(gettext 'Back to partitioning') ;;
    1.38 +			title1="<img src=\"$IMAGES/go-previous.png\" /> $(gettext 'Back to partitioning')" ;;
    1.39  		*)
    1.40  			page=home
    1.41 -			title1=$(gettext 'Back to Installer Start Page') ;;
    1.42 +			title1="<img src=\"$IMAGES/go-first.png\" /> $(gettext 'Back to Installer Start Page')" ;;
    1.43  	esac
    1.44  	case $2 in
    1.45  		write|run)
    1.46 -			title2=$(gettext 'Proceed to SliTaz installation') ;;
    1.47 +			title2="$(gettext 'Proceed to SliTaz installation') <img src=\"$IMAGES/go-next.png\" />" ;;
    1.48  		reboot)
    1.49  			title2=$(gettext 'Installation complete. You can now restart (reboot)') ;;
    1.50  		failed)
    1.51  			title2=$(gettext 'Installation failed. See log') ;;
    1.52  		*)
    1.53  			page=home
    1.54 -			title2=$(gettext 'Back to Installer Start Page') ;;
    1.55 +			title2="<img src=\"$IMAGES/go-first.png\" /> $(gettext 'Back to Installer Start Page')" ;;
    1.56  	esac
    1.57  	cat <<EOT
    1.58  <hr />
    1.59 -<input type="hidden" name="page" value="$2" />
    1.60  <a class="button" value="$1"  href="$SCRIPT_NAME?page=$1" >$title1</a>
    1.61 -<input type="submit" value="$title2">
    1.62 +<a class="button" value="$2"  href="$SCRIPT_NAME?page=$2" >$title2</a>
    1.63  EOT
    1.64  }
    1.65  
    1.66  page_redirection()
    1.67  {
    1.68 -	cat <<EOT
    1.69 +	cat << EOT
    1.70  <!DOCTYPE html>
    1.71  <html>
    1.72  <head>
    1.73 @@ -548,7 +547,7 @@
    1.74  	local code
    1.75  	code=0
    1.76  	# Check tazinst
    1.77 -	if ! [ -x /usr/sbin/tazinst ] ; then
    1.78 +	if ! [ -x /usr/sbin/tazinst2 ] ; then
    1.79  		cat <<EOT
    1.80  <h3>$(gettext 'Tazinst Error')</h3>
    1.81  <p>$(gettext "<strong>tazinst</strong>, the lightweight SliTaz HDD installer \