From f2447da05ae3784d0f4323dd84d8550491114dec Mon Sep 17 00:00:00 2001 From: Chris Alfano Date: Wed, 15 Jan 2020 02:19:04 +0000 Subject: [PATCH] feat: scaffold template/markup for form --- html-templates/questionnaire.tpl | 116 +++++++++++++++++++++++++++++++ site-root/questionnaire.php | 35 ++++++++++ 2 files changed, 151 insertions(+) create mode 100644 html-templates/questionnaire.tpl create mode 100644 site-root/questionnaire.php diff --git a/html-templates/questionnaire.tpl b/html-templates/questionnaire.tpl new file mode 100644 index 00000000..5c29f7f0 --- /dev/null +++ b/html-templates/questionnaire.tpl @@ -0,0 +1,116 @@ +{extends "designs/site.tpl"} + +{block "title"}{_ 'Onboarding Questionnaire'} — {$dwoo.parent}{/block} + +{block "content"} +
+
+
+ + + {contentBlock "questionnaire-introduction"} + + {*if !$Project->isValid} +
+ {_ "There were problems with your entry:"} +
    + {foreach item=error key=field from=$Project->validationErrors} +
  • {$error}
  • + {/foreach} +
+
+ {/if*} + +
+ +
+ I am a… + +
+
+ {foreach from=$roles key=key item=title} +
+ + +
+ {/foreach} +
+ + +
+
+
+
+ +
+ Technology Experience + +
+
+ No experience / Want to learn +
+
+ Beginner +
+
+ Intermediate +
+
+ Advanced +
+
+ + {foreach from=$technologies key=key item=title} +
+
+ {$title|escape} +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ {/foreach} +
+ +
+ I would describe my tech experience as + +
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+
+ + +
+
+
+
+{/block} diff --git a/site-root/questionnaire.php b/site-root/questionnaire.php new file mode 100644 index 00000000..8184e0e0 --- /dev/null +++ b/site-root/questionnaire.php @@ -0,0 +1,35 @@ + 'Front-end Developer', + 'backend' => 'Back-end Developer', + 'fullstack' => 'Full Stack Engineer', + 'data-engineer' => 'Data Engineer', + 'data-analyst' => 'Data Scientist/Analyst', + 'devops' => 'DevOps Engineer', + 'product-manager' => 'Product Manager', + 'project-manager' => 'Project Manager', + 'ux' => 'UX/UI', + 'graphic-designer' => 'Graphic Designer', +]; + +$technologies = [ + 'react' => 'React', + 'django' => 'Django', + 'vue' => 'Vue', + 'php' => 'PHP', + 'python' => 'Python', + 'r' => 'R', + 'git' => 'Git', + 'change-management' => 'Change Management', + 'pm' => 'Project Management Frameworks/Tools', + 'docker' => 'Docker', + 'javascript' => 'Javascript', + 'ux' => 'UX/UI', + 'wordpress' => 'WordPress', +]; + +RequestHandler::respond('questionnaire', [ + 'roles' => $roles, + 'technologies' => $technologies +]);