tazpkg rev 742

pkgs.cgi: fix forms.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jan 03 17:27:03 2015 +0200 (2015-01-03)
parents 0fc4fe760d8c
children d2843d5ee9e6
files tazpanel/pkgs.cgi tazpanel/pkgs.css
line diff
     1.1 --- a/tazpanel/pkgs.cgi	Thu Jan 01 22:50:00 2015 +0200
     1.2 +++ b/tazpanel/pkgs.cgi	Sat Jan 03 17:27:03 2015 +0200
     1.3 @@ -250,6 +250,7 @@
     1.4  	<a href="?tag=&amp;my=$my&amp;repo=$repo">$(_ 'All tags...')</a>
     1.5  	<a href="?cat=&amp;my=$my&amp;repo=$repo">$(_ 'All categories...')</a>
     1.6  </div>
     1.7 +</form>
     1.8  EOT
     1.9  }
    1.10  
    1.11 @@ -391,6 +392,7 @@
    1.12  		cat << EOT
    1.13  <h2>$(_ 'Linkable packages')</h2>
    1.14  
    1.15 +<form method="get" action="">
    1.16  <input type="hidden" name="do" value="Link" />
    1.17  <div id="actions">
    1.18  	<div class="float-left">
    1.19 @@ -468,6 +470,7 @@
    1.20  			cat << EOT
    1.21  <h2>$(_ 'Category: %s' $category)</h2>
    1.22  
    1.23 +<form method="get" action="">
    1.24  <div id="actions">
    1.25  	<div class="float-left">
    1.26  		$(_ 'Selection:')
    1.27 @@ -503,6 +506,7 @@
    1.28  		cat << EOT
    1.29  <h2>$(_ 'Search packages')</h2>
    1.30  
    1.31 +<form method="get" action="">
    1.32  <div id="actions">
    1.33  	<div class="float-left">
    1.34  		$(_ 'Selection:')
    1.35 @@ -563,6 +567,7 @@
    1.36  		cat << EOT
    1.37  <h2>$(_ 'Recharge')</h2>
    1.38  
    1.39 +<form method="get" action="">
    1.40  <div id="actions">
    1.41  	<div class="float-left">
    1.42  		<p>$(_ 'Recharge checks for new or updated packages')</p>
    1.43 @@ -594,7 +599,6 @@
    1.44  		LOADING_MSG="$(_ 'Checking for upgrades...')"
    1.45  		loading_msg
    1.46  		cat << EOT
    1.47 -</form>
    1.48  <h2>$(_ 'Up packages')</h2>
    1.49  
    1.50  <form method="get" action="">
    1.51 @@ -699,6 +703,7 @@
    1.52  		cat << EOT
    1.53  <h2>$(_ 'Package %s' $PACKAGE)</h2>
    1.54  
    1.55 +<form method="get" action="">
    1.56  <div id="actions">
    1.57  	<div class="float-left">
    1.58  		<p>
    1.59 @@ -763,7 +768,6 @@
    1.60  		#
    1.61  		# TazPkg configuration page
    1.62  		#
    1.63 -		echo '</form>'
    1.64  		cmd=$(GET admin)
    1.65  		case "$cmd" in
    1.66  			clean)
    1.67 @@ -806,6 +810,8 @@
    1.68  		sidebar
    1.69  		cat << EOT
    1.70  <h2>$(_ 'Administration')</h2>
    1.71 +
    1.72 +<form method="get" action="">
    1.73  <div>
    1.74  	<p>$(_ 'TazPkg administration and settings')</p>
    1.75  </div>
    1.76 @@ -815,6 +821,7 @@
    1.77  	$(show_button 'admin=&amp;action=quickcheck')
    1.78  	$(show_button 'admin=&amp;action=fullcheck')
    1.79  </div>
    1.80 +</form>
    1.81  EOT
    1.82  		case "$(GET action)" in
    1.83  				saveconf)
    1.84 @@ -1071,6 +1078,7 @@
    1.85  			cat << EOT
    1.86  <h2>$(_ 'Tag "%s"' $tag)</h2>
    1.87  
    1.88 +<form method="get" action="">
    1.89  <div id="actions">
    1.90  	<div class="float-left">
    1.91  		$(_ 'Selection:')
    1.92 @@ -1110,6 +1118,7 @@
    1.93  		cat << EOT
    1.94  <h2>$(_ 'Summary')</h2>
    1.95  
    1.96 +<form method="get" action="">
    1.97  <div id="actions">
    1.98  EOT
    1.99  		fslink=$(readlink $PKGS_DB/fslink)
   1.100 @@ -1154,6 +1163,7 @@
   1.101  
   1.102  <pre>
   1.103  $(tail -n 5 $LOG | fgrep "-" | awk '{print $1, $2, $3, $4, $5, $6, $7}')
   1.104 +<a href="index.cgi?file=$LOG">$(_ 'more...')</a>
   1.105  </pre>
   1.106  EOT
   1.107  		;;
     2.1 --- a/tazpanel/pkgs.css	Thu Jan 01 22:50:00 2015 +0200
     2.2 +++ b/tazpanel/pkgs.css	Sat Jan 03 17:27:03 2015 +0200
     2.3 @@ -5,7 +5,7 @@
     2.4  
     2.5  #sidebar {
     2.6  	position: fixed;
     2.7 -	top: 80px;
     2.8 +	top: 76px;
     2.9  	right: 5px;
    2.10  	width: 132px;
    2.11  }