[36/54] samba: Replace save icon with a button and remove legend

Message ID 20201013160812.27754-36-michael.tremer@ipfire.org
State Accepted
Commit e92b5a0435d7967648d421733bdac859ddcdb683
Headers show
Series [01/54] samba: Migrate configuration from Samba 3.6 to 4.x | expand

Commit Message

Michael Tremer Oct. 13, 2020, 4:07 p.m. UTC
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 html/cgi-bin/samba.cgi | 27 ++++-----------------------
 1 file changed, 4 insertions(+), 23 deletions(-)

Patch

diff --git a/html/cgi-bin/samba.cgi b/html/cgi-bin/samba.cgi
index 598360c5e..3f0bcf39f 100644
--- a/html/cgi-bin/samba.cgi
+++ b/html/cgi-bin/samba.cgi
@@ -365,18 +365,12 @@  print <<END
 
 		<br>
 
-		<table width='10%' cellspacing='0'>
+		<table width='100%' cellspacing='0'>
 			<tr>
 				<td align='center'>
-					<form method='post' action='$ENV{'SCRIPT_NAME'}'>
-						<input type='hidden' name='ACTION' value=$Lang::tr{'save'} />
-						<input type='image' alt='$Lang::tr{'save'}' title='$Lang::tr{'save'}' src='/images/media-floppy.png' />
-					</form>
-				</td>
-				<td align='center'>
-					<form method='post' action='$ENV{'SCRIPT_NAME'}'>
-						<input type='hidden' name='ACTION' value='globalcaption' />
-						<input type='image' alt='$Lang::tr{'caption'}' title='$Lang::tr{'caption'}' src='/images/help-browser.png' />
+					<form method='POST' action='$ENV{'SCRIPT_NAME'}'>
+						<input type='hidden' name='ACTION' value="$Lang::tr{'save'}">
+						<input type='submit' value="$Lang::tr{'save'}">
 					</form>
 				</td>
 			</tr>
@@ -384,19 +378,6 @@  print <<END
 END
 ;
 
-if ($sambasettings{'ACTION'} eq 'globalcaption')
-	{
-	print <<END
-	<br />
-	<table width='95%' cellspacing='0'>
-	<tr><td align='center' colspan='2'><b>$Lang::tr{'caption'}</b></td></tr>
-	<tr><td align='right' width='33%'><img src='/images/media-floppy.png' /></td><td align='left'>$Lang::tr{'save settings'}</td></tr>
-	<tr><td align='right' width='33%'><img src='/images/reload.gif' /></td><td align='left'>$Lang::tr{'restore settings'}</td></tr>
-	</table>
-END
-;
-	}
-
 &Header::closebox();
 
 ############################################################################################################################