NAME
StarterView::Form::Jobs::KeywordLocationSearch
SYNOPSIS
Job seeker search form with keyword (job title) and location fields. This form
also supports sticky search filters when paired with
L<StarterView::Form::Jobs::SearchFilter>.
FIELDS
job_search_id
The (encrypted) id of the search for searches that have been saved.
search
Job title or keyword text field. Either this field or the location
field is required.
location
Location text field. Either this field or the search field is required.
radius
This field makes the current search radius filter sticky.
This field is inactive by default, and can be activated by including the field
name in the list of C<active> fields passed to C<process>.
days
This field makes the current search posted date filter sticky.
submit
Search submit button.
RENDERING
build_render_list
This function builds the list of fields that should be rendered in the form.
For the search form these are the two visible fields, the submit button and
any (sticky) hidden fields that have a value.
The list of hidden fields with a value is obtained through the
L<StarterView::Form::Role::RenderHiddenFields> role.
VALIDATION
validate
Form level validation. This form requires at least the search field or the
location field.
validate_radius
Radius filter field validation. The radius filter value must be a positive
numeric value.
validate_days
Post date filter field validation. The post date filter value must be a
positive integer value.