{% extends 'base.html.twig' %}
{% block stylesheets %}
{{ parent() }}
<link rel="stylesheet" type="text/css" href="{{ asset( 'assets/css/snackbar.css' ) }}" />
{# <style>
.btn-group .dropdown-menu
{
display:block;
}
body .sb-site-container {
overflow: hidden;
}
</style> #}
{% endblock %}
{% block body %}
<main class="mhcc-wrapper">
<article class="mhcc-sec-page-outer">
<!--// Main title block STARTS-->
<header class="light-green-bg sec-page-main-header sec-page-main-header--steps">
<!--// Main title block STARTS-->
<div class="main-title-icon-wrapper">
<h1
class="text-left sec-page-main-title--steps sec-page-lead-text--light-blue sec-page-main-title--big main-title-icon-wrapper__title">
3. {{ "signup-account"|trans|raw }}
</h1>
<figure class="main-title-icon-wrapper__icon">
<img src="../assets/img/six_steps_icon3.svg" class="main-title-icon" alt="">
</figure>
</div>
<!--// Main title block ENDS-->
</header>
{#<header class="mt-0 text-center light-green-bg sec-page-main-header main-title-icon-wrapper">#}
{# <h1 class="text-left sec-page-main-title sec-page-lead-text--light-blue sec-page-main-title--big main-title-icon-wrapper__title">3. {{ "signup-account"|trans|raw }}</h1>#}
{# <figure class="main-title-icon-wrapper__icon">#}
{# <img src="../assets/img/six_steps_icon3.svg" class="main-title-icon" alt="">#}
{# </figure>#}
{#</header>#}
<!--// Main title block ENDS-->
<!--// Steps navbar STARTS-->
<nav aria-label="List of steps" class="mb-4 steps-nav-list-wrapper">
<div class="list-inline list-unstyled steps-nav-block">
<div class="steps-nav-block__item"><a href="{{ path('about_factors') }}" class="btn btn-raised btn-primary steps-nav-block__link">{{ "step"|trans|raw }} 1</a></div>
<div class="steps-nav-block__item"><a href="{{ path('about_plan') }}" class="btn btn-raised btn-primary steps-nav-block__link">{{ "step"|trans|raw }} 2</a></div>
<div class="steps-nav-block__item"><span class="active btn btn-raised btn-success steps-nav-block__link">{{ "step"|trans|raw }} 3</span></div>
<div class="steps-nav-block__item"><a href="{{ path('about_review') }}" class="btn btn-raised btn-primary steps-nav-block__link">{{ "step"|trans|raw }} 4</a></div>
<div class="steps-nav-block__item"><a href="{{ path('about_results') }}" class="btn btn-raised btn-primary steps-nav-block__link">{{ "step"|trans|raw }} 5</a></div>
<div class="steps-nav-block__item"><a href="{{ path('about_evaluate') }}" class="btn btn-raised btn-primary steps-nav-block__link">{{ "step"|trans|raw }} 6</a></div>
</div>
</nav>
<!--// Steps navbar ENDS-->
<!-- Intro content starts //-->
<div class="steps-intro-wrapper mhcc-intro-signup-content">
<p class="mb-4 sec-page-lead-text sec-page-lead-text--big sec-page-lead-text--dark-blue">{{ "sign-up-free-caring-healthcare-workers-acct"|trans|raw }}</p>
<p class="mhcc-about-intro-desc">{{ "note-organizational-representative"|trans|raw }}</p>
<p class="mhcc-about-intro-desc">{{ "login-taken-secured-section"|trans|raw }} </p>
<p class="mb-4 mhcc-about-intro-desc">{{ "vital-ensure-people"|trans|raw }}</p>
</div>
<!-- Intro content ends //-->
<!--Form block starts //-->
<section class="mhcc-secondary-bg">
<header><h1 class="sr-only">{{ "signup"|trans|raw }}</h1></header>
<!--Form description / form block STARTS //-->
<div class="dashboard-login-wrapper signup-form-wrapper">
<div class="dashboard-login-form dashboard-login-form--green signup-form">
<section class="card card-default shadow-6dp animated fadeIn animation-delay-7">
<header class="card-header mhcc-form-header bg-success">
<h2 class="text-center no-m pt-4 pb-4 color-white mhcc-form-title">{{ "signup"|trans|raw }}</h2>
</header>
<div class="card-block mhcc-card-block-form">
<form action="{{ path('about_signup' ) }}" method="POST">
<fieldset>
<legend class="dark-blue-text mb-2 mhcc-form-group">{{ "personal-info"|trans|raw }}</legend>
<div class="form-group label-floating mb-3 mhcc-form-group">
<label for="firstName" class="control-label">* {{ "first-name"|trans|raw }}</label>
<input type="text" name="firstName" id="firstName" value="{{ app.request.get('firstName') }}" class="form-control" required="required" />
</div>
<div class="form-group label-floating mb-3 mhcc-form-group">
<label for="lastName" class="control-label">* {{ "last-name"|trans|raw }}</label>
<input type="text" name="lastName" id="lastName" value="{{ app.request.get('lastName') }}" class="form-control" required="required" />
</div>
<div class="form-group label-floating mb-3 mhcc-form-group">
<label for="jobTitle" class="control-label">* {{ "job-title"|trans|raw }}</label>
<input type="text" name="jobTitle" id="jobTitle" value="{{ app.request.get('jobTitle') }}" class="form-control" required="required" />
</div>
<div class="form-group label-floating mb-3 mhcc-form-group">
<label for="departmentBranch" class="control-label">{{ "dept-branch"|trans|raw }}</label>
<input type="text" name="department" id="departmentBranch" value="{{ app.request.get('department') }}" class="form-control" />
</div>
<div class="form-group label-floating mb-3 mhcc-form-group">
<label for="phoneSignUp" class="control-label">* {{ "phone"|trans }}</label>
<input type="text" name="phoneNumber" id="phoneSignUp" value="{{ app.request.get('phoneNumber') }}" class="form-control" required="required" />
</div>
<div class="form-group label-floating mb-3 mhcc-form-group">
<label for="addressSignUp" class="control-label">* {{ "address"|trans|raw }}</label>
<input type="text" name="address" id="addressSignUp" value="{{ app.request.get('address') }}" class="form-control" required="required" />
</div>
<div class="form-group label-floating mb-3 mhcc-form-group">
<label for="citySignUp" class="control-label">* {{ "city"|trans|raw }}</label>
<input type="text" name="city" id="citySignUp" value="{{ app.request.get('city') }}" class="form-control" required="required" />
</div>
<div class="form-group mb-3 mhcc-form-group">
<div class="input-group" style="z-index:7; margin-left:-12px;">
<span class="input-group-addon"></span>
<label for="countrySignUp" class="control-label">* {{ "country"|trans|raw }}</label>
<div>
<select id="countrySignUp" name="country" class="form-control selectpicker" required>
<option value="">{{ "choose"|trans }}</option>
{% for country in countries %}
<option value="{{ country.iso_code }}"{% if app.request.get('country') == country.iso_code %} selected="selected"{% endif %}>{{ country.country_name|trans|raw }}</option>
{% endfor %}
</select>
</div>
</div>
</div>
<div class="form-group mb-4 mhcc-form-group" id="provinceStateSignUpSection" style="display:none;">
<div class="input-group" style="z-index:6;margin-left:-12px;">
<span class="input-group-addon" ></span>
<label for="provinceStateSignUp" class="control-label">* {{ "province"|trans|raw }}</label>
<div>
<select id="provinceStateSignUp" name="province" class="form-control selectpicker" required="required">
<option value="">{{ "choose"|trans }}</option>
{% for province in provinces %}
<option value="{{ province.province_code }}"{% if app.request.get('province') == province.province_code %} selected="selected"{% endif %}>{{ province.province_name|trans }}</option>
{% endfor %}
</select>
</div>
</div>
</div>
<div class="form-group label-floating mb-3 mhcc-form-group">
<label for="postalCodeSignUp" class="control-label">* {{ "postal-code"|trans|raw }}</label>
<input type="text" name="postalCode" id="postalCodeSignUp" value="{{ app.request.get('postalCode') }}" class="form-control" required="required" />
</div>
</fieldset>
<!--Organization Informtion block//-->
<fieldset>
<legend class="dark-blue-text mhcc-form-group">{{ "org-info"|trans|raw }}</legend>
<div class="form-group label-floating mb-3 mhcc-form-group">
<label for="organizationSignUp" class="control-label">* {{ "organization"|trans|raw }}</label>
<input type="text" name="organization" id="organizationSignUp" value="{{ app.request.get('organization') }}" class="form-control" required="required"/>
</div>
<div class="form-group mhcc-form-group">
<div class="input-group" style="z-index:5;margin-left:-12px;">
<span class="input-group-addon"></span>
<label for="numberEmployeesSignUp" class="control-label">* {{ "number-employees"|trans|raw }}</label>
<div>
<select id="numberEmployeesSignUp" name="employeesInOrg" class="form-control selectpicker" required="required">
<option value="">{{ "choose"|trans|raw }}</option>
<option value="0-4"{% if app.request.get('employeesInOrg') == "0-4" %} selected="selected"{% endif %}>0-4</option>
<option value="5-19"{% if app.request.get('employeesInOrg') == "5-19" %} selected="selected"{% endif %}>5-19</option>
<option value="20-49"{% if app.request.get('employeesInOrg') == "20-49" %} selected="selected"{% endif %}>20-49</option>
<option value="50-99"{% if app.request.get('employeesInOrg') == "50-99" %} selected="selected"{% endif %}>50-99</option>
<option value="100-299"{% if app.request.get('employeesInOrg') == "100-299" %} selected="selected"{% endif %}>100-299</option>
<option value="300-499"{% if app.request.get('employeesInOrg') == "300-499" %} selected="selected"{% endif %}>300-499</option>
<option value="500+"{% if app.request.get('employeesInOrg') == "500+" %} selected="selected"{% endif %}>500+</option>
<option value="no-response"{% if app.request.get('employeesInOrg') == "no-response" %} selected="selected"{% endif %}>{{ "dropdown-no-response"|trans|raw }}</option>
</select>
</div>
</div>
</div>
<div class="form-group mhcc-form-group">
<div class="input-group" style="z-index:4;margin-left:-12px;">
<span class="input-group-addon"></span>
<label for="orgTypeSignUp" class="control-label">* {{ "profit-nfp"|trans|raw }}</label>
<div>
<select id="orgTypeSignUp" name="orgType" class="form-control selectpicker" required="required">
<option value="">{{ "choose"|trans|raw }}</option>
<option value="profit"{% if app.request.get('orgType') == "profit" %} selected="selected"{% endif %}>{{ "dropdown-profit"|trans|raw }}</option>
<option value="not-for-profit"{% if app.request.get('orgType') == "not-for-profit" %} selected="selected"{% endif %}>{{ "dropdown-not-for-profit"|trans|raw }}</option>
<option value="no-response"{% if app.request.get('orgType') == "no-response" %} selected="selected"{% endif %}>{{ "dropdown-no-response"|trans|raw }}</option>
</select>
</div>
</div>
</div>
<div class="form-group mhcc-form-group">
<div class="input-group" style="z-index:3;margin-left:-12px;">
<span class="input-group-addon"></span>
<label for="private-public" class="control-label">* {{ "private-public-sector"|trans|raw }}</label>
<div>
<select id="private-public" name="sector" class="form-control selectpicker" required="required">
<option value="">{{ "choose"|trans|raw }}</option>
<option value="private"{% if app.request.get('sector') == "private" %} selected="selected"{% endif %}>{{ "dropdown-private-sector"|trans|raw }}</option>
<option value="public"{% if app.request.get('sector') == "public" %} selected="selected"{% endif %}>{{ "dropdown-public-sector"|trans|raw }}</option>
<option value="no-response"{% if app.request.get('sector') == "no-response" %} selected="selected"{% endif %}>{{ "dropdown-no-response"|trans|raw }}</option>
</select>
</div>
</div>
</div>
<div class="form-group mhcc-form-group">
<div class="input-group" style="z-index:2;margin-left:-12px;">
<span class="input-group-addon"></span>
<label for="unionStatusId" class="control-label">* {{ "union-non-union-mixed"|trans|raw }}</label>
<div>
<select id="unionStatusId" name="unionStatus" class="form-control selectpicker" required="required">
<option value="">{{ "choose"|trans|raw }}</option>
<option value="union"{% if app.request.get('unionStatus') == "union" %} selected="selected"{% endif %}>{{ "dropdown-union"|trans|raw }}</option>
<option value="non-union"{% if app.request.get('unionStatus') == "non-union" %} selected="selected"{% endif %}>{{ "dropdown-non-union"|trans|raw }}</option>
<option value="mixed"{% if app.request.get('unionStatus') == "mixed" %} selected="selected"{% endif %}>{{ "dropdown-mixed"|trans|raw }}</option>
<option value="no-response"{% if app.request.get('unionStatus') == "no-response" %} selected="selected"{% endif %}>{{ "dropdown-no-response"|trans|raw }}</option>
</select>
</div>
</div>
</div>
</fieldset>
<!--Account Informtion block//-->
<fieldset class="mb-3">
<legend class="dark-blue-text mhcc-form-group">{{ "account-info"|trans|raw }}</legend>
<div class="form-group label-floating mb-3 mhcc-form-group">
<label class="control-label" for="emailSignUp">* {{ "title-email"|trans|raw }}</label>
<input type="email" id="emailSignUp" name="emailAddress" class="form-control" required="required" />
</div>
<div class="form-group label-floating mb-3 mhcc-form-group">
<label class="control-label" for="passSignUp">* {{ "pw"|trans|raw }}</label>
<input type="password" id="passSignUp" name="password" class="form-control" required="required" />
</div>
<div class="form-group label-floating mb-3 mhcc-form-group">
<label class="control-label" for="passSignUp-retype">* {{ "retype-pw"|trans|raw }}</label>
<input type="password" id="passSignUp-retype" name="passwordRetype" class="form-control" required="required" />
</div>
<div class="form-group mb-3 mhcc-form-group">
<div class="checkbox">
<label class="agree-on-signup-block">
<input type="checkbox"{% if app.request.get('termsAccepted') %} checked="checked"{% endif %} id="hide-cover-check" name="termsAccepted"/>
<span class="checkbox-material"></span>
{# <p class="agree-on-signup-text">{{ "signup-check"|trans|raw }}</p> #}
<span class="display-block blackish-text agree-on-signup-text" style="margin-top:-7px;">
{{ "agree-use-survey-data-research-development"|trans|raw }}</span>
</label>
</div>
</div>
<div class="center-block dashboard-form-login-btn-block__btn">
<input type="submit" name="submitButton" class="btn btn-raised btn-success btn-block" value="{{ "sign-up"|trans|raw }}" />
</div>
</fieldset>
</form>
</div>
</section>
</div>
</div>
</section>
<!--Form block ends //-->
</article>
<!-- Modals: Begin -->
<div class="modal" id="learnMoreModal" tabindex="-1" role="dialog" aria-labelledby="learnMoreModalLabel">
<div class="modal-dialog animated zoomIn animated-3x" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true"><i class="zmdi zmdi-close"></i></span></button>
<h3 class="modal-title sr-only" id="learnMoreModalLabel">Learn more about my survey data</h3>
</div>
<div class="modal-body"><p>{{ "automated-report-based-results-pilot-testing"|trans|raw }}</p></div>
<div class="modal-footer"><button type="button" class="btn btn-default" data-dismiss="modal">{{ "close"|trans|raw }}</button></div>
</div>
</div>
</div>
</main>
{% endblock %}
{% block javascript %}
{{ parent() }}
<script>
{% if msg == "emailAlreadyExists" %}
Snackbar.show({ showAction: false,
pos: 'top-center',
text: '<h2><b>Oops</b></h2><h4>{{ "email-already-in-use"|trans }}</h4>', });
{% endif %}
var password = document.getElementById("passSignUp")
var confirm_password = document.getElementById("passSignUp-retype");
function validatePassword(){
if(password.value != confirm_password.value) {
confirm_password.setCustomValidity("Passwords Don't Match");
} else {
confirm_password.setCustomValidity('');
document.getElementById("resetpassword").submit();
}
}
password.onchange = validatePassword;
confirm_password.onkeyup = validatePassword;
/*Coutnry Selcetion */
/* Show province field when country is Canada */
$("#countrySignUp").on('change', function(e){
if($(e.target).val() != 'CA'){
$('#provinceStateSignUp').val('OTH').change(); // Defult to other when selcting ocuntry other than Canada. Can it be NULL??
$('#provinceStateSignUpSection').hide();
$('#provinceStateSignUp').prop("required", false);
}else{
$('#provinceStateSignUp').val('').change();
$('#provinceStateSignUpSection').show();
$('#provinceStateSignUp').prop("required", true);
}
});
$("#countrySignUp").change();
/* Only used when page is postbak*/
var postBackPRovinceValue = "{{ app.request.get('province') }}";
$('#provinceStateSignUp').val(postBackPRovinceValue).change();
/* Only used when page is postbak */
/*Coutnry Selcetion */
</script>
{% endblock %}