Add placeholder for the local file in backup destination

This commit is contained in:
iliajie
2023-03-25 20:00:25 +02:00
parent e0738d301b
commit 8c0107f241
3 changed files with 9 additions and 3 deletions

View File

@@ -26,7 +26,9 @@ sub dump_form
print &ui_table_row(&hlink($text{'dump_dest'}, "dest"),
&ui_radio("mode", $_[0]->{'host'} ? 1 : 0,
[ [ 0, $text{'dump_file'}." ".
&ui_textbox("file", $_[0]->{'file'}, 50).
&ui_textbox("file", $_[0]->{'file'}, 50, undef, undef,
$config{'date_subs'} ?
'placeholder="/backups/filename-%y-%m-%d-%H-%M-%S.tar.gz"' : undef).
" ".&file_chooser_button("file")."<br>" ],
[ 1, &text('dump_host',
&ui_textbox("host", $_[0]->{'host'}, 20),

View File

@@ -23,7 +23,9 @@ sub dump_form
print &ui_table_row(&hlink($text{'dump_dest'}, "dest"),
&ui_radio("mode", $_[0]->{'host'} ? 1 : 0,
[ [ 0, $text{'dump_file'}." ".
&ui_textbox("file", $_[0]->{'file'}, 50).
&ui_textbox("file", $_[0]->{'file'}, 50, undef, undef,
$config{'date_subs'} ?
'placeholder="/backups/filename-%y-%m-%d-%H-%M-%S.tar.gz"' : undef).
" ".&file_chooser_button("file")."<br>" ],
[ 1, &text('dump_host',
&ui_textbox("host", $_[0]->{'host'}, 15),

View File

@@ -37,7 +37,9 @@ sub dump_form
print &ui_table_row(&hlink($text{'dump_dest'}, "dest"),
&ui_radio("mode", $_[0]->{'host'} ? 1 : 0,
[ [ 0, $text{'dump_file'}." ".
&ui_textbox("file", $_[0]->{'file'}, 50).
&ui_textbox("file", $_[0]->{'file'}, 50, undef, undef,
$config{'date_subs'} ?
'placeholder="/backups/filename-%y-%m-%d-%H-%M-%S.tar.gz"' : undef).
" ".&file_chooser_button("file")."<br>" ],
[ 1, &text('dump_host',
&ui_textbox("host", $_[0]->{'host'}, 20),