From 2a8cd03bd4f54bd39107aaa5196d887f357ee3c9 Mon Sep 17 00:00:00 2001 From: R Axalan Date: Wed, 12 Jan 2022 11:01:45 -0500 Subject: [PATCH 1/4] Adds Skills Interest Vueform --- .../Recipes/SkillsInterestForm.recipe.json | 1349 +++++++++++++++++ 1 file changed, 1349 insertions(+) create mode 100644 src/Modules/StatCan.OrchardCore.Hackathon/Recipes/SkillsInterestForm.recipe.json diff --git a/src/Modules/StatCan.OrchardCore.Hackathon/Recipes/SkillsInterestForm.recipe.json b/src/Modules/StatCan.OrchardCore.Hackathon/Recipes/SkillsInterestForm.recipe.json new file mode 100644 index 000000000..1d65c84c5 --- /dev/null +++ b/src/Modules/StatCan.OrchardCore.Hackathon/Recipes/SkillsInterestForm.recipe.json @@ -0,0 +1,1349 @@ +{ + "name": "Hackathon.SkillsInterestForm", + "displayName": "HR Form (Part 2 -Skills and interests)", + "description": "Creates a page with HR Form (Part 2 -Skills and interests)", + "author": "StatCan Digital Innovation", + "website": "digital.statcan.gc.ca", + "version": "1.0.0", + "issetuprecipe": false, + "categories": [], + "tags": [], + "steps": [ + { + "name": "feature", + "disable": [], + "enable": [ + "StatCan.OrchardCore.Hackathon", + "StatCan.OrchardCore.VueForms" + ] + }, + { + "name": "Content", + "data": [ + { + "ContentItemId": "47t60791n0tng20t6sfz8xwgd1", + "ContentItemVersionId": "43m0w3p9js1q1w4rgh9qkcw7cv", + "ContentType": "VueForm", + "DisplayText": "Part2 - Skills and Interest Form", + "Latest": true, + "Published": true, + "ModifiedUtc": "2022-01-12T14:59:08.521123Z", + "PublishedUtc": "2022-01-12T14:59:08.550386Z", + "CreatedUtc": "2021-12-15T19:10:55.483939Z", + "Owner": "[js: parameters('AdminUserId')]", + "Author": "[js: parameters('AdminUsername')]", + "TitlePart": { + "Title": "Part2 - Skills and Interest Form" + }, + "VueForm": { + "Template": { + "Text": "\r\n \r\n \r\n \r\n {{\"consent\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"degreesCompleted\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"phoneNumber\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n {{\"gcJobInterest\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"jobType\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"coop\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"fswep\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n {{\"location\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"citizenship\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"citizenshipStatus\" | localize}}\r\n !!v || '{{\"fieldValidation\" | localize}}']\">\r\n\r\n \r\n \r\n \r\n {{\"language\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n {{\"fieldsOfInterest\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n !!v || '{{\"fieldValidation\" | localize}}']\" :disabled=\"!otherFieldsOfInterest\">\r\n\r\n \r\n \r\n {{\"fieldsOfExpertise\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n !!v || '{{\"fieldValidation\" | localize}}']\" :disabled=\"!otherFieldsOfExpertise\">\r\n \r\n \r\n \r\n {{\"programmingLanguages\" | localize}} \r\n \r\n \r\n {{\"sql\" | localize}}\r\n \r\n \r\n \r\n {{\"sas\" | localize}}\r\n \r\n \r\n \r\n {{\"r\" | localize}}\r\n \r\n \r\n \r\n {{\"python\" | localize}}\r\n \r\n \r\n \r\n {{\"java\" | localize}}\r\n \r\n \r\n \r\n {{\"perl\" | localize}}\r\n \r\n \r\n \r\n {{\"scala\" | localize}}\r\n \r\n \r\n \r\n {{\"julia\" | localize}}\r\n \r\n \r\n \r\n {{\"matlab\" | localize}}\r\n \r\n \r\n \r\n {{\"stata\" | localize}}\r\n \r\n \r\n \r\n {{\"powerBi\" | localize}}\r\n \r\n \r\n \r\n {{\"qgis\" | localize}}\r\n \r\n \r\n \r\n {{\"arcgis\" | localize}}\r\n \r\n \r\n \r\n {{\"grass\" | localize}}\r\n \r\n \r\n \r\n {{\"cPlusPlus\" | localize}}\r\n \r\n \r\n \r\n {{\"cSharp\" | localize}}\r\n \r\n \r\n \r\n {{\"javascript\" | localize}}\r\n \r\n \r\n \r\n {{\"html\" | localize}}\r\n \r\n \r\n \r\n {{\"css\" | localize}}\r\n \r\n \r\n \r\n {{\"other\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"publicProfilesLink\" | localize}}\r\n \r\n \r\n \r\n {{\"gitHubLink\" | localize}}\r\n \r\n \r\n \r\n {{\"experience\" | localize}}\r\n \r\n \r\n {{\"cv\" | localize}}\r\n \r\n \r\n \r\n \r\n {% raw %}{{ form.successMessage }}{% endraw %}\r\n \r\n \r\n {% raw %}{{ form.serverValidationMessage[0] }}{% endraw %}\r\n \r\n \r\n \r\n \t{{ \"submitLabel\" | localize }}\r\n \r\n \r\n \r\n" + }, + "RenderAs": { + "Text": null + }, + "Disabled": { + "Value": false + }, + "Debug": { + "Value": false + }, + "DisabledHtml": { + "Html": "
\nThe contact form is currently disabled.\n
" + }, + "SuccessMessage": { + "Text": "{{ \"successMessage\" | localize }}" + } + }, + "AliasPart": { + "Alias": "Part2-Skills-and-Interest-Form" + }, + "VueFormScripts": { + "ClientInit": { + "Text": null + }, + "ComponentOptions": { + "Text": "{\r\n data: () => ({\r\n consent: \"\",\r\n\tdegreesCompleted: \"\",\r\n phoneNumber: \"\",\r\n gcJobInterest:\"\",\r\n jobType:\"\",\r\n coop:\"\",\r\n fswep:\"\",\r\n location:\"\",\r\n citizenship:\"\",\r\n citizenshipStatus:\"\",\r\n fieldsOfInterest:[],\r\n otherFieldsOfInterest:\"\",\r\n otherInterest:\"\",\r\n fieldsOfExpertise:[],\r\n otherFieldsOfExpertise:\"\",\r\n otherExpertise:\"\",\r\n sql:\"\",\r\n sas:\"\",\r\n r:\"\",\r\n python:\"\",\r\n java:\"\",\r\n perl:\"\",\r\n scala:\"\",\r\n julia:\"\",\r\n matlab:\"\",\r\n stata:\"\",\r\n powerBi:\"\",\r\n qgis:\"\",\r\n arcgis:\"\",\r\n grass:\"\",\r\n cPlusPlus:\"\",\r\n cSharp:\"\",\r\n javascript:\"\",\r\n html:\"\",\r\n css:\"\",\r\n otherLanguage:\"\",\r\n otherLanguageRating:\"\",\r\n publicProfilesLink:\"\",\r\n gitHubLink:\"\",\r\n experience:\"\",\r\n\r\n })\r\n}" + }, + "OnValidation": { + "Text": "var data = requestFormAsJsonObject();\r\nvar localizedText = getLocalizedTextValues(getFormContentItem());\r\n\r\nif(data.otherFieldsOfInterest == \"other\" && data.otherInterest == \"\" || \r\n data.otherFieldsOfExpertise == \"other\" && data.otherExpertise == \"\" || \r\n data.citizenship == \"no\" && data.citizenshipStatus == \"\" ) \r\n {\r\n addError('serverValidationMessage', localizedText.serverValidationError);\r\n }" + }, + "OnSubmitted": { + "Text": "var data = requestFormAsJsonObject();\r\n\r\nvar item = createContentItem(\"SkillsInterest\", true, {\r\n \"SkillsInterest\": {\r\n \"Consent\": {\r\n \"Text\": data.consent\r\n },\r\n \"DegreesCompleted\": {\r\n \"Text\": data.degreesCompleted\r\n },\r\n \"PhoneNumber\": {\r\n \"Text\": data.phoneNumber\r\n },\r\n \"GcJobInterest\": {\r\n \"Text\": data.gcJobInterest\r\n },\r\n \"JobType\": {\r\n \"Text\": data.jobType\r\n },\r\n \"Coop\": {\r\n \"Text\": data.coop\r\n },\r\n \"Fswep\": {\r\n \"Text\": data.fswep\r\n },\r\n \"Location\": {\r\n \"Text\": data.location\r\n },\r\n \"Citizenship\": {\r\n \"Text\": data.citizenship\r\n },\r\n \"CitizenshipStatus\": {\r\n \"Text\": data.citizenshipStatus\r\n },\r\n \"FieldsOfInterest\": {\r\n \"Text\": [data.fieldsOfInterest]\r\n },\r\n \"OtherFieldsOfInterest\": {\r\n \"Text\": data.otherFieldsOfInterest\r\n },\r\n \"OtherInterest\": {\r\n \"Text\": data.otherInterest\r\n },\r\n \"FieldsOfExpertise\": {\r\n \"Text\": [data.fieldsOfExpertise]\r\n },\r\n \"OtherFieldsOfExpertise\": {\r\n \"Text\": data.otherFieldsOfExpertise\r\n },\r\n \"OtherExpertise\": {\r\n \"Text\": data.otherExpertise\r\n },\r\n \"Sql\": {\r\n \"Value\": data.sql\r\n },\r\n \"Sas\": {\r\n \"Value\":data.sas\r\n },\r\n \"R\": {\r\n \"Value\":data.r\r\n },\r\n \"Python\": {\r\n \"Value\":data.python\r\n },\r\n \"Java\": {\r\n \"Value\":data.java\r\n },\r\n \"Perl\": {\r\n \"Value\":data.perl\r\n },\r\n \"Scala\": {\r\n \"Value\":data.scala\r\n },\r\n \"Julia\": {\r\n \"Value\":data.julia\r\n },\r\n \"Matlab\": {\r\n \"Value\":data.matlab\r\n },\r\n \"Stata\": {\r\n \"Value\":data.stata\r\n },\r\n \"PowerBi\": {\r\n \"Value\":data.powerBi\r\n },\r\n \"Qgis\": {\r\n \"Value\":data.qgis\r\n },\r\n \"Argis\": {\r\n \"Value\":data.argis\r\n },\r\n \"Grass\": {\r\n \"Value\":data.grass\r\n },\r\n \"CPlusPlus\": {\r\n \"Value\":data.cPlusPlus\r\n },\r\n \"CSharp\": {\r\n \"Value\":data.cSharp\r\n },\r\n \"Javascript\": {\r\n \"Value\":data.javascript\r\n },\r\n \"Html\": {\r\n \"Value\":data.html\r\n },\r\n \"Css\": {\r\n \"Value\":data.css\r\n },\r\n \"OtherLanguage\": {\r\n \"Text\": data.otherLanguage\r\n },\r\n \"OtherLanguageRating\": {\r\n \"Value\": data.otherLanguageRating\r\n },\r\n \"PublicProfilesLink\": {\r\n \"Text\": data.publicProfilesLink\r\n },\r\n \"GitHubLink\": {\r\n \"Text\": data.gitHubLink\r\n },\r\n \"Experience\": {\r\n \"Text\": data.experience\r\n }\r\n }\r\n}); \r\n" + } + }, + "ContentPermissionsPart": { + "Enabled": false, + "Roles": [] + }, + "LocalizedTextPart": { + "Data": [ + { + "Name": "consent", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Do you agree to share the information in this form to hiring managers of partnering departments?" + } + ] + }, + { + "Name": "yesLabel", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Oui" + }, + { + "Culture": "en", + "Value": "Yes" + } + ] + }, + { + "Name": "noLabel", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Non" + }, + { + "Culture": "en", + "Value": "No" + } + ] + }, + { + "Name": "degreesCompleted", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Have you completed any degrees or diplomas from a Canadian institution?" + } + ] + }, + { + "Name": "phoneNumber", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "What is your phone number?" + } + ] + }, + { + "Name": "gcJobInterest", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Are you interested in a career in the public service? If you select \"Yes\", your personal information will be shared with potential hiring managers within Statistics Canada and partnering federal departments." + } + ] + }, + { + "Name": "jobType", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Would you be available for a part-time and/or a full-time position?" + } + ] + }, + { + "Name": "partTime", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Part Time" + } + ] + }, + { + "Name": "fullTime", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Full Time" + } + ] + }, + { + "Name": "coop", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Are you currently enrolled in a Co-op program? " + } + ] + }, + { + "Name": "fswep", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Have you ever been employed through FWSEP?" + } + ] + }, + { + "Name": "location", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "In which province are your currently living?" + } + ] + }, + { + "Name": "ab", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Alberta" + }, + { + "Culture": "en", + "Value": "Alberta" + } + ] + }, + { + "Name": "bc", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Colombie-Britannique" + }, + { + "Culture": "en", + "Value": "British Columbia" + } + ] + }, + { + "Name": "mb", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Manitoba" + }, + { + "Culture": "en", + "Value": "Manitoba" + } + ] + }, + { + "Name": "nb", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Nouveau-Brunswick" + }, + { + "Culture": "en", + "Value": "New Brunswick" + } + ] + }, + { + "Name": "nl", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Terre-Neuve-et-Labrador " + }, + { + "Culture": "en", + "Value": "Newfoundland and Labrador" + } + ] + }, + { + "Name": "nt", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Territoires du Nord-Ouest " + }, + { + "Culture": "en", + "Value": "Northwest Territories" + } + ] + }, + { + "Name": "ns", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Nouvelle-Écosse" + }, + { + "Culture": "en", + "Value": "Nova Scotia" + } + ] + }, + { + "Name": "nu", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Nunavut" + }, + { + "Culture": "en", + "Value": "Nunavut" + } + ] + }, + { + "Name": "on", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Ontario" + }, + { + "Culture": "en", + "Value": "Ontario" + } + ] + }, + { + "Name": "pei", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Île du Prince-Édouard " + }, + { + "Culture": "en", + "Value": "Prince Edward Island" + } + ] + }, + { + "Name": "qc", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Québec" + }, + { + "Culture": "en", + "Value": "Quebec" + } + ] + }, + { + "Name": "sk", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Saskatchewan" + }, + { + "Culture": "en", + "Value": "Saskatchewan" + } + ] + }, + { + "Name": "yt", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Yukon" + }, + { + "Culture": "en", + "Value": "Yukon" + } + ] + }, + { + "Name": "citizenship", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Are you a Canadian citizen? " + } + ] + }, + { + "Name": "citizenshipStatus", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "If not a Canadian citizen, provide your status: Permanent resident, work permit, student Visa, etc. Note: if you have a student Visa, it MUST allow you to work within Canada, proof of allowance and conditions of work will be required" + } + ] + }, + { + "Name": "language", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Are you bilingual (French, English)? Do you have a second language evaluation (SLE) score?" + } + ] + }, + { + "Name": "fieldsOfInterest", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "In order to ensure the best possible experience with the Government of Canada, knowing your field of interest will help us identify a potential opportunity for you. Please check off all the fields of expertise of interest to you: " + } + ] + }, + { + "Name": "health", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Health" + } + ] + }, + { + "Name": "adminData", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Administrative Data" + } + ] + }, + { + "Name": "economics", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Economics" + } + ] + }, + { + "Name": "energy", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Energy" + } + ] + }, + { + "Name": "sociology", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Sociology" + } + ] + }, + { + "Name": "demography", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Demography" + } + ] + }, + { + "Name": "classification", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Classification" + } + ] + }, + { + "Name": "tourism", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Tourism" + } + ] + }, + { + "Name": "geospatial", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Geospatial" + } + ] + }, + { + "Name": "bigData", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Big Data" + } + ] + }, + { + "Name": "modelling", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Modelling" + } + ] + }, + { + "Name": "databaseEfficiencies", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Database Efficiencies" + } + ] + }, + { + "Name": "censusData", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Census Data" + } + ] + }, + { + "Name": "agriculture", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Agriculture" + } + ] + }, + { + "Name": "financialData", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Financial Data " + } + ] + }, + { + "Name": "recordLinkage", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Record Linkage" + } + ] + }, + { + "Name": "enterpriseData", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Enterprise Data" + } + ] + }, + { + "Name": "businessAnalysis", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Business analysis" + } + ] + }, + { + "Name": "wcag", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation" + }, + { + "Culture": "en", + "Value": "Web development with expertise in accessibility (WCAG)" + } + ] + }, + { + "Name": "libraryInformationScience", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Library and information science" + } + ] + }, + { + "Name": "econometrics", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Econometrics" + } + ] + }, + { + "Name": "priceIndexTheory", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Price index theory" + } + ] + }, + { + "Name": "statistics", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Statistics" + } + ] + }, + { + "Name": "other", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Other, please specify" + } + ] + }, + { + "Name": "programmingLanguages", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Please rate on a scale to 0 (no experience) to 5 (fully proficient) all the programming languages you have experience with whether it was through class studies, an academic project or work experience. " + } + ] + }, + { + "Name": "fieldsOfExpertise", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Please check off all the fields of expertise you have applied through an academic project or work experience. " + } + ] + }, + { + "Name": "dataAnalysis", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Data Analysis" + } + ] + }, + { + "Name": "dataProcessing", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Data Processing" + } + ] + }, + { + "Name": "dataVisualization", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Data visualization" + } + ] + }, + { + "Name": "webScraping", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Web scraping" + } + ] + }, + { + "Name": "textAnalytics", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Text analytics / NLP" + } + ] + }, + { + "Name": "classificationAlgorithm", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Classification Algorithm" + } + ] + }, + { + "Name": "cloudArchitecture", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Cloud architecture" + } + ] + }, + { + "Name": "geospatialAnalytics", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Geospatial Analytics" + } + ] + }, + { + "Name": "bootstrapping", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Bootstrapping" + } + ] + }, + { + "Name": "machineLearning", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Machine Learning" + } + ] + }, + { + "Name": "softwareDevelopment", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Software Development" + } + ] + }, + { + "Name": "webDevelopment", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Web Development" + } + ] + }, + { + "Name": "aIDevelopment", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "AI Development" + } + ] + }, + { + "Name": "dataEngineering", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Data Engineering" + } + ] + }, + { + "Name": "dataMining", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Data Mining" + } + ] + }, + { + "Name": "sql", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "SQL" + }, + { + "Culture": "en", + "Value": "SQL" + } + ] + }, + { + "Name": "sas", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "SAS" + }, + { + "Culture": "en", + "Value": "SAS" + } + ] + }, + { + "Name": "r", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "R" + }, + { + "Culture": "en", + "Value": "R" + } + ] + }, + { + "Name": "python", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Python" + }, + { + "Culture": "en", + "Value": "Python" + } + ] + }, + { + "Name": "java", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Java" + }, + { + "Culture": "en", + "Value": "Java" + } + ] + }, + { + "Name": "perl", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Perl" + }, + { + "Culture": "en", + "Value": "Perl" + } + ] + }, + { + "Name": "scala", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Scala" + }, + { + "Culture": "en", + "Value": "Scala" + } + ] + }, + { + "Name": "julia", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Julia" + }, + { + "Culture": "en", + "Value": "Julia" + } + ] + }, + { + "Name": "matlab", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "MATLAB" + }, + { + "Culture": "en", + "Value": "MATLAB" + } + ] + }, + { + "Name": "stata", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "STATA" + }, + { + "Culture": "en", + "Value": "STATA" + } + ] + }, + { + "Name": "powerBi", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Power BI (M, DAX, ...)" + }, + { + "Culture": "en", + "Value": "Power BI (M, DAX, ...)" + } + ] + }, + { + "Name": "qgis", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "QGIS" + }, + { + "Culture": "en", + "Value": "QGIS" + } + ] + }, + { + "Name": "arcgis", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "ArcGIS" + }, + { + "Culture": "en", + "Value": "ArcGIS" + } + ] + }, + { + "Name": "grass", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Grass" + }, + { + "Culture": "en", + "Value": "Grass" + } + ] + }, + { + "Name": "cPlusPlus", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "C++" + }, + { + "Culture": "en", + "Value": "C++" + } + ] + }, + { + "Name": "cSharp", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "C#" + }, + { + "Culture": "en", + "Value": "C#" + } + ] + }, + { + "Name": "javascript", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Javascript" + }, + { + "Culture": "en", + "Value": "Javascript" + } + ] + }, + { + "Name": "html", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "HTML" + }, + { + "Culture": "en", + "Value": "HTML" + } + ] + }, + { + "Name": "css", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "CSS" + }, + { + "Culture": "en", + "Value": "CSS" + } + ] + }, + { + "Name": "publicProfilesLink", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Please provide us with a link to a professional public profile (e.g. LinkedIn, GCCollab)." + } + ] + }, + { + "Name": "gitHubLink", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Please provide us with a link to your GitHub account" + } + ] + }, + { + "Name": "experience", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "In approximately 200 words, please provide a brief description of one or two projects you may have worked in as part of your school work, as part of a job, or elsewhere that demonstrates your knowledge and usage of the software's and methods outlined above. To help you with the structure of this answer, please ensure to:\n\nDescribe the problem you had to solve. Specify the data set(s) you used. Specify the programming language or any other applications you had to use. Describe the strategies and techniques you employed. Provide the results of the project" + } + ] + }, + { + "Name": "cv", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Please upload your curriculum vitae (CV)/resume.\nDisclaimer: if you choose to upload your CV, your personal information and experience will be shared with potential hiring managers within Statistics Canada and partnering federal departments." + } + ] + }, + { + "Name": "submitLabel", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Envoyer" + }, + { + "Culture": "en", + "Value": "Send" + } + ] + }, + { + "Name": "successMessage", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "The form has been submitted." + } + ] + }, + { + "Name": "serverValidationError", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Une erreure est survenue." + }, + { + "Culture": "en", + "Value": "An error occured." + } + ] + }, + { + "Name": "fieldValidation", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "This field is required." + } + ] + } + ] + } + } + + ] + } + ] + } \ No newline at end of file From 75aec7cc138f7f77a840289dc3acffad6588bebe Mon Sep 17 00:00:00 2001 From: R Axalan Date: Thu, 20 Jan 2022 09:43:41 -0500 Subject: [PATCH 2/4] adds validation and response page --- .../HackathonMigrations.cs | 226 ++++++++++++++++++ .../Recipes/SkillsInterestForm.recipe.json | 185 ++++++++++++-- .../Views/Widget-SkillsInterest.liquid | 95 ++++++++ 3 files changed, 491 insertions(+), 15 deletions(-) create mode 100644 src/Modules/StatCan.OrchardCore.Hackathon/Views/Widget-SkillsInterest.liquid diff --git a/src/Modules/StatCan.OrchardCore.Hackathon/HackathonMigrations.cs b/src/Modules/StatCan.OrchardCore.Hackathon/HackathonMigrations.cs index b8876487e..ef95e88f3 100644 --- a/src/Modules/StatCan.OrchardCore.Hackathon/HackathonMigrations.cs +++ b/src/Modules/StatCan.OrchardCore.Hackathon/HackathonMigrations.cs @@ -27,6 +27,7 @@ public async Task CreateAsync() CreateUserProfiles(); CreateWidgets(); CreateChallenge(); + CreateSkillsInterestForm(); await _recipeMigrator.ExecuteAsync("queries.recipe.json", this); await _recipeMigrator.ExecuteAsync("roles.recipe.json", this); @@ -104,5 +105,230 @@ private void CreateChallenge() .WithMarkdownBody("2") ); } + + private void CreateSkillsInterestForm() { + _contentDefinitionManager.AlterTypeDefinition("SkillsInterest", type => type + .DisplayedAs("SkillsInterest") + .Listable() + .Stereotype("Widget") + .WithPart("SkillsInterest", part => part + .WithPosition("0") + ) + ); + + _contentDefinitionManager.AlterPartDefinition("SkillsInterest", part => part + .WithField("Consent", field => field + .OfType("TextField") + .WithDisplayName("Consent") + .WithPosition("0") + ) + .WithField("DegreesCompleted", field => field + .OfType("TextField") + .WithDisplayName("DegreesCompleted") + .WithPosition("2") + ) + .WithField("PhoneNumber", field => field + .OfType("TextField") + .WithDisplayName("PhoneNumber") + .WithPosition("3") + ) + .WithField("GcJobInterest", field => field + .OfType("TextField") + .WithDisplayName("GcJobInterest") + .WithPosition("4") + ) + .WithField("JobType", field => field + .OfType("TextField") + .WithDisplayName("JobType") + .WithPosition("5") + ) + .WithField("Coop", field => field + .OfType("TextField") + .WithDisplayName("Coop") + .WithPosition("6") + ) + .WithField("Fswep", field => field + .OfType("TextField") + .WithDisplayName("Fswep") + .WithPosition("7") + ) + .WithField("Location", field => field + .OfType("TextField") + .WithDisplayName("Location") + .WithPosition("8") + ) + .WithField("Citizenship", field => field + .OfType("TextField") + .WithDisplayName("Citizenship") + .WithPosition("9") + ) + .WithField("CitizenshipStatus", field => field + .OfType("TextField") + .WithDisplayName("CitizenshipStatus") + .WithPosition("10") + ) + .WithField("FieldsOfInterest", field => field + .OfType("TextField") + .WithDisplayName("FieldsOfInterest") + .WithPosition("11") + ) + .WithField("OtherFieldsOfInterest", field => field + .OfType("TextField") + .WithDisplayName("OtherFieldsOfInterest") + .WithPosition("12") + ) + .WithField("OtherInterest", field => field + .OfType("TextField") + .WithDisplayName("OtherInterest") + .WithPosition("13") + ) + .WithField("FieldsOfExpertise", field => field + .OfType("TextField") + .WithDisplayName("FieldsOfExpertise") + .WithPosition("14") + ) + .WithField("OtherFieldsOfExpertise", field => field + .OfType("TextField") + .WithDisplayName("OtherFieldsOfExpertise") + .WithPosition("15") + ) + .WithField("OtherExpertise", field => field + .OfType("TextField") + .WithDisplayName("OtherExpertise") + .WithPosition("16") + ) + .WithField("Sql", field => field + .OfType("NumericField") + .WithDisplayName("Sql") + .WithPosition("17") + ) + .WithField("Sas", field => field + .OfType("NumericField") + .WithDisplayName("Sas") + .WithPosition("18") + ) + .WithField("R", field => field + .OfType("NumericField") + .WithDisplayName("R") + .WithPosition("19") + ) + .WithField("Python", field => field + .OfType("NumericField") + .WithDisplayName("Python") + .WithPosition("20") + ) + .WithField("Java", field => field + .OfType("NumericField") + .WithDisplayName("Java") + .WithPosition("21") + ) + .WithField("Perl", field => field + .OfType("NumericField") + .WithDisplayName("Perl") + .WithPosition("22") + ) + .WithField("Scala", field => field + .OfType("NumericField") + .WithDisplayName("Scala") + .WithPosition("23") + ) + .WithField("Julia", field => field + .OfType("NumericField") + .WithDisplayName("Julia") + .WithPosition("24") + ) + .WithField("Matlab", field => field + .OfType("NumericField") + .WithDisplayName("Matlab") + .WithPosition("25") + ) + .WithField("Stata", field => field + .OfType("NumericField") + .WithDisplayName("Stata") + .WithPosition("26") + ) + .WithField("PowerBi", field => field + .OfType("NumericField") + .WithDisplayName("PowerBi") + .WithPosition("27") + ) + .WithField("Qgis", field => field + .OfType("NumericField") + .WithDisplayName("Qgis") + .WithPosition("28") + ) + .WithField("Argis", field => field + .OfType("NumericField") + .WithDisplayName("Arcgis") + .WithPosition("29") + ) + .WithField("Grass", field => field + .OfType("NumericField") + .WithDisplayName("Grass") + .WithPosition("30") + ) + .WithField("CPlusPlus", field => field + .OfType("NumericField") + .WithDisplayName("CPlusPlus") + .WithPosition("31") + ) + .WithField("CSharp", field => field + .OfType("NumericField") + .WithDisplayName("CSharp") + .WithPosition("32") + ) + .WithField("Javascript", field => field + .OfType("NumericField") + .WithDisplayName("Javascript") + .WithPosition("33") + ) + .WithField("Html", field => field + .OfType("NumericField") + .WithDisplayName("Html") + .WithPosition("34") + ) + .WithField("Css", field => field + .OfType("NumericField") + .WithDisplayName("Css") + .WithPosition("35") + ) + .WithField("OtherLanguage", field => field + .OfType("TextField") + .WithDisplayName("OtherLanguage") + .WithPosition("36") + ) + .WithField("OtherLanguageRating", field => field + .OfType("NumericField") + .WithDisplayName("OtherLanguageRating") + .WithPosition("37") + ) + .WithField("PublicProfilesLink", field => field + .OfType("TextField") + .WithDisplayName("PublicProfilesLink") + .WithPosition("38") + ) + .WithField("GitHubLink", field => field + .OfType("TextField") + .WithDisplayName("GitHubLink") + .WithPosition("39") + ) + .WithField("Experience", field => field + .OfType("TextField") + .WithDisplayName("Experience") + .WithPosition("40") + ) + .WithField("Cv", field => field + .OfType("TextField") + .WithDisplayName("Cv") + .WithEditor("TextArea") + .WithPosition("41") + ) + .WithField("Language", field => field + .OfType("TextField") + .WithDisplayName("Language") + .WithPosition("1") + ) + ); + } } } diff --git a/src/Modules/StatCan.OrchardCore.Hackathon/Recipes/SkillsInterestForm.recipe.json b/src/Modules/StatCan.OrchardCore.Hackathon/Recipes/SkillsInterestForm.recipe.json index 1d65c84c5..efc784c67 100644 --- a/src/Modules/StatCan.OrchardCore.Hackathon/Recipes/SkillsInterestForm.recipe.json +++ b/src/Modules/StatCan.OrchardCore.Hackathon/Recipes/SkillsInterestForm.recipe.json @@ -22,13 +22,13 @@ "data": [ { "ContentItemId": "47t60791n0tng20t6sfz8xwgd1", - "ContentItemVersionId": "43m0w3p9js1q1w4rgh9qkcw7cv", + "ContentItemVersionId": "4fced439cvksz7x86qzwbvv94x", "ContentType": "VueForm", "DisplayText": "Part2 - Skills and Interest Form", "Latest": true, "Published": true, - "ModifiedUtc": "2022-01-12T14:59:08.521123Z", - "PublishedUtc": "2022-01-12T14:59:08.550386Z", + "ModifiedUtc": "2022-01-20T14:32:12.58184Z", + "PublishedUtc": "2022-01-20T14:32:12.609741Z", "CreatedUtc": "2021-12-15T19:10:55.483939Z", "Owner": "[js: parameters('AdminUserId')]", "Author": "[js: parameters('AdminUsername')]", @@ -37,7 +37,7 @@ }, "VueForm": { "Template": { - "Text": "\r\n \r\n \r\n \r\n {{\"consent\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"degreesCompleted\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"phoneNumber\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n {{\"gcJobInterest\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"jobType\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"coop\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"fswep\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n {{\"location\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"citizenship\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"citizenshipStatus\" | localize}}\r\n !!v || '{{\"fieldValidation\" | localize}}']\">\r\n\r\n \r\n \r\n \r\n {{\"language\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n {{\"fieldsOfInterest\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n !!v || '{{\"fieldValidation\" | localize}}']\" :disabled=\"!otherFieldsOfInterest\">\r\n\r\n \r\n \r\n {{\"fieldsOfExpertise\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n !!v || '{{\"fieldValidation\" | localize}}']\" :disabled=\"!otherFieldsOfExpertise\">\r\n \r\n \r\n \r\n {{\"programmingLanguages\" | localize}} \r\n \r\n \r\n {{\"sql\" | localize}}\r\n \r\n \r\n \r\n {{\"sas\" | localize}}\r\n \r\n \r\n \r\n {{\"r\" | localize}}\r\n \r\n \r\n \r\n {{\"python\" | localize}}\r\n \r\n \r\n \r\n {{\"java\" | localize}}\r\n \r\n \r\n \r\n {{\"perl\" | localize}}\r\n \r\n \r\n \r\n {{\"scala\" | localize}}\r\n \r\n \r\n \r\n {{\"julia\" | localize}}\r\n \r\n \r\n \r\n {{\"matlab\" | localize}}\r\n \r\n \r\n \r\n {{\"stata\" | localize}}\r\n \r\n \r\n \r\n {{\"powerBi\" | localize}}\r\n \r\n \r\n \r\n {{\"qgis\" | localize}}\r\n \r\n \r\n \r\n {{\"arcgis\" | localize}}\r\n \r\n \r\n \r\n {{\"grass\" | localize}}\r\n \r\n \r\n \r\n {{\"cPlusPlus\" | localize}}\r\n \r\n \r\n \r\n {{\"cSharp\" | localize}}\r\n \r\n \r\n \r\n {{\"javascript\" | localize}}\r\n \r\n \r\n \r\n {{\"html\" | localize}}\r\n \r\n \r\n \r\n {{\"css\" | localize}}\r\n \r\n \r\n \r\n {{\"other\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"publicProfilesLink\" | localize}}\r\n \r\n \r\n \r\n {{\"gitHubLink\" | localize}}\r\n \r\n \r\n \r\n {{\"experience\" | localize}}\r\n \r\n \r\n {{\"cv\" | localize}}\r\n \r\n \r\n \r\n \r\n {% raw %}{{ form.successMessage }}{% endraw %}\r\n \r\n \r\n {% raw %}{{ form.serverValidationMessage[0] }}{% endraw %}\r\n \r\n \r\n \r\n \t{{ \"submitLabel\" | localize }}\r\n \r\n \r\n \r\n" + "Text": "\r\n \r\n \r\n \r\n \r\n {{\"consent\" | localize}}\r\n \r\n \r\n \r\n {{\"degreesCompleted\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"phoneNumber\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n {{\"gcJobInterest\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"jobType\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"coop\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"fswep\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"location\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"citizenship\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n {{\"citizenshipStatus\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"language\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"fieldsOfInterest\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n !!v || '{{\"fieldValidation\" | localize}}']\" :disabled=\"!otherFieldsOfInterest\">\r\n \r\n \r\n {{\"fieldsOfExpertise\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n !!v || '{{\"fieldValidation\" | localize}}']\" :disabled=\"!otherFieldsOfExpertise\">\r\n \r\n \r\n {{\"programmingLanguages\" | localize}} \r\n \r\n \r\n {{\"sql\" | localize}}\r\n \r\n \r\n \r\n {{\"sas\" | localize}}\r\n \r\n \r\n \r\n {{\"r\" | localize}}\r\n \r\n \r\n \r\n {{\"python\" | localize}}\r\n \r\n \r\n \r\n {{\"java\" | localize}}\r\n \r\n \r\n \r\n {{\"perl\" | localize}}\r\n \r\n \r\n \r\n {{\"scala\" | localize}}\r\n \r\n \r\n \r\n {{\"julia\" | localize}}\r\n \r\n \r\n \r\n {{\"matlab\" | localize}}\r\n \r\n \r\n \r\n {{\"stata\" | localize}}\r\n \r\n \r\n \r\n {{\"powerBi\" | localize}}\r\n \r\n \r\n \r\n {{\"qgis\" | localize}}\r\n \r\n \r\n \r\n {{\"arcgis\" | localize}}\r\n \r\n \r\n \r\n {{\"grass\" | localize}}\r\n \r\n \r\n \r\n {{\"cPlusPlus\" | localize}}\r\n \r\n \r\n \r\n {{\"cSharp\" | localize}}\r\n \r\n \r\n \r\n {{\"javascript\" | localize}}\r\n \r\n \r\n \r\n {{\"html\" | localize}}\r\n \r\n \r\n \r\n {{\"css\" | localize}}\r\n \r\n \r\n \r\n {{\"other\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"publicProfilesLink\" | localize}}\r\n \r\n \r\n \r\n {{\"gitHubLink\" | localize}}\r\n \r\n \r\n \r\n {{\"experience\" | localize}}\r\n \r\n \r\n \r\n {{\"cv\" | localize}}\r\n \r\n \r\n \r\n \r\n {% raw %}{{ form.successMessage }}{% endraw %}\r\n \r\n \r\n {% raw %}{{ form.serverValidationMessage[0] }}{% endraw %}\r\n \r\n \r\n \r\n \t [locale en]Register[/locale][locale fr]S'enregistrer[/locale]\r\n \r\n \r\n \r\n \r\n" }, "RenderAs": { "Text": null @@ -63,13 +63,13 @@ "Text": null }, "ComponentOptions": { - "Text": "{\r\n data: () => ({\r\n consent: \"\",\r\n\tdegreesCompleted: \"\",\r\n phoneNumber: \"\",\r\n gcJobInterest:\"\",\r\n jobType:\"\",\r\n coop:\"\",\r\n fswep:\"\",\r\n location:\"\",\r\n citizenship:\"\",\r\n citizenshipStatus:\"\",\r\n fieldsOfInterest:[],\r\n otherFieldsOfInterest:\"\",\r\n otherInterest:\"\",\r\n fieldsOfExpertise:[],\r\n otherFieldsOfExpertise:\"\",\r\n otherExpertise:\"\",\r\n sql:\"\",\r\n sas:\"\",\r\n r:\"\",\r\n python:\"\",\r\n java:\"\",\r\n perl:\"\",\r\n scala:\"\",\r\n julia:\"\",\r\n matlab:\"\",\r\n stata:\"\",\r\n powerBi:\"\",\r\n qgis:\"\",\r\n arcgis:\"\",\r\n grass:\"\",\r\n cPlusPlus:\"\",\r\n cSharp:\"\",\r\n javascript:\"\",\r\n html:\"\",\r\n css:\"\",\r\n otherLanguage:\"\",\r\n otherLanguageRating:\"\",\r\n publicProfilesLink:\"\",\r\n gitHubLink:\"\",\r\n experience:\"\",\r\n\r\n })\r\n}" + "Text": "{\r\n data: () => ({\r\n consent: \"\",\r\n\tdegreesCompleted: \"\",\r\n phoneNumber: \"\",\r\n gcJobInterest:\"\",\r\n jobType:\"\",\r\n coop:\"\",\r\n fswep:\"\",\r\n language:\"\",\r\n location:\"\",\r\n citizenship:\"\",\r\n citizenshipStatus:\"\",\r\n fieldsOfInterest:[],\r\n otherFieldsOfInterest:\"\",\r\n otherInterest:\"\",\r\n fieldsOfExpertise:[],\r\n otherFieldsOfExpertise:\"\",\r\n otherExpertise:\"\",\r\n sql:\"\",\r\n sas:\"\",\r\n r:\"\",\r\n python:\"\",\r\n java:\"\",\r\n perl:\"\",\r\n scala:\"\",\r\n julia:\"\",\r\n matlab:\"\",\r\n stata:\"\",\r\n powerBi:\"\",\r\n qgis:\"\",\r\n arcgis:\"\",\r\n grass:\"\",\r\n cPlusPlus:\"\",\r\n cSharp:\"\",\r\n javascript:\"\",\r\n html:\"\",\r\n css:\"\",\r\n otherLanguage:\"\",\r\n otherLanguageRating:\"\",\r\n publicProfilesLink:\"\",\r\n gitHubLink:\"\",\r\n experience:\"\",\r\n cv:\"\",\r\n })\r\n}" }, "OnValidation": { - "Text": "var data = requestFormAsJsonObject();\r\nvar localizedText = getLocalizedTextValues(getFormContentItem());\r\n\r\nif(data.otherFieldsOfInterest == \"other\" && data.otherInterest == \"\" || \r\n data.otherFieldsOfExpertise == \"other\" && data.otherExpertise == \"\" || \r\n data.citizenship == \"no\" && data.citizenshipStatus == \"\" ) \r\n {\r\n addError('serverValidationMessage', localizedText.serverValidationError);\r\n }" + "Text": "var data = requestFormAsJsonObject();\r\nvar localizedText = getLocalizedTextValues(getFormContentItem());\r\n\r\nif(data.otherFieldsOfInterest == \"other\" && data.otherInterest == \"\" || \r\n data.otherFieldsOfExpertise == \"other\" && data.otherExpertise == \"\" || \r\n data.citizenship == \"no\" && data.citizenshipStatus == \"\" ) \r\n {\r\n addError('serverValidationMessage', localizedText.serverValidationError);\r\n } else if(data.degreesCompleted == \"\") {\r\n addError(\"serverValidationMessage\", localizedText.degreesCompletedValidation); \r\n} else if(data.gcJobInterest == \"\") {\r\n addError(\"serverValidationMessage\", localizedText.gcJobInterestValidation); \r\n} else if(data.jobType == \"\") {\r\n addError(\"serverValidationMessage\", localizedText.jobTypeValidation); \r\n} else if(data.coop == \"\") {\r\n addError(\"serverValidationMessage\", localizedText.coopValidation); \r\n} else if(data.fswep == \"\") {\r\n addError(\"serverValidationMessage\", localizedText.fswepValidation); \r\n} else if(data.location == \"\") {\r\n addError(\"serverValidationMessage\", localizedText.locationValidation); \r\n} else if(data.citizenship == \"\") {\r\n addError(\"serverValidationMessage\", localizedText.citizenshipValidation); \r\n} else if(data.language == \"\") {\r\n addError(\"serverValidationMessage\", localizedText.languageValidation); \r\n} else if(\r\n data.sql == \"\" || \r\n data.sas == \"\" || \r\n data.r == \"\" || \r\n data.python == \"\" || \r\n data.java == \"\" || \r\n data.perl == \"\" || \r\n data.scala == \"\" || \r\n data.julia == \"\" || \r\n data.matlab == \"\" || \r\n data.stata == \"\" || \r\n data.powerBi == \"\" || \r\n data.qgis == \"\" || \r\n data.arcgis == \"\" || \r\n data.grass == \"\" || \r\n data.cPlusPlus == \"\" || \r\n data.cSharp == \"\" || \r\n data.javascript == \"\" || \r\n data.html == \"\" || \r\n data.css == \"\" ) {\r\n addError(\"serverValidationMessage\", localizedText.programmingLanguagesValidation); \r\n} else if(data.experience == \"\") {\r\n addError(\"serverValidationMessage\", localizedText.experienceValidation); \r\n} else if(data.otherLanguage != \"\" & data.otherLanguageRating == \"\") {\r\n addError(\"serverValidationMessage\", localizedText.otherLanguageRatingValidation); \r\n}\r\n\r\nif(hasErrors()) \r\n{\r\n return; \r\n}\r\n" }, "OnSubmitted": { - "Text": "var data = requestFormAsJsonObject();\r\n\r\nvar item = createContentItem(\"SkillsInterest\", true, {\r\n \"SkillsInterest\": {\r\n \"Consent\": {\r\n \"Text\": data.consent\r\n },\r\n \"DegreesCompleted\": {\r\n \"Text\": data.degreesCompleted\r\n },\r\n \"PhoneNumber\": {\r\n \"Text\": data.phoneNumber\r\n },\r\n \"GcJobInterest\": {\r\n \"Text\": data.gcJobInterest\r\n },\r\n \"JobType\": {\r\n \"Text\": data.jobType\r\n },\r\n \"Coop\": {\r\n \"Text\": data.coop\r\n },\r\n \"Fswep\": {\r\n \"Text\": data.fswep\r\n },\r\n \"Location\": {\r\n \"Text\": data.location\r\n },\r\n \"Citizenship\": {\r\n \"Text\": data.citizenship\r\n },\r\n \"CitizenshipStatus\": {\r\n \"Text\": data.citizenshipStatus\r\n },\r\n \"FieldsOfInterest\": {\r\n \"Text\": [data.fieldsOfInterest]\r\n },\r\n \"OtherFieldsOfInterest\": {\r\n \"Text\": data.otherFieldsOfInterest\r\n },\r\n \"OtherInterest\": {\r\n \"Text\": data.otherInterest\r\n },\r\n \"FieldsOfExpertise\": {\r\n \"Text\": [data.fieldsOfExpertise]\r\n },\r\n \"OtherFieldsOfExpertise\": {\r\n \"Text\": data.otherFieldsOfExpertise\r\n },\r\n \"OtherExpertise\": {\r\n \"Text\": data.otherExpertise\r\n },\r\n \"Sql\": {\r\n \"Value\": data.sql\r\n },\r\n \"Sas\": {\r\n \"Value\":data.sas\r\n },\r\n \"R\": {\r\n \"Value\":data.r\r\n },\r\n \"Python\": {\r\n \"Value\":data.python\r\n },\r\n \"Java\": {\r\n \"Value\":data.java\r\n },\r\n \"Perl\": {\r\n \"Value\":data.perl\r\n },\r\n \"Scala\": {\r\n \"Value\":data.scala\r\n },\r\n \"Julia\": {\r\n \"Value\":data.julia\r\n },\r\n \"Matlab\": {\r\n \"Value\":data.matlab\r\n },\r\n \"Stata\": {\r\n \"Value\":data.stata\r\n },\r\n \"PowerBi\": {\r\n \"Value\":data.powerBi\r\n },\r\n \"Qgis\": {\r\n \"Value\":data.qgis\r\n },\r\n \"Argis\": {\r\n \"Value\":data.argis\r\n },\r\n \"Grass\": {\r\n \"Value\":data.grass\r\n },\r\n \"CPlusPlus\": {\r\n \"Value\":data.cPlusPlus\r\n },\r\n \"CSharp\": {\r\n \"Value\":data.cSharp\r\n },\r\n \"Javascript\": {\r\n \"Value\":data.javascript\r\n },\r\n \"Html\": {\r\n \"Value\":data.html\r\n },\r\n \"Css\": {\r\n \"Value\":data.css\r\n },\r\n \"OtherLanguage\": {\r\n \"Text\": data.otherLanguage\r\n },\r\n \"OtherLanguageRating\": {\r\n \"Value\": data.otherLanguageRating\r\n },\r\n \"PublicProfilesLink\": {\r\n \"Text\": data.publicProfilesLink\r\n },\r\n \"GitHubLink\": {\r\n \"Text\": data.gitHubLink\r\n },\r\n \"Experience\": {\r\n \"Text\": data.experience\r\n }\r\n }\r\n}); \r\n" + "Text": "var data = requestFormAsJsonObject();\r\n\r\nvar updateSettingsResult = createContentItem(\"SkillsInterest\", true, {\r\n \"SkillsInterest\": {\r\n \"Consent\": {\r\n \"Text\": data.consent\r\n },\r\n \"DegreesCompleted\": {\r\n \"Text\": data.degreesCompleted\r\n },\r\n \"PhoneNumber\": {\r\n \"Text\": data.phoneNumber\r\n },\r\n \"GcJobInterest\": {\r\n \"Text\": data.gcJobInterest\r\n },\r\n \"JobType\": {\r\n \"Text\": data.jobType\r\n },\r\n \"Coop\": {\r\n \"Text\": data.coop\r\n },\r\n \"Fswep\": {\r\n \"Text\": data.fswep\r\n },\r\n \"Location\": {\r\n \"Text\": data.location\r\n },\r\n \"Citizenship\": {\r\n \"Text\": data.citizenship\r\n },\r\n \"CitizenshipStatus\": {\r\n \"Text\": data.citizenshipStatus\r\n },\r\n \"Language\": {\r\n \"Text\": data.language\r\n },\r\n \"FieldsOfInterest\": {\r\n \"Text\": [data.fieldsOfInterest].join()\r\n },\r\n \"OtherFieldsOfInterest\": {\r\n \"Text\": data.otherFieldsOfInterest\r\n },\r\n \"OtherInterest\": {\r\n \"Text\": data.otherInterest\r\n },\r\n \"FieldsOfExpertise\": {\r\n \"Text\": [data.fieldsOfExpertise].join()\r\n },\r\n \"OtherFieldsOfExpertise\": {\r\n \"Text\": data.otherFieldsOfExpertise\r\n },\r\n \"OtherExpertise\": {\r\n \"Text\": data.otherExpertise\r\n },\r\n \"Sql\": {\r\n \"Value\": data.sql\r\n },\r\n \"Sas\": {\r\n \"Value\":data.sas\r\n },\r\n \"R\": {\r\n \"Value\":data.r\r\n },\r\n \"Python\": {\r\n \"Value\":data.python\r\n },\r\n \"Java\": {\r\n \"Value\":data.java\r\n },\r\n \"Perl\": {\r\n \"Value\":data.perl\r\n },\r\n \"Scala\": {\r\n \"Value\":data.scala\r\n },\r\n \"Julia\": {\r\n \"Value\":data.julia\r\n },\r\n \"Matlab\": {\r\n \"Value\":data.matlab\r\n },\r\n \"Stata\": {\r\n \"Value\":data.stata\r\n },\r\n \"PowerBi\": {\r\n \"Value\":data.powerBi\r\n },\r\n \"Qgis\": {\r\n \"Value\":data.qgis\r\n },\r\n \"Arcgis\": {\r\n \"Value\":data.arcgis\r\n },\r\n \"Grass\": {\r\n \"Value\":data.grass\r\n },\r\n \"CPlusPlus\": {\r\n \"Value\":data.cPlusPlus\r\n },\r\n \"CSharp\": {\r\n \"Value\":data.cSharp\r\n },\r\n \"Javascript\": {\r\n \"Value\":data.javascript\r\n },\r\n \"Html\": {\r\n \"Value\":data.html\r\n },\r\n \"Css\": {\r\n \"Value\":data.css\r\n },\r\n \"OtherLanguage\": {\r\n \"Text\": data.otherLanguage\r\n },\r\n \"OtherLanguageRating\": {\r\n \"Value\": data.otherLanguageRating\r\n },\r\n \"PublicProfilesLink\": {\r\n \"Text\": data.publicProfilesLink\r\n },\r\n \"GitHubLink\": {\r\n \"Text\": data.gitHubLink\r\n },\r\n \"Experience\": {\r\n \"Text\": data.experience\r\n },\r\n \"Cv\": {\r\n \"Text\": data.cv\r\n }\r\n }\r\n}); \r\n\r\n" } }, "ContentPermissionsPart": { @@ -91,6 +91,19 @@ } ] }, + { + "Name": "consentAgree", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "I agree." + } + ] + }, { "Name": "yesLabel", "LocalizedItems": [ @@ -425,7 +438,7 @@ }, { "Culture": "en", - "Value": "If not a Canadian citizen, provide your status: Permanent resident, work permit, student Visa, etc. Note: if you have a student Visa, it MUST allow you to work within Canada, proof of allowance and conditions of work will be required" + "Value": "If not a Canadian citizen, provide your status: Permanent resident, work permit, student Visa, etc. Note: if you have a student Visa, it MUST allow you to work within Canada, proof of allowance and conditions of work will be required." } ] }, @@ -763,7 +776,7 @@ }, { "Culture": "en", - "Value": "Other, please specify" + "Value": "Other, please specify." } ] }, @@ -1257,7 +1270,7 @@ }, { "Culture": "en", - "Value": "Please provide us with a link to your GitHub account" + "Value": "Please provide us with a link to your GitHub account." } ] }, @@ -1270,7 +1283,7 @@ }, { "Culture": "en", - "Value": "In approximately 200 words, please provide a brief description of one or two projects you may have worked in as part of your school work, as part of a job, or elsewhere that demonstrates your knowledge and usage of the software's and methods outlined above. To help you with the structure of this answer, please ensure to:\n\nDescribe the problem you had to solve. Specify the data set(s) you used. Specify the programming language or any other applications you had to use. Describe the strategies and techniques you employed. Provide the results of the project" + "Value": "In approximately 200 words, please provide a brief description of one or two projects you may have worked in as part of your school work, as part of a job, or elsewhere that demonstrates your knowledge and usage of the software's and methods outlined above. To help you with the structure of this answer, please ensure to:\n\nDescribe the problem you had to solve. Specify the data set(s) you used. Specify the programming language or any other applications you had to use. Describe the strategies and techniques you employed. Provide the results of the project." } ] }, @@ -1338,12 +1351,154 @@ "Value": "This field is required." } ] + }, + { + "Name": "degreesCompletedValidation", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Please specify if you have completed any degrees or diplomas from a Canadian institution." + } + ] + }, + { + "Name": "gcJobInterestValidation", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Please specify whether or not you have an interest in a career in the public service." + } + ] + }, + { + "Name": "jobTypeValidation", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Please indicate whether you are available for a part-time or full-time position." + } + ] + }, + { + "Name": "coopValidation", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Please indicate whether or not you are enrolled in a Co-op program." + } + ] + }, + { + "Name": "fswepValidation", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Please indicate whether or not you have ever been employed through FSWEP." + } + ] + }, + { + "Name": "locationValidation", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Please indicate which province you are currently living in." + } + ] + }, + { + "Name": "citizenshipValidation", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Please indicate whether or not you are a Canadian citizen." + } + ] + }, + { + "Name": "languageValidation", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Please indicate whether or not you are bilingual and have a second language evaluation score." + } + ] + }, + { + "Name": "programmingLanguagesValidation", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "You have not entered a rating for one or more of the programming languages. Please try again." + } + ] + }, + { + "Name": "experienceValidation", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Please provide a brief description of one or two projects you have worked on in the past. " + } + ] + }, + { + "Name": "otherLanguageRatingValidation", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Please rate your experience with the programming language you entered." + } + ] } ] } } - - ] - } ] - } \ No newline at end of file + } + ] + } \ No newline at end of file diff --git a/src/Modules/StatCan.OrchardCore.Hackathon/Views/Widget-SkillsInterest.liquid b/src/Modules/StatCan.OrchardCore.Hackathon/Views/Widget-SkillsInterest.liquid new file mode 100644 index 000000000..e2be44b51 --- /dev/null +++ b/src/Modules/StatCan.OrchardCore.Hackathon/Views/Widget-SkillsInterest.liquid @@ -0,0 +1,95 @@ +{% assign interest = Model.ContentItem.Content.SkillsInterest.FieldsOfInterest.Text | remove: '"' |remove: '[' | remove: ']' %} +{% assign expertise = Model.ContentItem.Content.SkillsInterest.FieldsOfExpertise.Text | remove: '"' |remove: '[' | remove: ']' %} + + + + + + + HR Form (Part 2 -Skills and interests) + + + + Consent: + {{Model.ContentItem.Content.SkillsInterest.Consent.Text}} + Degrees Completed: + {{Model.ContentItem.Content.SkillsInterest.DegreesCompleted.Text}} + Phone Number: + {{Model.ContentItem.Content.SkillsInterest.PhoneNumber.Text}} + GC Job Interest: + {{Model.ContentItem.Content.SkillsInterest.GcJobInterest.Text}} + Job Type: + {{Model.ContentItem.Content.SkillsInterest.JobType.Text}} + Enrolled in a COOP program: + {{Model.ContentItem.Content.SkillsInterest.Coop.Text}} + FWSEP + {{Model.ContentItem.Content.SkillsInterest.Fswep.Text}} + Language + {{Model.ContentItem.Content.SkillsInterest.Language.Text}} + Fields of Interest + {{interest}} + Other Fields of interest + {{Model.ContentItem.Content.SkillsInterest.OtherInterest.Text}} + Fields of Expertise + {{expertise}} + Other Fields of Expertise + {{Model.ContentItem.Content.SkillsInterest.OtherExpertise.Text}} + SQL + {{Model.ContentItem.Content.SkillsInterest.Sql.Value}} + SAS + {{Model.ContentItem.Content.SkillsInterest.Sas.Value}} + R + {{Model.ContentItem.Content.SkillsInterest.R.Value}} + Python + {{Model.ContentItem.Content.SkillsInterest.Python.Value}} + Java + {{Model.ContentItem.Content.SkillsInterest.Java.Value}} + Perl + {{Model.ContentItem.Content.SkillsInterest.Perl.Value}} + Scala + {{Model.ContentItem.Content.SkillsInterest.Scala.Value}} + Julia + {{Model.ContentItem.Content.SkillsInterest.Julia.Value}} + MATLAB + {{Model.ContentItem.Content.SkillsInterest.Matlab.Value}} + STATA + {{Model.ContentItem.Content.SkillsInterest.Stata.Value}} + Power BI (M, DAX, ...) + {{Model.ContentItem.Content.SkillsInterest.PowerBi.Value}} + QGIS + {{Model.ContentItem.Content.SkillsInterest.Qgis.Value}} + ArcGIS + {{Model.ContentItem.Content.SkillsInterest.Arcgis.Value}} + Grass + {{Model.ContentItem.Content.SkillsInterest.Grass.Value}} + C++ + {{Model.ContentItem.Content.SkillsInterest.CPlusPlus.Value}} + CSharp + {{Model.ContentItem.Content.SkillsInterest.CSharp.Value}} + JavaScript + {{Model.ContentItem.Content.SkillsInterest.Javascript.Value}} + HTML + {{Model.ContentItem.Content.SkillsInterest.Html.Value}} + CSS + {{Model.ContentItem.Content.SkillsInterest.Css.Value}} + Other Language + {{Model.ContentItem.Content.SkillsInterest.OtherLanguage.Text}} + Other Language Rating + {{Model.ContentItem.Content.SkillsInterest.OtherLanguageRating.Value}} + Link to public profiles + {{Model.ContentItem.Content.SkillsInterest.PublicProfilesLink.Text}} + Link to GitHub Account + {{Model.ContentItem.Content.SkillsInterest.GitHubLink.Text}} + Experience + {{Model.ContentItem.Content.SkillsInterest.Experience.Text}} + CV + + + + + + + + + + \ No newline at end of file From b6f877e0688e0110dd51d0644b77f25631222b89 Mon Sep 17 00:00:00 2001 From: R Axalan Date: Wed, 9 Feb 2022 14:27:04 -0500 Subject: [PATCH 3/4] WIP Adds Hired and HiredBy fields --- .../HackathonMigrations.cs | 99 +- .../Recipes/SkillsInterestForm.recipe.json | 2979 ++++++++--------- .../Views/Widget-SkillsInterest.liquid | 11 +- 3 files changed, 1553 insertions(+), 1536 deletions(-) diff --git a/src/Modules/StatCan.OrchardCore.Hackathon/HackathonMigrations.cs b/src/Modules/StatCan.OrchardCore.Hackathon/HackathonMigrations.cs index ef95e88f3..4788007ac 100644 --- a/src/Modules/StatCan.OrchardCore.Hackathon/HackathonMigrations.cs +++ b/src/Modules/StatCan.OrchardCore.Hackathon/HackathonMigrations.cs @@ -106,7 +106,8 @@ private void CreateChallenge() ); } - private void CreateSkillsInterestForm() { + private void CreateSkillsInterestForm() + { _contentDefinitionManager.AlterTypeDefinition("SkillsInterest", type => type .DisplayedAs("SkillsInterest") .Listable() @@ -125,210 +126,226 @@ private void CreateSkillsInterestForm() { .WithField("DegreesCompleted", field => field .OfType("TextField") .WithDisplayName("DegreesCompleted") - .WithPosition("2") + .WithPosition("4") ) .WithField("PhoneNumber", field => field .OfType("TextField") .WithDisplayName("PhoneNumber") - .WithPosition("3") + .WithPosition("5") ) .WithField("GcJobInterest", field => field .OfType("TextField") .WithDisplayName("GcJobInterest") - .WithPosition("4") + .WithPosition("6") ) .WithField("JobType", field => field .OfType("TextField") .WithDisplayName("JobType") - .WithPosition("5") + .WithPosition("7") ) .WithField("Coop", field => field .OfType("TextField") .WithDisplayName("Coop") - .WithPosition("6") + .WithPosition("8") ) .WithField("Fswep", field => field .OfType("TextField") .WithDisplayName("Fswep") - .WithPosition("7") + .WithPosition("9") ) .WithField("Location", field => field .OfType("TextField") .WithDisplayName("Location") - .WithPosition("8") + .WithPosition("10") ) .WithField("Citizenship", field => field .OfType("TextField") .WithDisplayName("Citizenship") - .WithPosition("9") + .WithPosition("11") ) .WithField("CitizenshipStatus", field => field .OfType("TextField") .WithDisplayName("CitizenshipStatus") - .WithPosition("10") + .WithPosition("12") ) .WithField("FieldsOfInterest", field => field .OfType("TextField") .WithDisplayName("FieldsOfInterest") - .WithPosition("11") + .WithPosition("13") ) .WithField("OtherFieldsOfInterest", field => field .OfType("TextField") .WithDisplayName("OtherFieldsOfInterest") - .WithPosition("12") + .WithPosition("14") ) .WithField("OtherInterest", field => field .OfType("TextField") .WithDisplayName("OtherInterest") - .WithPosition("13") + .WithPosition("15") ) .WithField("FieldsOfExpertise", field => field .OfType("TextField") .WithDisplayName("FieldsOfExpertise") - .WithPosition("14") + .WithPosition("16") ) .WithField("OtherFieldsOfExpertise", field => field .OfType("TextField") .WithDisplayName("OtherFieldsOfExpertise") - .WithPosition("15") + .WithPosition("17") ) .WithField("OtherExpertise", field => field .OfType("TextField") .WithDisplayName("OtherExpertise") - .WithPosition("16") + .WithPosition("18") ) .WithField("Sql", field => field .OfType("NumericField") .WithDisplayName("Sql") - .WithPosition("17") + .WithPosition("19") ) .WithField("Sas", field => field .OfType("NumericField") .WithDisplayName("Sas") - .WithPosition("18") + .WithPosition("20") ) .WithField("R", field => field .OfType("NumericField") .WithDisplayName("R") - .WithPosition("19") + .WithPosition("21") ) .WithField("Python", field => field .OfType("NumericField") .WithDisplayName("Python") - .WithPosition("20") + .WithPosition("22") ) .WithField("Java", field => field .OfType("NumericField") .WithDisplayName("Java") - .WithPosition("21") + .WithPosition("23") ) .WithField("Perl", field => field .OfType("NumericField") .WithDisplayName("Perl") - .WithPosition("22") + .WithPosition("24") ) .WithField("Scala", field => field .OfType("NumericField") .WithDisplayName("Scala") - .WithPosition("23") + .WithPosition("25") ) .WithField("Julia", field => field .OfType("NumericField") .WithDisplayName("Julia") - .WithPosition("24") + .WithPosition("26") ) .WithField("Matlab", field => field .OfType("NumericField") .WithDisplayName("Matlab") - .WithPosition("25") + .WithPosition("27") ) .WithField("Stata", field => field .OfType("NumericField") .WithDisplayName("Stata") - .WithPosition("26") + .WithPosition("28") ) .WithField("PowerBi", field => field .OfType("NumericField") .WithDisplayName("PowerBi") - .WithPosition("27") + .WithPosition("29") ) .WithField("Qgis", field => field .OfType("NumericField") .WithDisplayName("Qgis") - .WithPosition("28") + .WithPosition("30") ) .WithField("Argis", field => field .OfType("NumericField") .WithDisplayName("Arcgis") - .WithPosition("29") + .WithPosition("31") ) .WithField("Grass", field => field .OfType("NumericField") .WithDisplayName("Grass") - .WithPosition("30") + .WithPosition("32") ) .WithField("CPlusPlus", field => field .OfType("NumericField") .WithDisplayName("CPlusPlus") - .WithPosition("31") + .WithPosition("33") ) .WithField("CSharp", field => field .OfType("NumericField") .WithDisplayName("CSharp") - .WithPosition("32") + .WithPosition("34") ) .WithField("Javascript", field => field .OfType("NumericField") .WithDisplayName("Javascript") - .WithPosition("33") + .WithPosition("35") ) .WithField("Html", field => field .OfType("NumericField") .WithDisplayName("Html") - .WithPosition("34") + .WithPosition("36") ) .WithField("Css", field => field .OfType("NumericField") .WithDisplayName("Css") - .WithPosition("35") + .WithPosition("37") ) .WithField("OtherLanguage", field => field .OfType("TextField") .WithDisplayName("OtherLanguage") - .WithPosition("36") + .WithPosition("38") ) .WithField("OtherLanguageRating", field => field .OfType("NumericField") .WithDisplayName("OtherLanguageRating") - .WithPosition("37") + .WithPosition("39") ) .WithField("PublicProfilesLink", field => field .OfType("TextField") .WithDisplayName("PublicProfilesLink") - .WithPosition("38") + .WithPosition("40") ) .WithField("GitHubLink", field => field .OfType("TextField") .WithDisplayName("GitHubLink") - .WithPosition("39") + .WithPosition("41") ) .WithField("Experience", field => field .OfType("TextField") .WithDisplayName("Experience") - .WithPosition("40") + .WithPosition("42") ) .WithField("Cv", field => field .OfType("TextField") .WithDisplayName("Cv") .WithEditor("TextArea") - .WithPosition("41") + .WithPosition("43") ) .WithField("Language", field => field .OfType("TextField") .WithDisplayName("Language") + .WithPosition("3") + ) + .WithField("Hired", field => field + .OfType("BooleanField") + .WithDisplayName("Hired") .WithPosition("1") ) + .WithField("HiredBy", field => field + .OfType("UserPickerField") + .WithDisplayName("HiredBy") + .WithPosition("2") + .WithSettings(new UserPickerFieldSettings + { + DisplayedRoles = new[] { "Volunteer" }, + }) + ) ); + } + } } diff --git a/src/Modules/StatCan.OrchardCore.Hackathon/Recipes/SkillsInterestForm.recipe.json b/src/Modules/StatCan.OrchardCore.Hackathon/Recipes/SkillsInterestForm.recipe.json index efc784c67..345754609 100644 --- a/src/Modules/StatCan.OrchardCore.Hackathon/Recipes/SkillsInterestForm.recipe.json +++ b/src/Modules/StatCan.OrchardCore.Hackathon/Recipes/SkillsInterestForm.recipe.json @@ -1,1504 +1,1499 @@ { - "name": "Hackathon.SkillsInterestForm", - "displayName": "HR Form (Part 2 -Skills and interests)", - "description": "Creates a page with HR Form (Part 2 -Skills and interests)", - "author": "StatCan Digital Innovation", - "website": "digital.statcan.gc.ca", - "version": "1.0.0", - "issetuprecipe": false, - "categories": [], - "tags": [], - "steps": [ - { - "name": "feature", - "disable": [], - "enable": [ - "StatCan.OrchardCore.Hackathon", - "StatCan.OrchardCore.VueForms" - ] - }, - { - "name": "Content", - "data": [ - { - "ContentItemId": "47t60791n0tng20t6sfz8xwgd1", - "ContentItemVersionId": "4fced439cvksz7x86qzwbvv94x", - "ContentType": "VueForm", - "DisplayText": "Part2 - Skills and Interest Form", - "Latest": true, - "Published": true, - "ModifiedUtc": "2022-01-20T14:32:12.58184Z", - "PublishedUtc": "2022-01-20T14:32:12.609741Z", - "CreatedUtc": "2021-12-15T19:10:55.483939Z", - "Owner": "[js: parameters('AdminUserId')]", - "Author": "[js: parameters('AdminUsername')]", - "TitlePart": { - "Title": "Part2 - Skills and Interest Form" + "name": "Hackathon.SkillsInterestForm", + "displayName": "HR Form (Part 2 -Skills and interests)", + "description": "Creates a page with HR Form (Part 2 -Skills and interests)", + "author": "StatCan Digital Innovation", + "website": "digital.statcan.gc.ca", + "version": "1.0.0", + "issetuprecipe": false, + "categories": [], + "tags": [], + "steps": [ + { + "name": "feature" + }, + { + "name": "Content", + "data": [ + { + "ContentItemId": "47t60791n0tng20t6sfz8xwgd1", + "ContentItemVersionId": "4fced439cvksz7x86qzwbvv94x", + "ContentType": "VueForm", + "DisplayText": "Part2 - Skills and Interest Form", + "Latest": true, + "Published": true, + "ModifiedUtc": "2022-01-20T14:32:12.58184Z", + "PublishedUtc": "2022-01-20T14:32:12.609741Z", + "CreatedUtc": "2021-12-15T19:10:55.483939Z", + "Owner": "[js: parameters('AdminUserId')]", + "Author": "[js: parameters('AdminUsername')]", + "TitlePart": { + "Title": "Part2 - Skills and Interest Form" + }, + "VueForm": { + "Template": { + "Text": "\r\n \r\n \r\n \r\n \r\n {{\"consent\" | localize}}\r\n \r\n \r\n \r\n {{\"degreesCompleted\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"phoneNumber\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n {{\"gcJobInterest\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"jobType\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"coop\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"fswep\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"location\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"citizenship\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n {{\"citizenshipStatus\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"language\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"fieldsOfInterest\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n !!v || '{{\"fieldValidation\" | localize}}']\" :disabled=\"!otherFieldsOfInterest\">\r\n \r\n \r\n {{\"fieldsOfExpertise\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n !!v || '{{\"fieldValidation\" | localize}}']\" :disabled=\"!otherFieldsOfExpertise\">\r\n \r\n \r\n {{\"programmingLanguages\" | localize}} \r\n \r\n \r\n {{\"sql\" | localize}}\r\n \r\n \r\n \r\n {{\"sas\" | localize}}\r\n \r\n \r\n \r\n {{\"r\" | localize}}\r\n \r\n \r\n \r\n {{\"python\" | localize}}\r\n \r\n \r\n \r\n {{\"java\" | localize}}\r\n \r\n \r\n \r\n {{\"perl\" | localize}}\r\n \r\n \r\n \r\n {{\"scala\" | localize}}\r\n \r\n \r\n \r\n {{\"julia\" | localize}}\r\n \r\n \r\n \r\n {{\"matlab\" | localize}}\r\n \r\n \r\n \r\n {{\"stata\" | localize}}\r\n \r\n \r\n \r\n {{\"powerBi\" | localize}}\r\n \r\n \r\n \r\n {{\"qgis\" | localize}}\r\n \r\n \r\n \r\n {{\"arcgis\" | localize}}\r\n \r\n \r\n \r\n {{\"grass\" | localize}}\r\n \r\n \r\n \r\n {{\"cPlusPlus\" | localize}}\r\n \r\n \r\n \r\n {{\"cSharp\" | localize}}\r\n \r\n \r\n \r\n {{\"javascript\" | localize}}\r\n \r\n \r\n \r\n {{\"html\" | localize}}\r\n \r\n \r\n \r\n {{\"css\" | localize}}\r\n \r\n \r\n \r\n {{\"other\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"publicProfilesLink\" | localize}}\r\n \r\n \r\n \r\n {{\"gitHubLink\" | localize}}\r\n \r\n \r\n \r\n {{\"experience\" | localize}}\r\n \r\n \r\n \r\n {{\"cv\" | localize}}\r\n \r\n \r\n \r\n \r\n {% raw %}{{ form.successMessage }}{% endraw %}\r\n \r\n \r\n {% raw %}{{ form.serverValidationMessage[0] }}{% endraw %}\r\n \r\n \r\n \r\n \t [locale en]Register[/locale][locale fr]S'enregistrer[/locale]\r\n \r\n \r\n \r\n \r\n" }, - "VueForm": { - "Template": { - "Text": "\r\n \r\n \r\n \r\n \r\n {{\"consent\" | localize}}\r\n \r\n \r\n \r\n {{\"degreesCompleted\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"phoneNumber\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n {{\"gcJobInterest\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"jobType\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"coop\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"fswep\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"location\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"citizenship\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n {{\"citizenshipStatus\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"language\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"fieldsOfInterest\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n !!v || '{{\"fieldValidation\" | localize}}']\" :disabled=\"!otherFieldsOfInterest\">\r\n \r\n \r\n {{\"fieldsOfExpertise\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n !!v || '{{\"fieldValidation\" | localize}}']\" :disabled=\"!otherFieldsOfExpertise\">\r\n \r\n \r\n {{\"programmingLanguages\" | localize}} \r\n \r\n \r\n {{\"sql\" | localize}}\r\n \r\n \r\n \r\n {{\"sas\" | localize}}\r\n \r\n \r\n \r\n {{\"r\" | localize}}\r\n \r\n \r\n \r\n {{\"python\" | localize}}\r\n \r\n \r\n \r\n {{\"java\" | localize}}\r\n \r\n \r\n \r\n {{\"perl\" | localize}}\r\n \r\n \r\n \r\n {{\"scala\" | localize}}\r\n \r\n \r\n \r\n {{\"julia\" | localize}}\r\n \r\n \r\n \r\n {{\"matlab\" | localize}}\r\n \r\n \r\n \r\n {{\"stata\" | localize}}\r\n \r\n \r\n \r\n {{\"powerBi\" | localize}}\r\n \r\n \r\n \r\n {{\"qgis\" | localize}}\r\n \r\n \r\n \r\n {{\"arcgis\" | localize}}\r\n \r\n \r\n \r\n {{\"grass\" | localize}}\r\n \r\n \r\n \r\n {{\"cPlusPlus\" | localize}}\r\n \r\n \r\n \r\n {{\"cSharp\" | localize}}\r\n \r\n \r\n \r\n {{\"javascript\" | localize}}\r\n \r\n \r\n \r\n {{\"html\" | localize}}\r\n \r\n \r\n \r\n {{\"css\" | localize}}\r\n \r\n \r\n \r\n {{\"other\" | localize}}\r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\"publicProfilesLink\" | localize}}\r\n \r\n \r\n \r\n {{\"gitHubLink\" | localize}}\r\n \r\n \r\n \r\n {{\"experience\" | localize}}\r\n \r\n \r\n \r\n {{\"cv\" | localize}}\r\n \r\n \r\n \r\n \r\n {% raw %}{{ form.successMessage }}{% endraw %}\r\n \r\n \r\n {% raw %}{{ form.serverValidationMessage[0] }}{% endraw %}\r\n \r\n \r\n \r\n \t [locale en]Register[/locale][locale fr]S'enregistrer[/locale]\r\n \r\n \r\n \r\n \r\n" + "RenderAs": { + "Text": null + }, + "Disabled": { + "Value": false + }, + "Debug": { + "Value": false + }, + "DisabledHtml": { + "Html": "
\nThe contact form is currently disabled.\n
" + }, + "SuccessMessage": { + "Text": "{{ \"successMessage\" | localize }}" + } + }, + "AliasPart": { + "Alias": "Part2-Skills-and-Interest-Form" + }, + "VueFormScripts": { + "ClientInit": { + "Text": null + }, + "ComponentOptions": { + "Text": "{\r\n data: () => ({\r\n consent: \"\",\r\n\tdegreesCompleted: \"\",\r\n phoneNumber: \"\",\r\n gcJobInterest:\"\",\r\n jobType:\"\",\r\n coop:\"\",\r\n fswep:\"\",\r\n language:\"\",\r\n location:\"\",\r\n citizenship:\"\",\r\n citizenshipStatus:\"\",\r\n fieldsOfInterest:[],\r\n otherFieldsOfInterest:\"\",\r\n otherInterest:\"\",\r\n fieldsOfExpertise:[],\r\n otherFieldsOfExpertise:\"\",\r\n otherExpertise:\"\",\r\n sql:\"\",\r\n sas:\"\",\r\n r:\"\",\r\n python:\"\",\r\n java:\"\",\r\n perl:\"\",\r\n scala:\"\",\r\n julia:\"\",\r\n matlab:\"\",\r\n stata:\"\",\r\n powerBi:\"\",\r\n qgis:\"\",\r\n arcgis:\"\",\r\n grass:\"\",\r\n cPlusPlus:\"\",\r\n cSharp:\"\",\r\n javascript:\"\",\r\n html:\"\",\r\n css:\"\",\r\n otherLanguage:\"\",\r\n otherLanguageRating:\"\",\r\n publicProfilesLink:\"\",\r\n gitHubLink:\"\",\r\n experience:\"\",\r\n cv:\"\",\r\n })\r\n}" + }, + "OnValidation": { + "Text": "var data = requestFormAsJsonObject();\r\nvar localizedText = getLocalizedTextValues(getFormContentItem());\r\n\r\nif(data.otherFieldsOfInterest == \"other\" && data.otherInterest == \"\" || \r\n data.otherFieldsOfExpertise == \"other\" && data.otherExpertise == \"\" || \r\n data.citizenship == \"no\" && data.citizenshipStatus == \"\" ) \r\n {\r\n addError('serverValidationMessage', localizedText.serverValidationError);\r\n } else if(data.degreesCompleted == \"\") {\r\n addError(\"serverValidationMessage\", localizedText.degreesCompletedValidation); \r\n} else if(data.gcJobInterest == \"\") {\r\n addError(\"serverValidationMessage\", localizedText.gcJobInterestValidation); \r\n} else if(data.jobType == \"\") {\r\n addError(\"serverValidationMessage\", localizedText.jobTypeValidation); \r\n} else if(data.coop == \"\") {\r\n addError(\"serverValidationMessage\", localizedText.coopValidation); \r\n} else if(data.fswep == \"\") {\r\n addError(\"serverValidationMessage\", localizedText.fswepValidation); \r\n} else if(data.location == \"\") {\r\n addError(\"serverValidationMessage\", localizedText.locationValidation); \r\n} else if(data.citizenship == \"\") {\r\n addError(\"serverValidationMessage\", localizedText.citizenshipValidation); \r\n} else if(data.language == \"\") {\r\n addError(\"serverValidationMessage\", localizedText.languageValidation); \r\n} else if(\r\n data.sql == \"\" || \r\n data.sas == \"\" || \r\n data.r == \"\" || \r\n data.python == \"\" || \r\n data.java == \"\" || \r\n data.perl == \"\" || \r\n data.scala == \"\" || \r\n data.julia == \"\" || \r\n data.matlab == \"\" || \r\n data.stata == \"\" || \r\n data.powerBi == \"\" || \r\n data.qgis == \"\" || \r\n data.arcgis == \"\" || \r\n data.grass == \"\" || \r\n data.cPlusPlus == \"\" || \r\n data.cSharp == \"\" || \r\n data.javascript == \"\" || \r\n data.html == \"\" || \r\n data.css == \"\" ) {\r\n addError(\"serverValidationMessage\", localizedText.programmingLanguagesValidation); \r\n} else if(data.experience == \"\") {\r\n addError(\"serverValidationMessage\", localizedText.experienceValidation); \r\n} else if(data.otherLanguage != \"\" & data.otherLanguageRating == \"\") {\r\n addError(\"serverValidationMessage\", localizedText.otherLanguageRatingValidation); \r\n}\r\n\r\nif(hasErrors()) \r\n{\r\n return; \r\n}\r\n" + }, + "OnSubmitted": { + "Text": "var data = requestFormAsJsonObject();\r\n\r\nvar updateSettingsResult = createContentItem(\"SkillsInterest\", true, {\r\n \"SkillsInterest\": {\r\n \"Consent\": {\r\n \"Text\": data.consent\r\n },\r\n \"DegreesCompleted\": {\r\n \"Text\": data.degreesCompleted\r\n },\r\n \"PhoneNumber\": {\r\n \"Text\": data.phoneNumber\r\n },\r\n \"GcJobInterest\": {\r\n \"Text\": data.gcJobInterest\r\n },\r\n \"JobType\": {\r\n \"Text\": data.jobType\r\n },\r\n \"Coop\": {\r\n \"Text\": data.coop\r\n },\r\n \"Fswep\": {\r\n \"Text\": data.fswep\r\n },\r\n \"Location\": {\r\n \"Text\": data.location\r\n },\r\n \"Citizenship\": {\r\n \"Text\": data.citizenship\r\n },\r\n \"CitizenshipStatus\": {\r\n \"Text\": data.citizenshipStatus\r\n },\r\n \"Language\": {\r\n \"Text\": data.language\r\n },\r\n \"FieldsOfInterest\": {\r\n \"Text\": [data.fieldsOfInterest].join()\r\n },\r\n \"OtherFieldsOfInterest\": {\r\n \"Text\": data.otherFieldsOfInterest\r\n },\r\n \"OtherInterest\": {\r\n \"Text\": data.otherInterest\r\n },\r\n \"FieldsOfExpertise\": {\r\n \"Text\": [data.fieldsOfExpertise].join()\r\n },\r\n \"OtherFieldsOfExpertise\": {\r\n \"Text\": data.otherFieldsOfExpertise\r\n },\r\n \"OtherExpertise\": {\r\n \"Text\": data.otherExpertise\r\n },\r\n \"Sql\": {\r\n \"Value\": data.sql\r\n },\r\n \"Sas\": {\r\n \"Value\":data.sas\r\n },\r\n \"R\": {\r\n \"Value\":data.r\r\n },\r\n \"Python\": {\r\n \"Value\":data.python\r\n },\r\n \"Java\": {\r\n \"Value\":data.java\r\n },\r\n \"Perl\": {\r\n \"Value\":data.perl\r\n },\r\n \"Scala\": {\r\n \"Value\":data.scala\r\n },\r\n \"Julia\": {\r\n \"Value\":data.julia\r\n },\r\n \"Matlab\": {\r\n \"Value\":data.matlab\r\n },\r\n \"Stata\": {\r\n \"Value\":data.stata\r\n },\r\n \"PowerBi\": {\r\n \"Value\":data.powerBi\r\n },\r\n \"Qgis\": {\r\n \"Value\":data.qgis\r\n },\r\n \"Arcgis\": {\r\n \"Value\":data.arcgis\r\n },\r\n \"Grass\": {\r\n \"Value\":data.grass\r\n },\r\n \"CPlusPlus\": {\r\n \"Value\":data.cPlusPlus\r\n },\r\n \"CSharp\": {\r\n \"Value\":data.cSharp\r\n },\r\n \"Javascript\": {\r\n \"Value\":data.javascript\r\n },\r\n \"Html\": {\r\n \"Value\":data.html\r\n },\r\n \"Css\": {\r\n \"Value\":data.css\r\n },\r\n \"OtherLanguage\": {\r\n \"Text\": data.otherLanguage\r\n },\r\n \"OtherLanguageRating\": {\r\n \"Value\": data.otherLanguageRating\r\n },\r\n \"PublicProfilesLink\": {\r\n \"Text\": data.publicProfilesLink\r\n },\r\n \"GitHubLink\": {\r\n \"Text\": data.gitHubLink\r\n },\r\n \"Experience\": {\r\n \"Text\": data.experience\r\n },\r\n \"Cv\": {\r\n \"Text\": data.cv\r\n }\r\n }\r\n}); \r\n\r\n" + } + }, + "ContentPermissionsPart": { + "Enabled": false, + "Roles": [] + }, + "LocalizedTextPart": { + "Data": [ + { + "Name": "consent", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Do you agree to share the information in this form to hiring managers of partnering departments?" + } + ] }, - "RenderAs": { - "Text": null + { + "Name": "consentAgree", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "I agree." + } + ] }, - "Disabled": { - "Value": false + { + "Name": "yesLabel", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Oui" + }, + { + "Culture": "en", + "Value": "Yes" + } + ] }, - "Debug": { - "Value": false + { + "Name": "noLabel", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Non" + }, + { + "Culture": "en", + "Value": "No" + } + ] }, - "DisabledHtml": { - "Html": "
\nThe contact form is currently disabled.\n
" + { + "Name": "degreesCompleted", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Have you completed any degrees or diplomas from a Canadian institution?" + } + ] }, - "SuccessMessage": { - "Text": "{{ \"successMessage\" | localize }}" - } - }, - "AliasPart": { - "Alias": "Part2-Skills-and-Interest-Form" - }, - "VueFormScripts": { - "ClientInit": { - "Text": null + { + "Name": "phoneNumber", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "What is your phone number?" + } + ] + }, + { + "Name": "gcJobInterest", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Are you interested in a career in the public service? If you select \"Yes\", your personal information will be shared with potential hiring managers within Statistics Canada and partnering federal departments." + } + ] + }, + { + "Name": "jobType", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Would you be available for a part-time and/or a full-time position?" + } + ] + }, + { + "Name": "partTime", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Part Time" + } + ] + }, + { + "Name": "fullTime", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Full Time" + } + ] + }, + { + "Name": "coop", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Are you currently enrolled in a Co-op program? " + } + ] + }, + { + "Name": "fswep", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Have you ever been employed through FWSEP?" + } + ] + }, + { + "Name": "location", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "In which province are your currently living?" + } + ] + }, + { + "Name": "ab", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Alberta" + }, + { + "Culture": "en", + "Value": "Alberta" + } + ] + }, + { + "Name": "bc", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Colombie-Britannique" + }, + { + "Culture": "en", + "Value": "British Columbia" + } + ] + }, + { + "Name": "mb", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Manitoba" + }, + { + "Culture": "en", + "Value": "Manitoba" + } + ] + }, + { + "Name": "nb", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Nouveau-Brunswick" + }, + { + "Culture": "en", + "Value": "New Brunswick" + } + ] + }, + { + "Name": "nl", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Terre-Neuve-et-Labrador " + }, + { + "Culture": "en", + "Value": "Newfoundland and Labrador" + } + ] + }, + { + "Name": "nt", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Territoires du Nord-Ouest " + }, + { + "Culture": "en", + "Value": "Northwest Territories" + } + ] + }, + { + "Name": "ns", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Nouvelle-Écosse" + }, + { + "Culture": "en", + "Value": "Nova Scotia" + } + ] + }, + { + "Name": "nu", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Nunavut" + }, + { + "Culture": "en", + "Value": "Nunavut" + } + ] + }, + { + "Name": "on", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Ontario" + }, + { + "Culture": "en", + "Value": "Ontario" + } + ] + }, + { + "Name": "pei", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Île du Prince-Édouard " + }, + { + "Culture": "en", + "Value": "Prince Edward Island" + } + ] + }, + { + "Name": "qc", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Québec" + }, + { + "Culture": "en", + "Value": "Quebec" + } + ] + }, + { + "Name": "sk", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Saskatchewan" + }, + { + "Culture": "en", + "Value": "Saskatchewan" + } + ] + }, + { + "Name": "yt", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Yukon" + }, + { + "Culture": "en", + "Value": "Yukon" + } + ] + }, + { + "Name": "citizenship", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Are you a Canadian citizen? " + } + ] + }, + { + "Name": "citizenshipStatus", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "If not a Canadian citizen, provide your status: Permanent resident, work permit, student Visa, etc. Note: if you have a student Visa, it MUST allow you to work within Canada, proof of allowance and conditions of work will be required." + } + ] + }, + { + "Name": "language", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Are you bilingual (French, English)? Do you have a second language evaluation (SLE) score?" + } + ] + }, + { + "Name": "fieldsOfInterest", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "In order to ensure the best possible experience with the Government of Canada, knowing your field of interest will help us identify a potential opportunity for you. Please check off all the fields of expertise of interest to you: " + } + ] + }, + { + "Name": "health", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Health" + } + ] + }, + { + "Name": "adminData", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Administrative Data" + } + ] + }, + { + "Name": "economics", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Economics" + } + ] + }, + { + "Name": "energy", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Energy" + } + ] + }, + { + "Name": "sociology", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Sociology" + } + ] + }, + { + "Name": "demography", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Demography" + } + ] + }, + { + "Name": "classification", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Classification" + } + ] + }, + { + "Name": "tourism", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Tourism" + } + ] + }, + { + "Name": "geospatial", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Geospatial" + } + ] + }, + { + "Name": "bigData", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Big Data" + } + ] + }, + { + "Name": "modelling", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Modelling" + } + ] + }, + { + "Name": "databaseEfficiencies", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Database Efficiencies" + } + ] + }, + { + "Name": "censusData", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Census Data" + } + ] + }, + { + "Name": "agriculture", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Agriculture" + } + ] + }, + { + "Name": "financialData", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Financial Data " + } + ] + }, + { + "Name": "recordLinkage", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Record Linkage" + } + ] + }, + { + "Name": "enterpriseData", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Enterprise Data" + } + ] + }, + { + "Name": "businessAnalysis", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Business analysis" + } + ] + }, + { + "Name": "wcag", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation" + }, + { + "Culture": "en", + "Value": "Web development with expertise in accessibility (WCAG)" + } + ] + }, + { + "Name": "libraryInformationScience", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Library and information science" + } + ] + }, + { + "Name": "econometrics", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Econometrics" + } + ] + }, + { + "Name": "priceIndexTheory", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Price index theory" + } + ] }, - "ComponentOptions": { - "Text": "{\r\n data: () => ({\r\n consent: \"\",\r\n\tdegreesCompleted: \"\",\r\n phoneNumber: \"\",\r\n gcJobInterest:\"\",\r\n jobType:\"\",\r\n coop:\"\",\r\n fswep:\"\",\r\n language:\"\",\r\n location:\"\",\r\n citizenship:\"\",\r\n citizenshipStatus:\"\",\r\n fieldsOfInterest:[],\r\n otherFieldsOfInterest:\"\",\r\n otherInterest:\"\",\r\n fieldsOfExpertise:[],\r\n otherFieldsOfExpertise:\"\",\r\n otherExpertise:\"\",\r\n sql:\"\",\r\n sas:\"\",\r\n r:\"\",\r\n python:\"\",\r\n java:\"\",\r\n perl:\"\",\r\n scala:\"\",\r\n julia:\"\",\r\n matlab:\"\",\r\n stata:\"\",\r\n powerBi:\"\",\r\n qgis:\"\",\r\n arcgis:\"\",\r\n grass:\"\",\r\n cPlusPlus:\"\",\r\n cSharp:\"\",\r\n javascript:\"\",\r\n html:\"\",\r\n css:\"\",\r\n otherLanguage:\"\",\r\n otherLanguageRating:\"\",\r\n publicProfilesLink:\"\",\r\n gitHubLink:\"\",\r\n experience:\"\",\r\n cv:\"\",\r\n })\r\n}" + { + "Name": "statistics", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Statistics" + } + ] }, - "OnValidation": { - "Text": "var data = requestFormAsJsonObject();\r\nvar localizedText = getLocalizedTextValues(getFormContentItem());\r\n\r\nif(data.otherFieldsOfInterest == \"other\" && data.otherInterest == \"\" || \r\n data.otherFieldsOfExpertise == \"other\" && data.otherExpertise == \"\" || \r\n data.citizenship == \"no\" && data.citizenshipStatus == \"\" ) \r\n {\r\n addError('serverValidationMessage', localizedText.serverValidationError);\r\n } else if(data.degreesCompleted == \"\") {\r\n addError(\"serverValidationMessage\", localizedText.degreesCompletedValidation); \r\n} else if(data.gcJobInterest == \"\") {\r\n addError(\"serverValidationMessage\", localizedText.gcJobInterestValidation); \r\n} else if(data.jobType == \"\") {\r\n addError(\"serverValidationMessage\", localizedText.jobTypeValidation); \r\n} else if(data.coop == \"\") {\r\n addError(\"serverValidationMessage\", localizedText.coopValidation); \r\n} else if(data.fswep == \"\") {\r\n addError(\"serverValidationMessage\", localizedText.fswepValidation); \r\n} else if(data.location == \"\") {\r\n addError(\"serverValidationMessage\", localizedText.locationValidation); \r\n} else if(data.citizenship == \"\") {\r\n addError(\"serverValidationMessage\", localizedText.citizenshipValidation); \r\n} else if(data.language == \"\") {\r\n addError(\"serverValidationMessage\", localizedText.languageValidation); \r\n} else if(\r\n data.sql == \"\" || \r\n data.sas == \"\" || \r\n data.r == \"\" || \r\n data.python == \"\" || \r\n data.java == \"\" || \r\n data.perl == \"\" || \r\n data.scala == \"\" || \r\n data.julia == \"\" || \r\n data.matlab == \"\" || \r\n data.stata == \"\" || \r\n data.powerBi == \"\" || \r\n data.qgis == \"\" || \r\n data.arcgis == \"\" || \r\n data.grass == \"\" || \r\n data.cPlusPlus == \"\" || \r\n data.cSharp == \"\" || \r\n data.javascript == \"\" || \r\n data.html == \"\" || \r\n data.css == \"\" ) {\r\n addError(\"serverValidationMessage\", localizedText.programmingLanguagesValidation); \r\n} else if(data.experience == \"\") {\r\n addError(\"serverValidationMessage\", localizedText.experienceValidation); \r\n} else if(data.otherLanguage != \"\" & data.otherLanguageRating == \"\") {\r\n addError(\"serverValidationMessage\", localizedText.otherLanguageRatingValidation); \r\n}\r\n\r\nif(hasErrors()) \r\n{\r\n return; \r\n}\r\n" + { + "Name": "other", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Other, please specify." + } + ] }, - "OnSubmitted": { - "Text": "var data = requestFormAsJsonObject();\r\n\r\nvar updateSettingsResult = createContentItem(\"SkillsInterest\", true, {\r\n \"SkillsInterest\": {\r\n \"Consent\": {\r\n \"Text\": data.consent\r\n },\r\n \"DegreesCompleted\": {\r\n \"Text\": data.degreesCompleted\r\n },\r\n \"PhoneNumber\": {\r\n \"Text\": data.phoneNumber\r\n },\r\n \"GcJobInterest\": {\r\n \"Text\": data.gcJobInterest\r\n },\r\n \"JobType\": {\r\n \"Text\": data.jobType\r\n },\r\n \"Coop\": {\r\n \"Text\": data.coop\r\n },\r\n \"Fswep\": {\r\n \"Text\": data.fswep\r\n },\r\n \"Location\": {\r\n \"Text\": data.location\r\n },\r\n \"Citizenship\": {\r\n \"Text\": data.citizenship\r\n },\r\n \"CitizenshipStatus\": {\r\n \"Text\": data.citizenshipStatus\r\n },\r\n \"Language\": {\r\n \"Text\": data.language\r\n },\r\n \"FieldsOfInterest\": {\r\n \"Text\": [data.fieldsOfInterest].join()\r\n },\r\n \"OtherFieldsOfInterest\": {\r\n \"Text\": data.otherFieldsOfInterest\r\n },\r\n \"OtherInterest\": {\r\n \"Text\": data.otherInterest\r\n },\r\n \"FieldsOfExpertise\": {\r\n \"Text\": [data.fieldsOfExpertise].join()\r\n },\r\n \"OtherFieldsOfExpertise\": {\r\n \"Text\": data.otherFieldsOfExpertise\r\n },\r\n \"OtherExpertise\": {\r\n \"Text\": data.otherExpertise\r\n },\r\n \"Sql\": {\r\n \"Value\": data.sql\r\n },\r\n \"Sas\": {\r\n \"Value\":data.sas\r\n },\r\n \"R\": {\r\n \"Value\":data.r\r\n },\r\n \"Python\": {\r\n \"Value\":data.python\r\n },\r\n \"Java\": {\r\n \"Value\":data.java\r\n },\r\n \"Perl\": {\r\n \"Value\":data.perl\r\n },\r\n \"Scala\": {\r\n \"Value\":data.scala\r\n },\r\n \"Julia\": {\r\n \"Value\":data.julia\r\n },\r\n \"Matlab\": {\r\n \"Value\":data.matlab\r\n },\r\n \"Stata\": {\r\n \"Value\":data.stata\r\n },\r\n \"PowerBi\": {\r\n \"Value\":data.powerBi\r\n },\r\n \"Qgis\": {\r\n \"Value\":data.qgis\r\n },\r\n \"Arcgis\": {\r\n \"Value\":data.arcgis\r\n },\r\n \"Grass\": {\r\n \"Value\":data.grass\r\n },\r\n \"CPlusPlus\": {\r\n \"Value\":data.cPlusPlus\r\n },\r\n \"CSharp\": {\r\n \"Value\":data.cSharp\r\n },\r\n \"Javascript\": {\r\n \"Value\":data.javascript\r\n },\r\n \"Html\": {\r\n \"Value\":data.html\r\n },\r\n \"Css\": {\r\n \"Value\":data.css\r\n },\r\n \"OtherLanguage\": {\r\n \"Text\": data.otherLanguage\r\n },\r\n \"OtherLanguageRating\": {\r\n \"Value\": data.otherLanguageRating\r\n },\r\n \"PublicProfilesLink\": {\r\n \"Text\": data.publicProfilesLink\r\n },\r\n \"GitHubLink\": {\r\n \"Text\": data.gitHubLink\r\n },\r\n \"Experience\": {\r\n \"Text\": data.experience\r\n },\r\n \"Cv\": {\r\n \"Text\": data.cv\r\n }\r\n }\r\n}); \r\n\r\n" + { + "Name": "programmingLanguages", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Please rate on a scale to 0 (no experience) to 5 (fully proficient) all the programming languages you have experience with whether it was through class studies, an academic project or work experience. " + } + ] + }, + { + "Name": "fieldsOfExpertise", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Please check off all the fields of expertise you have applied through an academic project or work experience. " + } + ] + }, + { + "Name": "dataAnalysis", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Data Analysis" + } + ] + }, + { + "Name": "dataProcessing", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Data Processing" + } + ] + }, + { + "Name": "dataVisualization", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Data visualization" + } + ] + }, + { + "Name": "webScraping", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Web scraping" + } + ] + }, + { + "Name": "textAnalytics", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Text analytics / NLP" + } + ] + }, + { + "Name": "classificationAlgorithm", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Classification Algorithm" + } + ] + }, + { + "Name": "cloudArchitecture", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Cloud architecture" + } + ] + }, + { + "Name": "geospatialAnalytics", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Geospatial Analytics" + } + ] + }, + { + "Name": "bootstrapping", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Bootstrapping" + } + ] + }, + { + "Name": "machineLearning", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Machine Learning" + } + ] + }, + { + "Name": "softwareDevelopment", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Software Development" + } + ] + }, + { + "Name": "webDevelopment", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Web Development" + } + ] + }, + { + "Name": "aIDevelopment", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "AI Development" + } + ] + }, + { + "Name": "dataEngineering", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Data Engineering" + } + ] + }, + { + "Name": "dataMining", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Data Mining" + } + ] + }, + { + "Name": "sql", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "SQL" + }, + { + "Culture": "en", + "Value": "SQL" + } + ] + }, + { + "Name": "sas", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "SAS" + }, + { + "Culture": "en", + "Value": "SAS" + } + ] + }, + { + "Name": "r", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "R" + }, + { + "Culture": "en", + "Value": "R" + } + ] + }, + { + "Name": "python", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Python" + }, + { + "Culture": "en", + "Value": "Python" + } + ] + }, + { + "Name": "java", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Java" + }, + { + "Culture": "en", + "Value": "Java" + } + ] + }, + { + "Name": "perl", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Perl" + }, + { + "Culture": "en", + "Value": "Perl" + } + ] + }, + { + "Name": "scala", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Scala" + }, + { + "Culture": "en", + "Value": "Scala" + } + ] + }, + { + "Name": "julia", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Julia" + }, + { + "Culture": "en", + "Value": "Julia" + } + ] + }, + { + "Name": "matlab", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "MATLAB" + }, + { + "Culture": "en", + "Value": "MATLAB" + } + ] + }, + { + "Name": "stata", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "STATA" + }, + { + "Culture": "en", + "Value": "STATA" + } + ] + }, + { + "Name": "powerBi", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Power BI (M, DAX, ...)" + }, + { + "Culture": "en", + "Value": "Power BI (M, DAX, ...)" + } + ] + }, + { + "Name": "qgis", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "QGIS" + }, + { + "Culture": "en", + "Value": "QGIS" + } + ] + }, + { + "Name": "arcgis", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "ArcGIS" + }, + { + "Culture": "en", + "Value": "ArcGIS" + } + ] + }, + { + "Name": "grass", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Grass" + }, + { + "Culture": "en", + "Value": "Grass" + } + ] + }, + { + "Name": "cPlusPlus", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "C++" + }, + { + "Culture": "en", + "Value": "C++" + } + ] + }, + { + "Name": "cSharp", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "C#" + }, + { + "Culture": "en", + "Value": "C#" + } + ] + }, + { + "Name": "javascript", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Javascript" + }, + { + "Culture": "en", + "Value": "Javascript" + } + ] + }, + { + "Name": "html", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "HTML" + }, + { + "Culture": "en", + "Value": "HTML" + } + ] + }, + { + "Name": "css", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "CSS" + }, + { + "Culture": "en", + "Value": "CSS" + } + ] + }, + { + "Name": "publicProfilesLink", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Please provide us with a link to a professional public profile (e.g. LinkedIn, GCCollab)." + } + ] + }, + { + "Name": "gitHubLink", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Please provide us with a link to your GitHub account." + } + ] + }, + { + "Name": "experience", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "In approximately 200 words, please provide a brief description of one or two projects you may have worked in as part of your school work, as part of a job, or elsewhere that demonstrates your knowledge and usage of the software's and methods outlined above. To help you with the structure of this answer, please ensure to:\n\nDescribe the problem you had to solve. Specify the data set(s) you used. Specify the programming language or any other applications you had to use. Describe the strategies and techniques you employed. Provide the results of the project." + } + ] + }, + { + "Name": "cv", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Please upload your curriculum vitae (CV)/resume.\nDisclaimer: if you choose to upload your CV, your personal information and experience will be shared with potential hiring managers within Statistics Canada and partnering federal departments." + } + ] + }, + { + "Name": "submitLabel", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Envoyer" + }, + { + "Culture": "en", + "Value": "Send" + } + ] + }, + { + "Name": "successMessage", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "The form has been submitted." + } + ] + }, + { + "Name": "serverValidationError", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Une erreure est survenue." + }, + { + "Culture": "en", + "Value": "An error occured." + } + ] + }, + { + "Name": "fieldValidation", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "This field is required." + } + ] + }, + { + "Name": "degreesCompletedValidation", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Please specify if you have completed any degrees or diplomas from a Canadian institution." + } + ] + }, + { + "Name": "gcJobInterestValidation", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Please specify whether or not you have an interest in a career in the public service." + } + ] + }, + { + "Name": "jobTypeValidation", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Please indicate whether you are available for a part-time or full-time position." + } + ] + }, + { + "Name": "coopValidation", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Please indicate whether or not you are enrolled in a Co-op program." + } + ] + }, + { + "Name": "fswepValidation", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Please indicate whether or not you have ever been employed through FSWEP." + } + ] + }, + { + "Name": "locationValidation", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Please indicate which province you are currently living in." + } + ] + }, + { + "Name": "citizenshipValidation", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Please indicate whether or not you are a Canadian citizen." + } + ] + }, + { + "Name": "languageValidation", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Please indicate whether or not you are bilingual and have a second language evaluation score." + } + ] + }, + { + "Name": "programmingLanguagesValidation", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "You have not entered a rating for one or more of the programming languages. Please try again." + } + ] + }, + { + "Name": "experienceValidation", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Please provide a brief description of one or two projects you have worked on in the past. " + } + ] + }, + { + "Name": "otherLanguageRatingValidation", + "LocalizedItems": [ + { + "Culture": "fr", + "Value": "Translation required" + }, + { + "Culture": "en", + "Value": "Please rate your experience with the programming language you entered." + } + ] } - }, - "ContentPermissionsPart": { - "Enabled": false, - "Roles": [] - }, - "LocalizedTextPart": { - "Data": [ - { - "Name": "consent", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Do you agree to share the information in this form to hiring managers of partnering departments?" - } - ] - }, - { - "Name": "consentAgree", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "I agree." - } - ] - }, - { - "Name": "yesLabel", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Oui" - }, - { - "Culture": "en", - "Value": "Yes" - } - ] - }, - { - "Name": "noLabel", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Non" - }, - { - "Culture": "en", - "Value": "No" - } - ] - }, - { - "Name": "degreesCompleted", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Have you completed any degrees or diplomas from a Canadian institution?" - } - ] - }, - { - "Name": "phoneNumber", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "What is your phone number?" - } - ] - }, - { - "Name": "gcJobInterest", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Are you interested in a career in the public service? If you select \"Yes\", your personal information will be shared with potential hiring managers within Statistics Canada and partnering federal departments." - } - ] - }, - { - "Name": "jobType", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Would you be available for a part-time and/or a full-time position?" - } - ] - }, - { - "Name": "partTime", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Part Time" - } - ] - }, - { - "Name": "fullTime", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Full Time" - } - ] - }, - { - "Name": "coop", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Are you currently enrolled in a Co-op program? " - } - ] - }, - { - "Name": "fswep", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Have you ever been employed through FWSEP?" - } - ] - }, - { - "Name": "location", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "In which province are your currently living?" - } - ] - }, - { - "Name": "ab", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Alberta" - }, - { - "Culture": "en", - "Value": "Alberta" - } - ] - }, - { - "Name": "bc", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Colombie-Britannique" - }, - { - "Culture": "en", - "Value": "British Columbia" - } - ] - }, - { - "Name": "mb", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Manitoba" - }, - { - "Culture": "en", - "Value": "Manitoba" - } - ] - }, - { - "Name": "nb", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Nouveau-Brunswick" - }, - { - "Culture": "en", - "Value": "New Brunswick" - } - ] - }, - { - "Name": "nl", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Terre-Neuve-et-Labrador " - }, - { - "Culture": "en", - "Value": "Newfoundland and Labrador" - } - ] - }, - { - "Name": "nt", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Territoires du Nord-Ouest " - }, - { - "Culture": "en", - "Value": "Northwest Territories" - } - ] - }, - { - "Name": "ns", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Nouvelle-Écosse" - }, - { - "Culture": "en", - "Value": "Nova Scotia" - } - ] - }, - { - "Name": "nu", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Nunavut" - }, - { - "Culture": "en", - "Value": "Nunavut" - } - ] - }, - { - "Name": "on", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Ontario" - }, - { - "Culture": "en", - "Value": "Ontario" - } - ] - }, - { - "Name": "pei", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Île du Prince-Édouard " - }, - { - "Culture": "en", - "Value": "Prince Edward Island" - } - ] - }, - { - "Name": "qc", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Québec" - }, - { - "Culture": "en", - "Value": "Quebec" - } - ] - }, - { - "Name": "sk", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Saskatchewan" - }, - { - "Culture": "en", - "Value": "Saskatchewan" - } - ] - }, - { - "Name": "yt", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Yukon" - }, - { - "Culture": "en", - "Value": "Yukon" - } - ] - }, - { - "Name": "citizenship", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Are you a Canadian citizen? " - } - ] - }, - { - "Name": "citizenshipStatus", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "If not a Canadian citizen, provide your status: Permanent resident, work permit, student Visa, etc. Note: if you have a student Visa, it MUST allow you to work within Canada, proof of allowance and conditions of work will be required." - } - ] - }, - { - "Name": "language", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Are you bilingual (French, English)? Do you have a second language evaluation (SLE) score?" - } - ] - }, - { - "Name": "fieldsOfInterest", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "In order to ensure the best possible experience with the Government of Canada, knowing your field of interest will help us identify a potential opportunity for you. Please check off all the fields of expertise of interest to you: " - } - ] - }, - { - "Name": "health", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Health" - } - ] - }, - { - "Name": "adminData", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Administrative Data" - } - ] - }, - { - "Name": "economics", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Economics" - } - ] - }, - { - "Name": "energy", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Energy" - } - ] - }, - { - "Name": "sociology", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Sociology" - } - ] - }, - { - "Name": "demography", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Demography" - } - ] - }, - { - "Name": "classification", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Classification" - } - ] - }, - { - "Name": "tourism", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Tourism" - } - ] - }, - { - "Name": "geospatial", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Geospatial" - } - ] - }, - { - "Name": "bigData", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Big Data" - } - ] - }, - { - "Name": "modelling", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Modelling" - } - ] - }, - { - "Name": "databaseEfficiencies", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Database Efficiencies" - } - ] - }, - { - "Name": "censusData", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Census Data" - } - ] - }, - { - "Name": "agriculture", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Agriculture" - } - ] - }, - { - "Name": "financialData", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Financial Data " - } - ] - }, - { - "Name": "recordLinkage", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Record Linkage" - } - ] - }, - { - "Name": "enterpriseData", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Enterprise Data" - } - ] - }, - { - "Name": "businessAnalysis", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Business analysis" - } - ] - }, - { - "Name": "wcag", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation" - }, - { - "Culture": "en", - "Value": "Web development with expertise in accessibility (WCAG)" - } - ] - }, - { - "Name": "libraryInformationScience", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Library and information science" - } - ] - }, - { - "Name": "econometrics", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Econometrics" - } - ] - }, - { - "Name": "priceIndexTheory", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Price index theory" - } - ] - }, - { - "Name": "statistics", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Statistics" - } - ] - }, - { - "Name": "other", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Other, please specify." - } - ] - }, - { - "Name": "programmingLanguages", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Please rate on a scale to 0 (no experience) to 5 (fully proficient) all the programming languages you have experience with whether it was through class studies, an academic project or work experience. " - } - ] - }, - { - "Name": "fieldsOfExpertise", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Please check off all the fields of expertise you have applied through an academic project or work experience. " - } - ] - }, - { - "Name": "dataAnalysis", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Data Analysis" - } - ] - }, - { - "Name": "dataProcessing", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Data Processing" - } - ] - }, - { - "Name": "dataVisualization", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Data visualization" - } - ] - }, - { - "Name": "webScraping", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Web scraping" - } - ] - }, - { - "Name": "textAnalytics", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Text analytics / NLP" - } - ] - }, - { - "Name": "classificationAlgorithm", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Classification Algorithm" - } - ] - }, - { - "Name": "cloudArchitecture", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Cloud architecture" - } - ] - }, - { - "Name": "geospatialAnalytics", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Geospatial Analytics" - } - ] - }, - { - "Name": "bootstrapping", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Bootstrapping" - } - ] - }, - { - "Name": "machineLearning", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Machine Learning" - } - ] - }, - { - "Name": "softwareDevelopment", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Software Development" - } - ] - }, - { - "Name": "webDevelopment", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Web Development" - } - ] - }, - { - "Name": "aIDevelopment", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "AI Development" - } - ] - }, - { - "Name": "dataEngineering", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Data Engineering" - } - ] - }, - { - "Name": "dataMining", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Data Mining" - } - ] - }, - { - "Name": "sql", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "SQL" - }, - { - "Culture": "en", - "Value": "SQL" - } - ] - }, - { - "Name": "sas", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "SAS" - }, - { - "Culture": "en", - "Value": "SAS" - } - ] - }, - { - "Name": "r", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "R" - }, - { - "Culture": "en", - "Value": "R" - } - ] - }, - { - "Name": "python", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Python" - }, - { - "Culture": "en", - "Value": "Python" - } - ] - }, - { - "Name": "java", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Java" - }, - { - "Culture": "en", - "Value": "Java" - } - ] - }, - { - "Name": "perl", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Perl" - }, - { - "Culture": "en", - "Value": "Perl" - } - ] - }, - { - "Name": "scala", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Scala" - }, - { - "Culture": "en", - "Value": "Scala" - } - ] - }, - { - "Name": "julia", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Julia" - }, - { - "Culture": "en", - "Value": "Julia" - } - ] - }, - { - "Name": "matlab", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "MATLAB" - }, - { - "Culture": "en", - "Value": "MATLAB" - } - ] - }, - { - "Name": "stata", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "STATA" - }, - { - "Culture": "en", - "Value": "STATA" - } - ] - }, - { - "Name": "powerBi", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Power BI (M, DAX, ...)" - }, - { - "Culture": "en", - "Value": "Power BI (M, DAX, ...)" - } - ] - }, - { - "Name": "qgis", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "QGIS" - }, - { - "Culture": "en", - "Value": "QGIS" - } - ] - }, - { - "Name": "arcgis", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "ArcGIS" - }, - { - "Culture": "en", - "Value": "ArcGIS" - } - ] - }, - { - "Name": "grass", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Grass" - }, - { - "Culture": "en", - "Value": "Grass" - } - ] - }, - { - "Name": "cPlusPlus", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "C++" - }, - { - "Culture": "en", - "Value": "C++" - } - ] - }, - { - "Name": "cSharp", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "C#" - }, - { - "Culture": "en", - "Value": "C#" - } - ] - }, - { - "Name": "javascript", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Javascript" - }, - { - "Culture": "en", - "Value": "Javascript" - } - ] - }, - { - "Name": "html", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "HTML" - }, - { - "Culture": "en", - "Value": "HTML" - } - ] - }, - { - "Name": "css", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "CSS" - }, - { - "Culture": "en", - "Value": "CSS" - } - ] - }, - { - "Name": "publicProfilesLink", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Please provide us with a link to a professional public profile (e.g. LinkedIn, GCCollab)." - } - ] - }, - { - "Name": "gitHubLink", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Please provide us with a link to your GitHub account." - } - ] - }, - { - "Name": "experience", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "In approximately 200 words, please provide a brief description of one or two projects you may have worked in as part of your school work, as part of a job, or elsewhere that demonstrates your knowledge and usage of the software's and methods outlined above. To help you with the structure of this answer, please ensure to:\n\nDescribe the problem you had to solve. Specify the data set(s) you used. Specify the programming language or any other applications you had to use. Describe the strategies and techniques you employed. Provide the results of the project." - } - ] - }, - { - "Name": "cv", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Please upload your curriculum vitae (CV)/resume.\nDisclaimer: if you choose to upload your CV, your personal information and experience will be shared with potential hiring managers within Statistics Canada and partnering federal departments." - } - ] - }, - { - "Name": "submitLabel", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Envoyer" - }, - { - "Culture": "en", - "Value": "Send" - } - ] - }, - { - "Name": "successMessage", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "The form has been submitted." - } - ] - }, - { - "Name": "serverValidationError", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Une erreure est survenue." - }, - { - "Culture": "en", - "Value": "An error occured." - } - ] - }, - { - "Name": "fieldValidation", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "This field is required." - } - ] - }, - { - "Name": "degreesCompletedValidation", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Please specify if you have completed any degrees or diplomas from a Canadian institution." - } - ] - }, - { - "Name": "gcJobInterestValidation", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Please specify whether or not you have an interest in a career in the public service." - } - ] - }, - { - "Name": "jobTypeValidation", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Please indicate whether you are available for a part-time or full-time position." - } - ] - }, - { - "Name": "coopValidation", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Please indicate whether or not you are enrolled in a Co-op program." - } - ] - }, - { - "Name": "fswepValidation", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Please indicate whether or not you have ever been employed through FSWEP." - } - ] - }, - { - "Name": "locationValidation", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Please indicate which province you are currently living in." - } - ] - }, - { - "Name": "citizenshipValidation", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Please indicate whether or not you are a Canadian citizen." - } - ] - }, - { - "Name": "languageValidation", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Please indicate whether or not you are bilingual and have a second language evaluation score." - } - ] - }, - { - "Name": "programmingLanguagesValidation", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "You have not entered a rating for one or more of the programming languages. Please try again." - } - ] - }, - { - "Name": "experienceValidation", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Please provide a brief description of one or two projects you have worked on in the past. " - } - ] - }, - { - "Name": "otherLanguageRatingValidation", - "LocalizedItems": [ - { - "Culture": "fr", - "Value": "Translation required" - }, - { - "Culture": "en", - "Value": "Please rate your experience with the programming language you entered." - } - ] - } - ] - } + ] } - ] - } - ] - } \ No newline at end of file + } + ] + } + ] +} \ No newline at end of file diff --git a/src/Modules/StatCan.OrchardCore.Hackathon/Views/Widget-SkillsInterest.liquid b/src/Modules/StatCan.OrchardCore.Hackathon/Views/Widget-SkillsInterest.liquid index e2be44b51..8df52effe 100644 --- a/src/Modules/StatCan.OrchardCore.Hackathon/Views/Widget-SkillsInterest.liquid +++ b/src/Modules/StatCan.OrchardCore.Hackathon/Views/Widget-SkillsInterest.liquid @@ -1,5 +1,6 @@ {% assign interest = Model.ContentItem.Content.SkillsInterest.FieldsOfInterest.Text | remove: '"' |remove: '[' | remove: ']' %} {% assign expertise = Model.ContentItem.Content.SkillsInterest.FieldsOfExpertise.Text | remove: '"' |remove: '[' | remove: ']' %} +{% assign userInRole = User | is_in_role: "Volunteer"%} @@ -88,8 +89,12 @@ - - + {% if userInRole %} +
+ HIRE +
+ {% endif %} + -
\ No newline at end of file + From f8a002af1b6c080c927c537e6136468ac1f7f864 Mon Sep 17 00:00:00 2001 From: R Axalan Date: Fri, 11 Feb 2022 11:06:38 -0500 Subject: [PATCH 4/4] Adds vue form with Hire button, removes hire button from view --- .../Recipes/HireButton.recipe.json | 83 +++++++++++++++++++ .../Views/Widget-SkillsInterest.liquid | 10 +-- 2 files changed, 84 insertions(+), 9 deletions(-) create mode 100644 src/Modules/StatCan.OrchardCore.Hackathon/Recipes/HireButton.recipe.json diff --git a/src/Modules/StatCan.OrchardCore.Hackathon/Recipes/HireButton.recipe.json b/src/Modules/StatCan.OrchardCore.Hackathon/Recipes/HireButton.recipe.json new file mode 100644 index 000000000..f222699a1 --- /dev/null +++ b/src/Modules/StatCan.OrchardCore.Hackathon/Recipes/HireButton.recipe.json @@ -0,0 +1,83 @@ +{ + "name": "Hackathon.HireButtonForm", + "displayName": "Hire Button", + "description": "Creates a button used to hire students.", + "author": "StatCan Digital Innovation", + "website": "digital.statcan.gc.ca", + "version": "1.0.0", + "issetuprecipe": false, + "categories": [], + "tags": [], + "steps": [ + { + "name": "feature" + }, + { + "name": "Content", + "data": [ + { + "ContentItemId": "46898hhea99ya5z465kd29czwk", + "ContentItemVersionId": "40fcyjebzg0eh08cfv0kqfxjxk", + "ContentType": "VueForm", + "DisplayText": "Hire Button", + "Latest": true, + "Published": true, + "ModifiedUtc": "2022-02-11T15:43:18.270931Z", + "PublishedUtc": "2022-02-11T15:43:18.290062Z", + "CreatedUtc": "2022-02-11T15:00:06.553129Z", + "Owner": "[js: parameters('AdminUserId')]", + "Author": "[js: parameters('AdminUsername')]", + "TitlePart": { + "Title": "Hire Button" + }, + "VueForm": { + "Template": { + "Text": "\r\n Hire\r\n" + }, + "RenderAs": { + "Text": null + }, + "Disabled": { + "Value": false + }, + "Debug": { + "Value": false + }, + "DisabledHtml": { + "Html": "" + }, + "SuccessMessage": { + "Text": "You have hired this student." + } + }, + "AliasPart": { + "Alias": "hire-button" + }, + "VueFormScripts": { + "ClientInit": { + "Text": null + }, + "ComponentOptions": { + "Text": "{\r\n data: () => ({\r\n hired: \"\",\r\n\thiredBy: \"\",\r\n })\r\n}" + }, + "OnValidation": { + "Text": null + }, + "OnSubmitted": { + "Text": "var data = requestFormAsJsonObject();\r\n\r\nvar updateSettingsResult = updateContentItem(\"SkillsInterest\", {\r\n \"SkillsInterest\" : {\r\n \"Hired\": {\r\n \"Text\": data.hired\r\n },\r\n \"HiredBy\": {\r\n \"Text\": data.hiredBy\r\n }\r\n }\r\n});" + } + }, + "ContentPermissionsPart": { + "Enabled": true, + "Roles": [ + "Volunteer" + ] + }, + "LocalizedTextPart": { + "Data": [] + } + } + ] + } + ] + } \ No newline at end of file diff --git a/src/Modules/StatCan.OrchardCore.Hackathon/Views/Widget-SkillsInterest.liquid b/src/Modules/StatCan.OrchardCore.Hackathon/Views/Widget-SkillsInterest.liquid index 8df52effe..c73c7347e 100644 --- a/src/Modules/StatCan.OrchardCore.Hackathon/Views/Widget-SkillsInterest.liquid +++ b/src/Modules/StatCan.OrchardCore.Hackathon/Views/Widget-SkillsInterest.liquid @@ -1,7 +1,5 @@ {% assign interest = Model.ContentItem.Content.SkillsInterest.FieldsOfInterest.Text | remove: '"' |remove: '[' | remove: ']' %} {% assign expertise = Model.ContentItem.Content.SkillsInterest.FieldsOfExpertise.Text | remove: '"' |remove: '[' | remove: ']' %} -{% assign userInRole = User | is_in_role: "Volunteer"%} - @@ -88,13 +86,7 @@ - - {% if userInRole %} -
- HIRE -
- {% endif %}
-
+ \ No newline at end of file