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

CS-398 Graffiti resolution form updates #2498

Open
wants to merge 3 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
33 changes: 28 additions & 5 deletions web/sites/default/config/webform.webform.report_graffiti.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ elements: |-
value: 'I am a tenant'
report_above_ground_level:
'#type': radios
'#title': 'Is the graffiti above ground level (more than 8 feet up)?'
'#title': 'Is the graffiti more than 8 feet above ground level?'
'#options':
'Yes': 'Yes'
'No': 'No'
Expand All @@ -209,6 +209,12 @@ elements: |-
'#options': yes_no
'#options_display': side_by_side
'#default_value': 'No'
do_you_have_a_photo_of_the_graffiti_that_you_can_upload_:
'#type': radios
'#title': 'Do you have a photo of the graffiti that you can upload?'
'#options': yes_no
'#options_display': side_by_side
'#default_value': 'Yes'
report_photo:
'#type': webform_image_file
'#title': 'Please upload a photo of the graffiti'
Expand All @@ -217,15 +223,30 @@ elements: |-
'#description_display': before
'#states':
required:
':input[name="support_agent_use_only[employee_email]"]':
empty: true
':input[name="do_you_have_a_photo_of_the_graffiti_that_you_can_upload_"]':
value: 'Yes'
visible:
':input[name="do_you_have_a_photo_of_the_graffiti_that_you_can_upload_"]':
value: 'Yes'
'#file_preview': name
'#max_filesize': '30'
'#file_extensions': 'gif jpg png svg jpeg'
'#file_name': 'report_[webform_submission:sid]'
'#sanitize': true
'#max_resolution': 1280x1280
'#attachment_image_style': webform_report_uploaded_image
graffiti_description:
'#type': textarea
'#title': 'Graffiti Description'
'#description': '<p data-pm-slice="1 1 [&quot;bulletList&quot;,null,&quot;listItem&quot;,null]">Please provide a detailed description of the graffiti including size, the specific location on the property, what type of material it is painted on, and whether gang or hate speech is present</p>'
'#description_display': before
'#states':
visible:
':input[name="do_you_have_a_photo_of_the_graffiti_that_you_can_upload_"]':
value: 'No'
required:
':input[name="do_you_have_a_photo_of_the_graffiti_that_you_can_upload_"]':
value: 'No'
section_contact:
'#type': webform_section
'#title': 'Your Contact Information'
Expand Down Expand Up @@ -298,6 +319,8 @@ elements: |-

{% if data.report_hate_speech_or_gang %}<p>Is the graffiti hate speech or gang related?&nbsp;{{ data.report_hate_speech_or_gang }}</p>{% endif %}

{% if data.graffiti_description %}<p>Graffiti Description:&nbsp;{{ data.graffiti_description }}</p>{% endif %}

{% if data.contact_name %}<p>Contact Name:&nbsp;{{ data.contact_name }}</p>{% endif %}

{% if data.contact_email %}<p>Contact Email:&nbsp;{{ data.contact_email }}</p>{% endif %}
Expand Down Expand Up @@ -546,7 +569,7 @@ handlers:
assignee_id: ''
type: incident
collaborators: ''
custom_fields: "6353388345367: 'report_graffiti'\r\n5581480390679: '[webform_submission:values:report_location:location_lat]'\r\n5581490332439: '[webform_submission:values:report_location:location_lon]'\r\n1500012743961: '[webform_submission:values:report_location:location_address]'\r\n1500013095781: '[webform_submission:uuid]'\r\n6355783758871: '[webform_submission:values:resolution_url]'\r\n6379451469847: '[webform_submission:values:waiver_url]'\r\n9205221816983: '[webform_submission:values:report_location:location_type:raw]'\r\n10333166173079: '[webform_submission:values:report_above_ground_level]'\r\n10333167883159: '[webform_submission:values:report_graffiti_on_mural]'\r\n6586776052759: '[webform_submission:values:report_hate_speech_or_gang]'"
custom_fields: "6353388345367: 'report_graffiti'\r\n5581480390679: '[webform_submission:values:report_location:location_lat]'\r\n5581490332439: '[webform_submission:values:report_location:location_lon]'\r\n1500012743961: '[webform_submission:values:report_location:location_address]'\r\n1500013095781: '[webform_submission:uuid]'\r\n6355783758871: '[webform_submission:values:resolution_url]'\r\n6379451469847: '[webform_submission:values:waiver_url]'\r\n9205221816983: '[webform_submission:values:report_location:location_type:raw]'\r\n10333166173079: '[webform_submission:values:report_above_ground_level]'\r\n10333167883159: '[webform_submission:values:report_graffiti_on_mural]'\r\n6586776052759: '[webform_submission:values:report_hate_speech_or_gang]'\r\n7557381052311: '[webform_submission:values:graffiti_description]'\r\n"
ticket_id_field: report_ticket_id
ticket_form_id: '6499767163543'
create_new_zendesk_ticket_developer_test:
Expand All @@ -572,7 +595,7 @@ handlers:
assignee_id: ''
type: incident
collaborators: ''
custom_fields: "6353388345367: 'report_graffiti'\r\n5581480390679: '[webform_submission:values:report_location:location_lat]'\r\n5581490332439: '[webform_submission:values:report_location:location_lon]'\r\n1500012743961: '[webform_submission:values:report_location:location_address]'\r\n1500013095781: '[webform_submission:uuid]'\r\n6355783758871: '[webform_submission:values:resolution_url]'\r\n6379451469847: '[webform_submission:values:waiver_url]'\r\n9205221816983: '[webform_submission:values:report_location:location_type:raw]'\r\n10333166173079: '[webform_submission:values:report_above_ground_level]'\r\n10333167883159: '[webform_submission:values:report_graffiti_on_mural]'\r\n6586776052759: '[webform_submission:values:report_hate_speech_or_gang]'"
custom_fields: "6353388345367: 'report_graffiti'\r\n5581480390679: '[webform_submission:values:report_location:location_lat]'\r\n5581490332439: '[webform_submission:values:report_location:location_lon]'\r\n1500012743961: '[webform_submission:values:report_location:location_address]'\r\n1500013095781: '[webform_submission:uuid]'\r\n6355783758871: '[webform_submission:values:resolution_url]'\r\n6379451469847: '[webform_submission:values:waiver_url]'\r\n9205221816983: '[webform_submission:values:report_location:location_type:raw]'\r\n10333166173079: '[webform_submission:values:report_above_ground_level]'\r\n10333167883159: '[webform_submission:values:report_graffiti_on_mural]'\r\n6586776052759: '[webform_submission:values:report_hate_speech_or_gang]'\r\n7557381052311: '[webform_submission:values:graffiti_description]'\r\n"
ticket_id_field: report_ticket_id
ticket_form_id: '6499767163543'
zendesk_update_ticket:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,18 @@ elements: |-
'#title': Location
'#title_display': before
'#prepopulate': true
'#required': true
'#location_address__required': true
'#location_map__description': '<em>Existing graffiti reports are displayed with a red marker <img src="/modules/custom/portland/modules/portland_location_picker/images/map_marker_incident.png" alt="Red map marker icon" class="inline-icon"> when the map is fully zoomed in. New reports must be reviewed and may take up to 24 hours to appear on the map.</em>'
'#location_lat__required': true
'#location_municipality_name__access': false
'#location_is_portland__access': false
'#primary_layer_source': /api/tickets/graffiti
'#primary_layer_behavior': informational
'#primary_layer_type': incident
'#feature_layer_visible_zoom': 17
'#location_lat__states':
required:
':input[name="override_location_required"]':
value: ''
report_private_property_type:
'#type': radios
'#title': 'What type of private property is it?'
Expand Down Expand Up @@ -80,7 +82,7 @@ elements: |-
value: 'Something else...'
report_above_ground_level:
'#type': radios
'#title': 'Is the graffiti above ground level?'
'#title': 'Is the graffiti more than 8 feet above ground level?'
'#prepopulate': true
'#options':
'Yes': 'Yes'
Expand Down Expand Up @@ -288,6 +290,11 @@ elements: |-


'#ajax': true
override_location_required:
'#type': hidden
'#title': 'Override Location Required'
'#description': 'If this value is &quot;Yes,&quot; the Location widget is configured to not require a location. This allows reporting forms to support reporting locations that aren&#39;t searchable on PortlandMaps.'
'#prepopulate': true
support_agent_use_only:
'#type': portland_support_agent_widget
'#title': 'Support Agent Use Only'
Expand Down