Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSM-129 - Report a Speeding Concern form #2149

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion web/modules/custom/portland/portland.links.menu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@ portland.logout:
description: 'Logout'
route_name: user.logout
weight: 60
menu_name: editor-toolbar
menu_name: editor-toolbar
portland.311-webforms:
title: 'Webforms'
route_name: entity.webform.collection
menu_name: 311-toolbar
8 changes: 8 additions & 0 deletions web/sites/default/config/system.menu.311-toolbar.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
uuid: 71d93367-dd95-4391-8018-e622058a5339
langcode: en
status: true
dependencies: { }
id: 311-toolbar
label: '311 Toolbar'
description: ''
locked: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
uuid: 7207fcd0-c3e2-4e61-9bf5-e2c88865bdea
langcode: en
status: true
dependencies: { }
id: '311_'
label: '311 '
weight: null
menu: 311-toolbar
rewrite_label: false
4 changes: 3 additions & 1 deletion web/sites/default/config/user.role.support_agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ id: support_agent
label: 'Support Agent'
weight: 5
is_admin: null
permissions: { }
permissions:
- 'access webform overview'
- 'view 311_ in toolbar'
264 changes: 264 additions & 0 deletions web/sites/default/config/webform.webform.report_speeding.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,264 @@
uuid: 8bef9c02-a671-486e-a83d-e229153816aa
langcode: en
status: open
dependencies: { }
open: null
close: null
weight: 0
uid: 60
template: false
archive: false
id: report_speeding
title: 'Report a Speeding Concern'
description: ''
category: Report
elements: |-
report_location:
'#type': portland_location_picker
'#title': 'Location of report'
'#title_display': before
'#required': true
'#location_type__access': false
'#location_park_container__access': false
'#waterway_instructions__access': false
'#location_private_owner__access': false
'#location_address__required': true
'#place_name__access': false
report_unsafe_driving:
'#type': radios
'#title': 'Are you witnessing any related unsafe driving behaviors?'
'#options': yes_no
report_unsafe_behaviors:
'#type': webform_checkboxes_other
'#title': 'Please select all unsafe driving behaviors related to the speeding concern'
'#options':
'Not stopping or yielding': 'Not stopping or yielding'
Tailgating: Tailgating
'Not wearing a seatbelt': 'Not wearing a seatbelt'
'Texting and driving': 'Texting and driving'
'#other__option_label': 'Something else...'
'#other__placeholder': 'Please describe…'
'#states':
visible:
':input[name="report_unsafe_driving"]':
value: 'Yes'
css: ''
javascript: ''
settings:
ajax: false
ajax_scroll_top: form
ajax_progress_type: ''
ajax_effect: ''
ajax_speed: null
page: true
page_submit_path: ''
page_confirm_path: ''
page_theme_name: ''
form_title: both
form_submit_once: false
form_exception_message: ''
form_open_message: ''
form_close_message: ''
form_previous_submissions: true
form_confidential: false
form_confidential_message: ''
form_disable_remote_addr: false
form_convert_anonymous: false
form_prepopulate: false
form_prepopulate_source_entity: false
form_prepopulate_source_entity_required: false
form_prepopulate_source_entity_type: ''
form_reset: false
form_disable_autocomplete: false
form_novalidate: false
form_disable_inline_errors: false
form_required: false
form_unsaved: false
form_disable_back: false
form_submit_back: false
form_autofocus: false
form_details_toggle: false
form_access_denied: default
form_access_denied_title: ''
form_access_denied_message: ''
form_access_denied_attributes: { }
form_file_limit: ''
form_method: ''
form_action: ''
form_attributes: { }
share: false
share_node: false
share_theme_name: ''
share_title: true
share_page_body_attributes: { }
submission_label: ''
submission_log: false
submission_views: { }
submission_views_replace: { }
submission_user_columns: { }
submission_user_duplicate: false
submission_access_denied: default
submission_access_denied_title: ''
submission_access_denied_message: ''
submission_access_denied_attributes: { }
submission_exception_message: ''
submission_locked_message: ''
submission_excluded_elements: { }
submission_exclude_empty: false
submission_exclude_empty_checkbox: false
previous_submission_message: ''
previous_submissions_message: ''
autofill: false
autofill_message: ''
autofill_excluded_elements: { }
wizard_progress_bar: true
wizard_progress_pages: false
wizard_progress_percentage: false
wizard_progress_link: false
wizard_progress_states: false
wizard_auto_forward: true
wizard_auto_forward_hide_next_button: false
wizard_keyboard: true
wizard_start_label: ''
wizard_preview_link: false
wizard_confirmation: true
wizard_confirmation_label: ''
wizard_track: ''
wizard_prev_button_label: ''
wizard_next_button_label: ''
wizard_toggle: false
wizard_toggle_show_label: ''
wizard_toggle_hide_label: ''
preview: 0
preview_label: ''
preview_title: ''
preview_message: ''
preview_attributes: { }
preview_excluded_elements: { }
preview_exclude_empty: true
preview_exclude_empty_checkbox: false
draft: none
draft_multiple: false
draft_auto_save: false
draft_saved_message: ''
draft_loaded_message: ''
draft_pending_single_message: ''
draft_pending_multiple_message: ''
confirmation_type: page
confirmation_title: ''
confirmation_message: "Thank you for your report. It has been forwarded to the Police Traffic Division and the Bureau of Transportation.<br />\r\n<br />\r\nMake a request:\r\n<ul>\r\n\t<li><a href=\"/transportation/engineering/stop-sign-overview\">Request a stop sign</a></li>\r\n\t<li>Request a speed bump</li>\r\n\t<li>Request signage</li>\r\n</ul>\r\nLearn more:\r\n\r\n<ul>\r\n\t<li><a href=\"/transportation/safe-routes-school\">Safe routes to school</a></li>\r\n\t<li><a href=\"/transportation/vision-zero\">Vision Zero</a></li>\r\n</ul>\r\n<a href=\"/help/contact-elected-official\">Contact an elected official</a>"
confirmation_url: ''
confirmation_attributes: { }
confirmation_back: true
confirmation_back_label: ''
confirmation_back_attributes: { }
confirmation_exclude_query: false
confirmation_exclude_token: false
confirmation_update: false
limit_total: null
limit_total_interval: null
limit_total_message: ''
limit_total_unique: false
limit_user: null
limit_user_interval: null
limit_user_message: ''
limit_user_unique: false
entity_limit_total: null
entity_limit_total_interval: null
entity_limit_user: null
entity_limit_user_interval: null
purge: none
purge_days: null
results_disabled: false
results_disabled_ignore: false
results_customize: false
token_view: false
token_update: false
token_delete: false
serial_disabled: false
access:
create:
roles:
- anonymous
- authenticated
users: { }
permissions: { }
view_any:
roles: { }
users: { }
permissions: { }
update_any:
roles: { }
users: { }
permissions: { }
delete_any:
roles: { }
users: { }
permissions: { }
purge_any:
roles: { }
users: { }
permissions: { }
view_own:
roles: { }
users: { }
permissions: { }
update_own:
roles: { }
users: { }
permissions: { }
delete_own:
roles: { }
users: { }
permissions: { }
administer:
roles: { }
users: { }
permissions: { }
test:
roles: { }
users: { }
permissions: { }
configuration:
roles: { }
users: { }
permissions: { }
handlers:
email:
id: email
label: Email
notes: ''
handler_id: email
status: true
conditions: { }
weight: 0
settings:
states:
- completed
to_mail: gregoryscottclapp+police@gmail.com
to_options: { }
cc_mail: gregoryscottclapp+pbot@gmail.com
cc_options: { }
bcc_mail: ''
bcc_options: { }
from_mail: _default
from_options: { }
from_name: _default
subject: 'Speeding concern report ([webform_submission:sid])'
body: "<p><strong>Report Location:</strong><br />\r\nAddress: <a href=\"https://www.google.com/maps/place/[webform_submission:values:report_location:location_address]\">[webform_submission:values:report_location:location_address]</a><br />\r\nLat/Lon: <a href=\"https://www.google.com/maps/place/[webform_submission:values:report_location:location_lat],[webform_submission:values:report_location:location_lon]\">[webform_submission:values:report_location:location_lat],[webform_submission:values:report_location:location_lon]</a><br />\r\nPlace name: [webform_submission:values:report_location:place_name]<br />\r\nAdditional details: [webform_submission:values:report_location:location_details]</p>\r\n\r\n<p><strong>Is this near a school?&nbsp;</strong>[webform_submission:values:report_near_school]</p>\r\n\r\n<p><strong>What is the nearest school? </strong>[webform_submission:values:report_nearest_school]</p>\r\n\r\n<p><strong>Are you witnessing any related unsafe driving behaviors?</strong> [webform_submission:values:report_unsafe_driving]</p>\r\n\r\n<p><strong>Please select all unsafe driving behaviors related to this speeding concern:</strong><br />\r\n[webform_submission:values:report_unsafe_behaviors]</p>\r\n\r\n<p>&nbsp;</p>"
excluded_elements: { }
ignore_access: false
exclude_empty: true
exclude_empty_checkbox: false
exclude_attachments: false
html: true
attachments: false
twig: false
debug: false
reply_to: ''
return_path: ''
sender_mail: ''
sender_name: ''
theme_name: ''
parameters: { }
variants: { }