Skip to content

Commit

Permalink
Update the form markup.
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenDufresne committed Sep 1, 2023
1 parent 0a1fdd4 commit f086b8c
Showing 1 changed file with 118 additions and 92 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,159 +58,185 @@ function prevent_deletion( $check, $post, $force_delete = false ) {
*/
function get_page_content() {
return <<<EOT
<!-- wp:paragraph -->
<p>If you recently attended a WordPress event, please take the survey below to help us make them even better in the future.</p>
<!-- /wp:paragraph -->
<!-- wp:paragraph -->
<p>If you recently attended a WordPress event, please take the survey below to help us make them even better in the future.</p>
<!-- /wp:paragraph -->
<!-- wp:jetpack/contact-form {"subject":"New feedback received from your website","to":"[email protected]","style":{"spacing":{"padding":{"top":"16px","right":"16px","bottom":"16px","left":"16px"}}}} -->
<div class="wp-block-jetpack-contact-form" style="padding-top:16px;padding-right:16px;padding-bottom:16px;padding-left:16px"><!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:heading -->
<h2 class="wp-block-heading"><strong>Part I. Tell us about you!</strong></h2>
<!-- /wp:heading -->
<!-- wp:jetpack/contact-form {"subject":"New feedback received from your website","to":"[email protected]","style":{"spacing":{"padding":{"top":"16px","right":"16px","bottom":"16px","left":"16px"}}}} -->
<div class="wp-block-jetpack-contact-form" style="padding-top:16px;padding-right:16px;padding-bottom:16px;padding-left:16px"><!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:heading -->
<h2 class="wp-block-heading"><strong>Part I. Tell us about you!</strong></h2>
<!-- /wp:heading -->
<!-- wp:jetpack/field-radio {"label":"How long have you been using WordPress?","required":true,"requiredText":"(required)","options":["1 - Very Bad","2 - Poor","3 - Average","4 - Good","5 - Excellent"]} -->
<!-- wp:jetpack/field-option-radio {"label":"More than 1 year"} /-->
<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:jetpack/field-radio {"label":"How long have you been using WordPress?","required":true,"requiredText":"(required)","options":[]} -->
<!-- wp:jetpack/field-option-radio {"label":"More than 1 year"} /-->
<!-- wp:jetpack/field-option-radio {"label":"1 year"} /-->
<!-- wp:jetpack/field-option-radio {"label":"1 year"} /-->
<!-- wp:jetpack/field-option-radio {"label":"Less than a year"} /-->
<!-- wp:jetpack/field-option-radio {"label":"Less than a year"} /-->
<!-- wp:jetpack/field-option-radio {"label":"I don't use WordPress yet"} /-->
<!-- /wp:jetpack/field-radio -->
<!-- wp:jetpack/field-option-radio {"label":"I don't use WordPress yet"} /-->
<!-- /wp:jetpack/field-radio --></div>
<!-- /wp:group -->
<!-- wp:jetpack/field-checkbox-multiple {"label":"Which of these best describes you? ","required":true,"requiredText":"(required)"} -->
<!-- wp:jetpack/field-option-checkbox {"label":"Personal Blogger"} /-->
<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:jetpack/field-checkbox-multiple {"label":"Which of these best describes you? ","required":true,"requiredText":"(required)"} -->
<!-- wp:jetpack/field-option-checkbox {"label":"Personal Blogger"} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"Company Blogger"} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"Company Blogger"} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"Designer"} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"Designer"} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"Junior Developer"} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"Junior Developer"} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"Senior Developer"} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"Senior Developer"} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"Project Manager"} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"Project Manager"} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"System Administrator/IT Professional"} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"System Administrator/IT Professional"} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"Sales/Marketing/PR"} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"Sales/Marketing/PR"} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"Business Owner"} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"Business Owner"} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"WordPress Fan"} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"WordPress Fan"} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"Other: (Please specify.)"} /-->
<!-- /wp:jetpack/field-checkbox-multiple -->
<!-- wp:jetpack/field-option-checkbox {"label":"Other: (Please specify.)"} /-->
<!-- /wp:jetpack/field-checkbox-multiple -->
<!-- wp:jetpack/field-text {"label":"Other","requiredText":"(required)"} /-->
<!-- wp:jetpack/field-text {"label":"Other","requiredText":"(required)"} /--></div>
<!-- /wp:group -->
<!-- wp:jetpack/field-textarea {"label":"Please provide link(s) to any WordPress Meetup groups where you are actively participating.","requiredText":"(required)"} /-->
<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:jetpack/field-textarea {"label":"Please provide link(s) to any WordPress Meetup groups where you are actively participating.","requiredText":"(required)"} /--></div>
<!-- /wp:group -->
<!-- wp:jetpack/field-radio {"label":"Have you attended WordPress events before?","required":true,"requiredText":"(required)"} -->
<!-- wp:jetpack/field-option-radio {"label":"Yes"} /-->
<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:jetpack/field-radio {"label":"Have you attended WordPress events before?","required":true,"requiredText":"(required)"} -->
<!-- wp:jetpack/field-option-radio {"label":"Yes"} /-->
<!-- wp:jetpack/field-option-radio {"label":"No"} /-->
<!-- /wp:jetpack/field-radio -->
<!-- wp:jetpack/field-option-radio {"label":"No"} /-->
<!-- /wp:jetpack/field-radio -->
<!-- wp:jetpack/field-text {"label":"If yes, please tell us what event, where and when.","requiredText":"(required)"} /-->
<!-- wp:jetpack/field-text {"label":"If yes, please tell us what event, where and when.","requiredText":"(required)"} /--></div>
<!-- /wp:group -->
<!-- wp:jetpack/field-checkbox-multiple {"label":"Which of the following role(s) have you contributed to in the past?","requiredText":"(required)"} -->
<!-- wp:jetpack/field-option-checkbox {"label":"WordPress event Organizer"} /-->
<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:jetpack/field-checkbox-multiple {"label":"Which of the following role(s) have you contributed to in the past?","requiredText":"(required)"} -->
<!-- wp:jetpack/field-option-checkbox {"label":"WordPress event Organizer"} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"WordPress event Volunteer"} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"WordPress event Volunteer"} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"WordPress event Sponsor"} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"WordPress event Sponsor"} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"WordPress event Speaker/Trainer/Facilitator"} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"WordPress event Speaker/Trainer/Facilitator"} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"Other: (Please specify.)"} /-->
<!-- /wp:jetpack/field-checkbox-multiple -->
<!-- wp:jetpack/field-option-checkbox {"label":"Other: (Please specify.)"} /-->
<!-- /wp:jetpack/field-checkbox-multiple -->
<!-- wp:jetpack/field-text {"label":"If other, please specify","requiredText":"(required)"} /-->
<!-- wp:jetpack/field-text {"label":"If other, please specify","requiredText":"(required)"} /--></div>
<!-- /wp:group -->
<!-- wp:jetpack/field-checkbox-multiple {"label":"Did this event allow you to experience any of the following roles?","required":true,"requiredText":"(required)"} -->
<!-- wp:jetpack/field-option-checkbox {"label":"First-time WordPress event Attendee"} /-->
<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:jetpack/field-checkbox-multiple {"label":"Did this event allow you to experience any of the following roles?","required":true,"requiredText":"(required)"} -->
<!-- wp:jetpack/field-option-checkbox {"label":"First-time WordPress event Attendee"} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"First-time WordPress event Organizer"} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"First-time WordPress event Organizer"} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"First-time WordPress event Volunteer"} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"First-time WordPress event Volunteer"} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"First-time WordPress event Sponsor"} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"First-time WordPress event Sponsor"} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"First-time WordPress event Speaker/Trainer/Facilitator"} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"First-time WordPress event Speaker/Trainer/Facilitator"} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"Other: (Please specify.)"} /-->
<!-- /wp:jetpack/field-checkbox-multiple -->
<!-- wp:jetpack/field-option-checkbox {"label":"Other: (Please specify.)"} /-->
<!-- /wp:jetpack/field-checkbox-multiple -->
<!-- wp:jetpack/field-text {"label":"If other, please specify","requiredText":"(required)"} /--></div>
<!-- /wp:group -->
<!-- wp:jetpack/field-text {"label":"If other, please specify","requiredText":"(required)"} /--></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:heading -->
<h2 class="wp-block-heading"><strong><strong>Part II. Tell us about the event you attended!</strong></strong></h2>
<!-- /wp:heading -->
<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:heading -->
<h2 class="wp-block-heading"><strong><strong>Part II. Tell us about the event you attended!</strong></strong></h2>
<!-- /wp:heading -->
<!-- wp:jetpack/field-text {"label":"How did you hear about the event?","required":true,"requiredText":"(required)"} /-->
<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:jetpack/field-text {"label":"How did you hear about the event?","required":true,"requiredText":"(required)"} /--></div>
<!-- /wp:group -->
<!-- wp:jetpack/field-radio {"label":"How satisfied are you with the event?","required":true,"requiredText":"(required)"} -->
<!-- wp:jetpack/field-option-radio {"label":"Extremely satisfied"} /-->
<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:jetpack/field-radio {"label":"How satisfied are you with the event?","required":true,"requiredText":"(required)"} -->
<!-- wp:jetpack/field-option-radio {"label":"Extremely satisfied"} /-->
<!-- wp:jetpack/field-option-radio {"label":"Satisfied"} /-->
<!-- wp:jetpack/field-option-radio {"label":"Satisfied"} /-->
<!-- wp:jetpack/field-option-radio {"label":"Neutral"} /-->
<!-- wp:jetpack/field-option-radio {"label":"Neutral"} /-->
<!-- wp:jetpack/field-option-radio {"label":"Dissatisfied"} /-->
<!-- wp:jetpack/field-option-radio {"label":"Dissatisfied"} /-->
<!-- wp:jetpack/field-option-radio {"label":"Extremely unhappy"} /-->
<!-- /wp:jetpack/field-radio -->
<!-- wp:jetpack/field-option-radio {"label":"Extremely unhappy"} /-->
<!-- /wp:jetpack/field-radio --></div>
<!-- /wp:group -->
<!-- wp:jetpack/field-checkbox-multiple {"label":"What aspects of the event were valuable to you?","required":true,"requiredText":"(required)"} -->
<!-- wp:jetpack/field-option-checkbox {"label":"I was inspired to contribute to WordPress."} /-->
<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:jetpack/field-checkbox-multiple {"label":"What aspects of the event were valuable to you?","required":true,"requiredText":"(required)"} -->
<!-- wp:jetpack/field-option-checkbox {"label":"I was inspired to contribute to WordPress."} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"I got help with a specific WordPress problem."} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"I got help with a specific WordPress problem."} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"I made new connections."} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"I made new connections."} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"I learned new WordPress skills."} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"I learned new WordPress skills."} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"I deepened an established relationship."} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"I deepened an established relationship."} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"I was inspired to do more with WordPress."} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"I was inspired to do more with WordPress."} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"I contributed to WordPress."} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"I contributed to WordPress."} /-->
<!-- wp:jetpack/field-option-checkbox {"label":"Other: (Please specify.) "} /-->
<!-- /wp:jetpack/field-checkbox-multiple -->
<!-- wp:jetpack/field-option-checkbox {"label":"Other: (Please specify.) "} /-->
<!-- /wp:jetpack/field-checkbox-multiple -->
<!-- wp:jetpack/field-text {"label":"If other, please specify","requiredText":"(required)"} /-->
<!-- wp:jetpack/field-text {"label":"If other, please specify","requiredText":"(required)"} /--></div>
<!-- /wp:group -->
<!-- wp:jetpack/field-textarea {"label":"What changes would you suggest to the event organizers? ","required":true,"requiredText":"(required)"} /-->
<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:jetpack/field-textarea {"label":"What changes would you suggest to the event organizers? ","required":true,"requiredText":"(required)"} /--></div>
<!-- /wp:group -->
<!-- wp:jetpack/field-radio {"label":"Would you like to help contribute to WordPress events in the future?","required":true,"requiredText":"(required)"} -->
<!-- wp:jetpack/field-option-radio {"label":"Yes"} /-->
<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:jetpack/field-radio {"label":"Would you like to help contribute to WordPress events in the future?","required":true,"requiredText":"(required)"} -->
<!-- wp:jetpack/field-option-radio {"label":"Yes"} /-->
<!-- wp:jetpack/field-option-radio {"label":"No"} /-->
<!-- /wp:jetpack/field-radio -->
<!-- wp:jetpack/field-option-radio {"label":"No"} /-->
<!-- /wp:jetpack/field-radio -->
<!-- wp:jetpack/field-email {"label":"If your answer is yes, please enter your email address:","requiredText":"(required)"} /-->
<!-- wp:jetpack/field-email {"label":"If your answer is yes, please enter your email address:","requiredText":"(required)"} /--></div>
<!-- /wp:group -->
<!-- wp:jetpack/field-radio {"label":"How likely are you to recommend the event to others?","required":true,"requiredText":"(required)"} -->
<!-- wp:jetpack/field-option-radio {"label":"Very Likely"} /-->
<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:jetpack/field-radio {"label":"How likely are you to recommend the event to others?","required":true,"requiredText":"(required)"} -->
<!-- wp:jetpack/field-option-radio {"label":"Very Likely"} /-->
<!-- wp:jetpack/field-option-radio {"label":"Likely"} /-->
<!-- wp:jetpack/field-option-radio {"label":"Likely"} /-->
<!-- wp:jetpack/field-option-radio {"label":"Neutral"} /-->
<!-- wp:jetpack/field-option-radio {"label":"Neutral"} /-->
<!-- wp:jetpack/field-option-radio {"label":"Unlikely"} /-->
<!-- wp:jetpack/field-option-radio {"label":"Unlikely"} /-->
<!-- wp:jetpack/field-option-radio {"label":"Very Unlikely"} /-->
<!-- /wp:jetpack/field-radio -->
<!-- wp:jetpack/field-option-radio {"label":"Very Unlikely"} /-->
<!-- /wp:jetpack/field-radio --></div>
<!-- /wp:group -->
<!-- wp:jetpack/field-email {"label":"If you are willing to answer follow-up questions about this survey, please enter your email address here. (e.g. \u003ca href=\u0022mailto:[email protected]\u0022\u[email protected]\u003c/a\u003e)","requiredText":"(required)","options":[""]} /-->
<!-- /wp:group -->
<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group"><!-- wp:jetpack/field-email {"label":"If you are willing to answer follow-up questions about this survey, please enter your email address here. (e.g. \u003ca href=\u0022mailto:[email protected]\u0022\u[email protected]\u003c/a\u003e)","requiredText":"(required)","options":[""]} /--></div>
<!-- /wp:group --></div>
<!-- /wp:group -->
<!-- wp:jetpack/button {"element":"button","text":"Send Feedback","lock":{"remove":true}} /--></div>
<!-- /wp:jetpack/contact-form -->
<!-- wp:jetpack/button {"element":"button","text":"Send Feedback","lock":{"remove":true}} /--></div>
<!-- /wp:jetpack/contact-form -->
EOT;
}

Expand Down

0 comments on commit f086b8c

Please sign in to comment.