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

[WD-18634] Ref: use form generator on landscape bubble #14685

Open
wants to merge 2 commits into
base: main
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
369 changes: 369 additions & 0 deletions templates/landscape/form-data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,369 @@
{
"form": {
"/landscape": {
"templatePath": "/landscape/index.html",
"childrenPaths": ["/landscape/features", "/landscape/compare"],
"isModal": true,
"modalId": "contact-modal",
"formData": {
"title": "Talk to our Landscape team",
"introText": "If you want to learn more about Landscape or our professional services options, meet with us and discuss your needs with one of our advisors.",
"formId": 4473,
"returnUrl": "/landscape#contact-form-success",
"lpUrl": "https://pages.ubuntu.com/things-contact-us.html",
"product": ""
},
"fieldsets": [
{
"title": "Tell us about your project",
"id": "about-your-project",
"noCommentsFromLead": true,
"fields": [
{
"type": "long-text",
"id": "about-your-project",
"label": "Abour your project"
}
]
},
{
"title": "If you use Ubuntu, which version(s) are you using?",
"id": "ubuntu-versions",
"inputType": "checkbox-visibility",
"fields": [
{
"fieldTitle": "LTS within standard support",
"options": [
{
"type": "checkbox",
"id": "24-04",
"value": "24.04 LTS",
"label": "24.04 LTS"
},
{
"type": "checkbox",
"id": "22-04",
"value": "22.04 LTS",
"label": "22.04 LTS"
},
{
"type": "checkbox",
"id": "20-04",
"value": "20.04 LTS",
"label": "20.04 LTS"
}
]
},
{
"fieldTitle": "LTS out of standard support",
"options": [
{
"type": "checkbox",
"id": "18-04",
"value": "18.04 LTS",
"label": "18.04 LTS"
},
{
"type": "checkbox",
"id": "16-04",
"value": "16.04 LTS",
"label": "16.04 LTS"
},
{
"type": "checkbox",
"id": "14-04",
"value": "14.04 LTS",
"label": "14.04 LTS"
}
]
},
{
"fieldTitle": "Outdated or non-LTS releases non-LTS release",
"options": [
{
"type": "checkbox",
"id": "22-10",
"value": "22.10",
"label": "non-LTS release"
},
{
"type": "checkbox",
"id": "12-04",
"value": "12.04 LTS",
"label": "12.04 LTS"
}
]
},
{
"fieldTitle": "Other",
"options": [
{
"type": "checkbox",
"id": "dont-use-ubuntu-today",
"value": "I don't use Ubuntu today",
"label": "I don't use Ubuntu today"
},
{
"type": "checkbox",
"id": "i-dont'know",
"value": "I don't know",
"label": "I don't know"
}
]
}
]
},
{
"title": "What kind of device are you using?",
"id": "kind-of-device",
"isRequired": true,
"inputType": "checkbox",
"fields": [
{
"type": "checkbox",
"id": "desktop-workstation",
"value": "desktop/workstation",
"label": "Desktop workstation"
},
{
"type": "checkbox",
"id": "physical-server",
"value": "physical/server",
"label": "Physical server"
},
{
"type": "checkbox",
"id": "public-cloud",
"value": "public/cloud",
"label": "Public cloud"
},
{
"type": "checkbox",
"id": "virtual-machine",
"value": "virtual/machine",
"label": "Virtual machine"
},
{
"type": "checkbox",
"id": "iot-edge-device",
"value": "iot/edge device",
"label": "IoT/Edge device"
}
]
},
{
"title": "How many devices?",
"id": "how-many-machines",
"inputName": "how-many-machines-do-you-have",
"inputType": "radio",
"isRequired": true,
"fields": [
{
"type": "radio",
"id": "less-5-machines",
"value": "less than 5",
"label": "< 5 machines"
},
{
"type": "radio",
"id": "5-to-15-machines",
"value": "5 to 15 machines",
"label": "5 - 15 machines"
},
{
"type": "radio",
"id": "15-to-50-machines",
"value": "15 to 50 machines",
"label": "15 - 50 machines"
},
{
"type": "radio",
"id": "50-to-100-machines",
"value": "50 to 100 machines",
"label": "50 - 100 machines"
},
{
"type": "radio",
"id": "greater-than-100",
"value": "greater than 100",
"label": "> 100 machines"
}
]
},
{
"title": "How do you consume open source?",
"id": "how-do-you-consume-open-source",
"fields": [
{
"type": "checkbox",
"id": "ubuntu-repositories",
"value": "Ubuntu repositories",
"label": "Ubuntu repositories"
},
{
"type": "checkbox",
"id": "github-upstream",
"value": "GitHub/Upstream",
"label": "GitHub/Upstream"
},
{
"type": "checkbox",
"id": "internally-approved-repository",
"value": "Internally approved repository",
"label": "Internally approved repository"
},
{
"type": "checkbox",
"id": "i-dont-know",
"value": "I don't know",
"label": "I don't know"
}
]
},
{
"title": "Do you have specific compliance or hardening requirements?",
"id": "hardening-requirements",
"fields": [
{
"type": "checkbox",
"id": "pci",
"value": "PCI-DSS",
"label": "PCI-DSS"
},
{
"type": "checkbox",
"id": "hipaa",
"value": "HIPAA",
"label": "HIPAA"
},
{
"type": "checkbox",
"id": "fisma",
"value": "FISMA",
"label": "FISMA"
},
{
"type": "checkbox",
"id": "fips-140",
"value": "FIPS 140",
"label": "FIPS 140"
},
{
"type": "checkbox",
"id": "ncsc",
"value": "NCSC",
"label": "NCSC"
},
{
"type": "checkbox",
"id": "disa-stig",
"value": "DISA-STIG",
"label": "DISA-STIG"
},
{
"type": "checkbox",
"id": "fedramp",
"value": "FedRAMP",
"label": "FedRAMP"
},
{
"type": "checkbox",
"id": "cis-benchmark",
"value": "CIS Benchmark",
"label": "CIS Benchmark"
}
]
},
{
"title": "Who is responsible for tracking, testing and applying CVE patches in a timely manner?",
"id": "responsible-for-tracking",
"fields": [
{
"type": "checkbox",
"id": "individual-developers",
"value": "Individual developers",
"label": "Individual developers"
},
{
"type": "checkbox",
"id": "project-team",
"value": "The project team",
"label": "The project team"
},
{
"type": "checkbox",
"id": "third-party-vendor",
"value": "Third-party vendor",
"label": "Third-party vendor"
},
{
"type": "checkbox",
"id": "i-dont-know",
"value": "I don't know",
"label": "I don't know"
}
]
},
{
"title": "What advice are you looking for?",
"id": "advice",
"noCommentsFromLead": true,
"fields": [
{
"type": "long-text",
"id": "advice",
"label": "Tell us about your challenges and your goals"
}
]
},
{
"title": "How should we get in touch?",
"id": "about-you",
"noCommentsFromLead": true,
"fields": [
{
"type": "text",
"id": "firstName",
"label": "First name",
"isRequired": true
},
{
"type": "text",
"id": "lastName",
"label": "Last name",
"isRequired": true
},
{
"type": "text",
"id": "company",
"label": "Company name",
"isRequired": true
},
{
"type": "text",
"id": "title",
"label": "Job title",
"isRequired": true
},
{
"type": "email",
"id": "email",
"label": "Email address",
"isRequired": true
},
{
"type": "tel",
"id": "phone",
"label": "Mobile/cell phone number"
},
{
"type": "country",
"label": "Country",
"isRequired": true
}
]
}
]
}
}
}
11 changes: 1 addition & 10 deletions templates/landscape/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -366,14 +366,5 @@ <h2>
</div>
</section>

<!-- Set default Marketo information for contact form below-->
<div class="u-hide"
id="contact-form-container"
data-form-location="/shared/forms/interactive/landscape"
data-form-id="4473"
data-lp-id=""
data-return-url="/landscape"
data-lp-url="https://pages.ubuntu.com/things-contact-us.html"></div>

<script src="/static/js/src/landscape-form.js"></script>
{% include "/shared/forms/form-template.html" %}
{% endblock content %}
Loading
Loading