mirror of
https://github.com/brmlab/brmdoor.git
synced 2025-06-08 03:34:02 +02:00
brmd::Alphasign: Add beep checkbox to web interface
This commit is contained in:
parent
e5d62db851
commit
7635565120
1 changed files with 6 additions and 1 deletions
|
@ -433,6 +433,7 @@ sub web_alphasign_text {
|
|||
<strong>New text:</strong>
|
||||
<select name="mode">$modes</select>
|
||||
<input type="text" name="text" value="$text" />
|
||||
<input type="checkbox" name="beep" value="1" /> beep
|
||||
<input type="submit" name="s" value="Update" />
|
||||
</form>
|
||||
</p>
|
||||
|
@ -450,8 +451,12 @@ sub web_alphasign_set {
|
|||
my $q = new CGI($request->content);
|
||||
my $mode = $q->param('mode');
|
||||
my $text = $q->param('text');
|
||||
my $beep = $q->param('beep');
|
||||
|
||||
$streaming or $poe_kernel->post($alphasign, 'text', $mode, $text);
|
||||
if (not $streaming) {
|
||||
$poe_kernel->post($alphasign, 'text', $mode, $text);
|
||||
$beep and $poe_kernel->post($alphasign, 'beep');
|
||||
}
|
||||
|
||||
$response->protocol("HTTP/1.1");
|
||||
$response->code(302);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue