mirror of
https://github.com/webmin/webmin.git
synced 2026-09-16 10:30:39 +01:00
ⓘ Add composable widgets, shared styling and interactions, sortable-table options, and a read-only UI gallery.
20 lines
630 B
Perl
20 lines
630 B
Perl
#!/usr/local/bin/perl
|
|
# Target of the Save button of edit_manual.cgi. A real module would lock
|
|
# the file, write the submitted data, unlock it, record the action with
|
|
# webmin_log and redirect back to the editor. This demo deliberately
|
|
# writes nothing, and only redirects back to the editor for the same
|
|
# file.
|
|
|
|
use strict;
|
|
use warnings;
|
|
|
|
require './ui-demo-lib.pl'; ## no critic
|
|
our (%in);
|
|
|
|
ReadParse();
|
|
|
|
# Only ever go back to one of the demo's own sample files
|
|
my $file = $in{'file'} || '';
|
|
$file = '' if (!(grep { $_ eq $file } demo_config_files()));
|
|
redirect("edit_manual.cgi".($file ne '' ? "?file=".urlize($file) : ""));
|