{% extends "base.html.twig" %}
{% block body %}
{% embed "1-col-sidebar.html.twig" %}
{% block column %}
{% if message is defined and message %}
<div class="alert alert-{{ message.type }}">
{% if message.type == 'warning' %}
<i class="fa fa-exclamation-triangle"></i>
{% elseif message.type == 'success' %}
<i class="fa fa-check"></i>
{% endif %}
{{ message.text | raw}}
</div>
{% endif %}
{% if site_code == constant("App\\Entity\\Content::SITE_RCS") %}
{% include "includes/curtain-ads/rclub.html.twig" %}
{% endif %}
{% if content.getShowTitle() %}
<h1>{{ content.getTitle() | raw }}</h1>
{% endif %}
{% if content.getFeaturedImageTag() %}
{% if content.getMediaURL() %}<a href="{{content.getMediaURL()}}">{% endif %}
{{ content.getFeaturedImageTag("display-block","")|raw }}
{% if content.getMediaURL() %}</a>{% endif %}
{% endif %}
<form id="rcsclubform" method="post" action="" enctype="multipart/form-data" style="margin-top:20px;">
{% if app.user is empty %}
<div class="row mb-3">
<div class="col-md-12">
<div class="alert alert-info">
<i class="fa fa-info"></i>
A user account is required to continue. If you don't have an account, you can create one below.<br>Your account details will be confirmed via e-mail. <!-- ' -->
</div>
</div>
<div class="col-md-6" style="margin-top:0px;">
{#
<strong>Have an Account?</strong>
<div class="">
<a class="button text-white" href="/sign-in"><i class="fa fa-key"></i> Sign In</a>
</div>
#}
<strong>Have an Account?</strong>
<div class="form-check">
<input class="form-check-input" type="radio" name="signType" id="signInRadio" value="signIn" required>
<label class="form-check-label" for="signInRadio">
Sign In
</label>
</div>
</div>
<div class="col-md-6">
{#<strong>First Time User?</strong>
<div class="">
<a class="button text-white" href="/sign-up"><i class="fa fa-key"></i> Sign Up</a>
</div>
#}
<strong>First Time User?</strong>
<div class="form-check">
<input class="form-check-input" type="radio" name="signType" id="signUpRadio" value="signUp" required>
<label class="form-check-label" for="signUpRadio">
Sign Up
</label>
</div>
</div>
</div>
<div class="row mb-3" id="signInSection" style="display:none;">
<div class="col-md-12">
{#<form action="/sign-in" method="post">#}
{#<form id="rcsclubform" method="post" action="" enctype="multipart/form-data">#}
<input type="hidden" id="signin" name="signin" value="1">
<div class="row">
<div class="col-sm-6">
<label class="btn-block">Username or Email Address
<input
class="form-control"
type="text"
name="_username"
placeholder="Your Username or Email Address"
/>
</label>
</div>
<div class="col-sm-6">
<label class="btn-block">Password
<input
class="form-control"
type="password"
name="_password"
placeholder="Your Password"
/>
</label>
</div>
</div>
{#<button
type="submit"
class="btn btn-secondary text-white bg-dark mt-2"
>Sign In</button>#}
{#</form>#}
</div>
</div>
<div class="row mb-3" id="signUpSection" style="display:none;">
<div class="col-md-12">
{#<form method="post" action="">#}
{#<form id="rcsclubform" method="post" action="" enctype="multipart/form-data">#}
<input type="hidden" id="site-signup" name="site-signup" value="1">
<div class="row">
<div class="col-sm-6">
<label class="btn-block"><span>First Name:<span style="color:red"> *</span></span>
<input
class="form-control"
type="text"
name="lead[firstname]"
placeholder="Your First Name"
value="{{ firstname is defined ? firstname : '' }}"
/>
</label>
</div>
<div class="col-sm-6">
<label class="btn-block"><span>Last Name:<span style="color:red"> *</span></span>
<input
class="form-control"
type="text"
name="lead[lastname]"
placeholder="Your Last Name"
value="{{ lastname is defined ? lastname : '' }}"
/>
</label>
</div>
<div class="col-sm-6">
<label class="btn-block">Your Username<span style="color:red"> *</span>
<input
class="form-control"
type="text"
name="lead[username]"
placeholder="Your Username"
value="{{ username is defined ? username : '' }}"
/>
</label>
<span><i class="fa fa-exclamation-triangle"></i> Username must be greater than 5 characters in length.</span>
</div>
<div class="col-sm-6">
<label class="btn-block">Your E-mail Address<span style="color:red"> *</span>
<input
class="form-control"
type="text"
name="lead[email]"
placeholder="Your E-mail Address"
value="{{ email is defined ? email : '' }}"
/>
</label>
</div>
<div class="col-sm-6">
<label class="btn-block">Your Password<span style="color:red"> *</span>
<input
class="form-control"
type="password"
name="password1"
placeholder="Your Password"
/>
</label>
</div>
<div class="col-sm-6">
<label class="btn-block">Confirm Password<span style="color:red"> *</span>
<input
class="form-control"
type="password"
name="password2"
placeholder="Confirm Your Password"
/>
</label>
</div>
<div class="col-sm-6">
<label class="btn-block">Address Line 1<span style="color:red"> *</span>
<input
class="form-control"
type="text"
name="lead[address1]"
placeholder="Your Address Line 1"
value="{{ address1 is defined ? firstname : '' }}"
/>
</label>
</div>
<div class="col-sm-6">
<label class="btn-block">Address Line 2<span style="color:red"></span>
<input
class="form-control"
type="text"
name="lead[address2]"
placeholder="Your Address Line 2"
value="{{ address2 is defined ? firstname : '' }}"
/>
</label>
</div>
<div class="col-sm-6">
<label class="btn-block">City<span style="color:red"> *</span>
<input
class="form-control"
type="text"
name="lead[city]"
placeholder="Your City"
value="{{ city is defined ? firstname : '' }}"
/>
</label>
</div>
<div class="col-sm-6">
<label class="btn-block">State / Region<span style="color:red"> *</span>
<input
class="form-control"
type="text"
name="lead[state]"
placeholder="Your State / Region"
value="{{ state is defined ? firstname : '' }}"
/>
</label>
</div>
<div class="col-sm-6">
<label class="btn-block">Zip Code<span style="color:red"> *</span>
<input
class="form-control"
type="text"
name="lead[zip]"
placeholder="Your Zip Code"
value="{{ zip is defined ? firstname : '' }}"
/>
</label>
</div>
<div class="col-sm-6" id="outer-company-div" {#style="display:none;"#}>
<label class="btn-block">Company<span style="color:red"> *</span>
<input
class="form-control"
type="text"
{#name="lead[company_inactive]"#}
name="lead[company]"
placeholder="Your Company"
value="{% if company is defined %}{{company}}{% endif %}"
id="company1"
/>
</label>
</div>
<div class="col-sm-6">
<label class="btn-block"><span>Phone Number:{#<span style="color:red"> *</span>#}</span>
<input
type="text"
class="form-control enews-field"
placeholder="Your Phone Number"
name="lead[phone]"
value="{% if phone is defined %}{{phone}}{% endif %}"
{#required#}
/>
</label>
</div>
<div class="col-sm-6">
<label class="btn-block"><span>Type of Work Performed:<span style="color:red"> *</span></span>
<select
class="form-control enews-field"
name="lead[contractor_type]"
>
<option value="Primarily Commercial">Primarily Commercial</option>
<option value="Primarily Residential">Primarily Residential</option>
<option value="Both">Both</option>
<option value="Other">Other</option>
<option value="Not a Contractor">Not a Contractor</option>
</select>
</label>
</div>
<div class="col-sm-6">
<label class="btn-block"><span>Country:<span style="color:red"> *</span></span></label>
<label class="btn-block">
<input
type="radio"
name="lead[country]"
value="United States"
class="enews-field"
checked
/>
<span>United States</span>
</label>
<label class="btn-block">
<input
type="radio"
name="lead[country]"
value="Canada"
class="enews-field"
/>
<span>Canada</span>
</label>
<label class="btn-block">
<input
type="radio"
name="lead[country]"
value="European Countries"
class="enews-field"
/>
<span>European Countries</span>
</label>
<label class="btn-block">
<input
type="radio"
name="lead[country]"
value="Other"
class="enews-field"
/>
<span><input
type="text"
placeholder="Other"
name="lead[country_other]"
class="enews-field"
/></span>
</label>
</div>
<div class="col-sm-6">
<label class="btn-block"><span>Business Type:<span style="color:red"> *</span></span>
<select
class="form-control enews-field"
name="lead[business_type]"
>
<option value="Roofing Contractor">Roofing Contractor</option>
<option value="Exterior/General Contractor">Exterior/General Contractor</option>
<option value="Distributor">Distributor</option>
<option value="Manufacturer/Business Services">Manufacturer/Business Services</option>
<option value="Other">Other</option>
</select>
</label>
</div>
{#<h6>2. Add the "Week In Roofing" E-news</h6>#}
<div class="col-sm-12" {# class="form-check" #} style="margin-top:30px;padding-left:25px;">
<input class="form-check-input" type="checkbox" value="1" id="enews" name="enews" {#onclick="clickEnews()"#} checked>
<label class="form-check-label" for="enews">
<span class="rtooltip">Sign up for Week In Roofing? <i class="fa fa-info-circle"></i>
<div class="rtooltiptext" style="top:-30px;left:225px;width:260px;padding-left:10px;">
Our weekly newsletter - an inside look <br>at the roofing industry, week by week!
</div>
</span>
</label>
</div>
<div class="col-sm-12" style="margin-top:30px;padding-left:25px;">
<input class="form-check-input" type="checkbox" value="1" id="metal-enews" name="metal-enews" checked>
<label class="form-check-label" for="metal-enews">
<span class="rtooltip">Sign up for Week In Metal? <i class="fa fa-info-circle"></i>
<div class="rtooltiptext" style="top:-30px;left:225px;width:260px;padding-left:10px;">
Our weekly newsletter - an inside look <br>at the metal industry, week by week!
</div>
</span>
</label>
</div>
<div class="col-sm-12" style="margin-top:30px;padding-left:25px;">
<input class="form-check-input" type="checkbox" value="yes" id="rclub_interest" name="lead_custom[rclub_interest]">
<label class="form-check-label" for="rclub_interest">
<span class="rtooltip">Interested in R-Club? <i class="fa fa-info-circle"></i>
<div class="rtooltiptext" style="top:-30px;left:165px;width:210px;padding-left:10px;">
The most exclusive roofing contractors club in the world!
</div>
</span>
</label>
</div>
</div>
{#
<div style="text-align:center;">
<button
type="submit"
class="btn btn-secondary mt-2"
style="font-size: 22px;"
>Sign Up</button>
</div>
<br>
<p>*Please check your spam folder if you don't receive an activation e-mail after several minutes. Contact us at info@rooferscoffeeshop.com if you need any additional help.</p>
#}
{#</form>#}
</div>
</div>
{% endif %}
{% if app.user is not empty and app.user.isMember() %}
<h4><center>You're already a member, thank you!</center><h4> {# ' #}
{% else %}
{% for product in products %}
<label class="d-block">
<table class="table">
<tr>
<td style="width: 1px">
<input
name="club_product_id"
type="radio"
value="{{ product.getId() }}"
required
/>
</td>
<td>
<h5 class="m-0 p-0">{{ product.getTitle() }}</h5>
{{ product.getDescription()|raw }}<br />
<strong>{{ product.getFullPrice() }}</strong>
</td>
</tr>
</table>
</label>
{% endfor %}
<div class="form-row g-recaptcha" data-sitekey="6LeEIlMUAAAAAGhdmJJLdJHPxaWx2GqBjber5n6B" required></div>
<center>
<button
class="btn btn-primary"
type="submit"
>Become a Member</button>
</center>
<br>
<p>Each directory offers the ability to list your company name, logo (that links to your website), company description, corporate address, phone number, email address and links to your website, Facebook, X, LinkedIn, Instagram, and YouTube pages. You can also add unlimited keywords to be searched by in the directory and the website at large. This listing will be featured on future in the RoofersCoffeeShop directory.</p>
<p>Please contact our R-Club Coordinator, Alex Tolle, with any questions or if you need any assistance signing up.</p>
<p>*Standard Directory included with Company Membership only.</p>
<p>**Interactive Directory included with Premium Contractors Membership only.</p>
</p>
{% endif %}
{#{% endif %}#}
</form>
<hr style="margin-top:20px;margin-bottom:35px;">
<div>
{{ content.getContentFull() | wordpress | raw }}
</div>
<script>
(function ($) {
$(function () {
$("input[name$='signType']").prop('checked', false);
$("input[name$='signType']").change(function() {
var signType = $(this).val();
if(signType == "signIn") {
$("#signInSection > input").each(function() {
$(this).prop('required',true);
});
$("#signUpSection > input").each(function() {
$(this).prop('required',false);
});
$("#signInSection").show();
$("#signUpSection").hide();
} else if(signType == "signUp") {
$("#signInSection > input").each(function() {
$(this).prop('required',false);
});
$("#signUpSection > input").each(function() {
if($(this).attr('name') != 'lead[address2]' && $(this).attr('name') != 'lead[phone]') {
$(this).prop('required',true);
}
});
$("#signInSection").hide();
$("#signUpSection").show();
}
});
});
}(jQuery));
</script>
{% endblock %}
{% block sidebar %}
{% include "includes/sidebar.html.twig" %}
{% endblock %}
{% endembed %}
{% endblock %}