tazpanel diff index.cgi @ rev 472

boot.cgi: change look of "System logs" page; index.cgi: return "Diff" button back.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Apr 30 02:25:59 2015 +0300 (2015-04-30)
parents 7ca14d55e705
children de34ca9d1417
line diff
     1.1 --- a/index.cgi	Fri Apr 24 16:00:14 2015 +0300
     1.2 +++ b/index.cgi	Thu Apr 30 02:25:59 2015 +0300
     1.3 @@ -180,16 +180,14 @@
     1.4  EOT
     1.5  			if [ -w "$file" ]; then
     1.6  				cat <<EOT
     1.7 -		<span class="float-right">
     1.8 -			<button onclick='editFile()' id="edit_button" data-icon="edit">$(_ 'Edit')</button>
     1.9 -			<button onclick='saveFile("$file", "$title")' id="save_button" 
    1.10 -				data-icon="save" style="display:none">$(_ 'Save')</button>
    1.11 -		</span>
    1.12 -		<!--form>
    1.13 +		<form>
    1.14  			<input type="hidden" name="file" value="$file"/>
    1.15 -			<button name="action" value="edit" data-icon="edit">$(_ 'Edit')</button><!--
    1.16 +			<button onclick='editFile(); return false' id="edit_button" 
    1.17 +				data-icon="edit">$(_ 'Edit')</button><!--
    1.18 +			--><button onclick='saveFile("$file", "$title"); return false' id="save_button" 
    1.19 +				data-icon="save" style="display:none">$(_ 'Save')</button><!--
    1.20  			-->$(file_is_modified $file button)
    1.21 -		</form-->
    1.22 +		</form>
    1.23  EOT
    1.24  			elif [ -r "$file" ]; then
    1.25  				cat <<EOT