From a9dafcba7543ee455bc3999f655010d9e2aa35ed Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Wed, 8 Jun 2016 12:04:53 +0930 Subject: Fix #6468 Do not allow edit of day and times in rows of time ranges for a schedule. The code was always intended that the user uses the calendar pad and start hour/minute stop hour/minute drop-down fields to enter days and time range. If an existing day-time-range is wrong, then the workflow is to delete the row and then enter the correct day-time-range using the calendar pad and start hour/minute stop hour/minute drop-down fields. I left the Description field as editable - there is not harm here in letting the user fixup text in any of the dsecriptions for each row. --- src/usr/local/www/firewall_schedule_edit.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/usr') diff --git a/src/usr/local/www/firewall_schedule_edit.php b/src/usr/local/www/firewall_schedule_edit.php index 26470d8..2a81be7 100644 --- a/src/usr/local/www/firewall_schedule_edit.php +++ b/src/usr/local/www/firewall_schedule_edit.php @@ -624,21 +624,21 @@ if ($getSchedule) { null, 'text', $tempFriendlyTime - ))->setWidth(2)->setHelp($counter == $maxrows ? 'Day(s)':''); + ))->setWidth(2)->setReadonly()->setHelp($counter == $maxrows ? 'Day(s)':''); $group->add(new Form_Input( 'starttime' . $counter, null, 'text', $starttime - ))->setWidth(2)->setHelp($counter == $maxrows ? 'Start time':''); + ))->setWidth(2)->setReadonly()->setHelp($counter == $maxrows ? 'Start time':''); $group->add(new Form_Input( 'stoptime' . $counter, null, 'text', $stoptime - ))->setWidth(2)->setHelp($counter == $maxrows ? 'Stop time':''); + ))->setWidth(2)->setReadonly()->setHelp($counter == $maxrows ? 'Stop time':''); $group->add(new Form_Input( 'timedescr' . $counter, @@ -1127,15 +1127,15 @@ function insertElements(tempFriendlyTime, starttimehour, starttimemin, stoptimeh '
' + '' + '
' + - '' + + '' + 'Day(s)' + '
' + '
' + - '' + + '' + 'Start time' + '
' + '
' + - '' + + '' + 'Stop time' + '
' + '
' + -- cgit v1.1