<<

NAME

pfappserver::Form::Violation - Web form for a violation

DESCRIPTION

Form definition to create or update a violation.

around has_errors

Ignore validation errors for the trigger select field. An error would occur if a new trigger is added from the Web interface. In this case, this new value is not in the initial options list and would cause the form to throw an error.

update_fields

For violations other than the default, add placeholders with values from default violation.

options_actions

options_vclose

options_roles

options_trigger

options_template

validate

Make sure the ID is a positive integer, unless its 'defaults'

Make sure a violation is specified if the close action is selected.

Make sure a role is specified if the role action is selected.

COPYRIGHT

Copyright (C) 2005-2015 Inverse inc.

LICENSE

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

<<