templates/forms/rcs-club-sign-up.html.twig line 1

Open in your IDE?
  1. {% extends "base.html.twig" %}
  2. {% block body %}
  3. {% embed "1-col-sidebar.html.twig" %}
  4. {% block column %}
  5.     {% if message is defined and message %}
  6.         <div class="alert alert-{{ message.type }}">
  7.         {% if message.type == 'warning' %}
  8.             <i class="fa fa-exclamation-triangle"></i> 
  9.         {% elseif message.type == 'success' %}
  10.             <i class="fa fa-check"></i> 
  11.         {% endif %}
  12.         {{ message.text | raw}}
  13.         </div>
  14.     {% endif %}
  15.     {% if site_code == constant("App\\Entity\\Content::SITE_RCS") %}
  16.         {% include  "includes/curtain-ads/rclub.html.twig" %}
  17.     {% endif %}
  18. {% if content.getShowTitle() %}
  19.     <h1>{{ content.getTitle() | raw }}</h1>
  20. {% endif %}
  21. {% if content.getFeaturedImageTag() %}
  22.     {% if content.getMediaURL() %}<a href="{{content.getMediaURL()}}">{% endif %}
  23.         {{ content.getFeaturedImageTag("display-block","")|raw }}
  24.         {% if content.getMediaURL() %}</a>{% endif %}
  25. {% endif %}
  26. <form id="rcsclubform" method="post" action="" enctype="multipart/form-data" style="margin-top:20px;">
  27.     
  28.     {% if app.user is empty %}
  29.     <div class="row mb-3">
  30.         <div class="col-md-12">
  31.             <div class="alert alert-info">
  32.                 <i class="fa fa-info"></i> 
  33.                  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. <!-- ' -->
  34.             </div>
  35.         </div>
  36.         <div class="col-md-6" style="margin-top:0px;">
  37.             {#
  38.             <strong>Have an Account?</strong>
  39.             <div class="">
  40.                 <a class="button text-white" href="/sign-in"><i class="fa fa-key"></i> Sign In</a>
  41.             </div>
  42.             #}
  43.             <strong>Have an Account?</strong>
  44.             <div class="form-check">
  45.                 <input class="form-check-input" type="radio" name="signType" id="signInRadio" value="signIn" required>
  46.                 <label class="form-check-label" for="signInRadio">
  47.                     Sign In
  48.                 </label>
  49.             </div>
  50.         </div>
  51.         <div class="col-md-6">
  52.             {#<strong>First Time User?</strong>
  53.             <div class="">
  54.                 <a class="button text-white" href="/sign-up"><i class="fa fa-key"></i> Sign Up</a>
  55.             </div>
  56.             #}
  57.             <strong>First Time User?</strong>
  58.             <div class="form-check">
  59.                 <input class="form-check-input" type="radio" name="signType" id="signUpRadio" value="signUp" required>
  60.                 <label class="form-check-label" for="signUpRadio">
  61.                     Sign Up
  62.                 </label>
  63.             </div>
  64.         </div>
  65.     </div>
  66.     <div class="row mb-3" id="signInSection" style="display:none;">
  67.         <div class="col-md-12">
  68.             {#<form action="/sign-in" method="post">#}
  69.             {#<form id="rcsclubform" method="post" action="" enctype="multipart/form-data">#}
  70.                 
  71.                 <input type="hidden" id="signin" name="signin" value="1">
  72.                 <div class="row">
  73.                     <div class="col-sm-6">
  74.                         <label class="btn-block">Username or Email Address
  75.                             <input 
  76.                                 class="form-control" 
  77.                                 type="text" 
  78.                                 name="_username" 
  79.                                 placeholder="Your Username or Email Address"
  80.                             />
  81.                         </label>
  82.                     </div>
  83.                     <div class="col-sm-6">
  84.                         <label class="btn-block">Password
  85.                             <input 
  86.                                 class="form-control" 
  87.                                 type="password" 
  88.                                 name="_password" 
  89.                                 placeholder="Your Password"
  90.                             />
  91.                         </label>
  92.                     </div>
  93.                 </div>
  94.                 
  95.                 {#<button 
  96.                     type="submit" 
  97.                     class="btn btn-secondary text-white bg-dark mt-2"
  98.                 >Sign In</button>#}
  99.             {#</form>#}
  100.         </div>
  101.     </div>
  102.     <div class="row mb-3" id="signUpSection" style="display:none;">
  103.         <div class="col-md-12">
  104.             {#<form method="post" action="">#}
  105.             {#<form id="rcsclubform" method="post" action="" enctype="multipart/form-data">#}
  106.                 <input type="hidden" id="site-signup" name="site-signup" value="1">
  107.                 
  108.                 <div class="row">
  109.                     <div class="col-sm-6">
  110.                         <label class="btn-block"><span>First Name:<span style="color:red"> *</span></span>
  111.                             <input
  112.                                 class="form-control"
  113.                                 type="text"
  114.                                 name="lead[firstname]"
  115.                                 placeholder="Your First Name"
  116.                                 value="{{ firstname is defined ? firstname : '' }}"
  117.                             />
  118.                         </label>    
  119.                     </div>
  120.                     <div class="col-sm-6">
  121.                         <label class="btn-block"><span>Last Name:<span style="color:red"> *</span></span>
  122.                             <input
  123.                                 class="form-control"
  124.                                 type="text"
  125.                                 name="lead[lastname]"
  126.                                 placeholder="Your Last Name"
  127.                                 value="{{ lastname is defined ? lastname : '' }}"
  128.                             />
  129.                         </label>
  130.                     </div>
  131.                     
  132.                     <div class="col-sm-6">
  133.                         <label class="btn-block">Your Username<span style="color:red"> *</span>
  134.                             <input
  135.                                 class="form-control"
  136.                                 type="text"
  137.                                 name="lead[username]"
  138.                                 placeholder="Your Username"
  139.                                 value="{{ username is defined ? username : '' }}"
  140.                             />
  141.                         </label>
  142.                         <span><i class="fa fa-exclamation-triangle"></i> Username must be greater than 5 characters in length.</span>
  143.                     </div>
  144.                     <div class="col-sm-6">
  145.                         <label class="btn-block">Your E-mail Address<span style="color:red"> *</span>
  146.                             <input
  147.                                 class="form-control"
  148.                                 type="text"
  149.                                 name="lead[email]"
  150.                                 placeholder="Your E-mail Address"
  151.                                 value="{{ email is defined ? email : '' }}"
  152.                             />
  153.                         </label>
  154.                     </div>
  155.                     
  156.                     <div class="col-sm-6">
  157.                         <label class="btn-block">Your Password<span style="color:red"> *</span>
  158.                             <input
  159.                                 class="form-control"
  160.                                 type="password"
  161.                                 name="password1"
  162.                                 placeholder="Your Password"
  163.                             />
  164.                         </label>
  165.                     </div>
  166.                     <div class="col-sm-6">
  167.                         <label class="btn-block">Confirm Password<span style="color:red"> *</span>
  168.                             <input
  169.                                 class="form-control"
  170.                                 type="password"
  171.                                 name="password2"
  172.                                 placeholder="Confirm Your Password"
  173.                             />
  174.                         </label>
  175.                     </div>
  176.                     
  177.                     <div class="col-sm-6">
  178.                         <label class="btn-block">Address Line 1<span style="color:red"> *</span>
  179.                             <input
  180.                                 class="form-control"
  181.                                 type="text"
  182.                                 name="lead[address1]"
  183.                                 placeholder="Your Address Line 1"
  184.                                 value="{{ address1 is defined ? firstname : '' }}"
  185.                             />
  186.                         </label>
  187.                     </div>
  188.                     <div class="col-sm-6">
  189.                         <label class="btn-block">Address Line 2<span style="color:red"></span>
  190.                             <input
  191.                                 class="form-control"
  192.                                 type="text"
  193.                                 name="lead[address2]"
  194.                                 placeholder="Your Address Line 2"
  195.                                 value="{{ address2 is defined ? firstname : '' }}"
  196.                             />
  197.                         </label>
  198.                     </div>
  199.                     <div class="col-sm-6">
  200.                         <label class="btn-block">City<span style="color:red"> *</span>
  201.                             <input
  202.                                 class="form-control"
  203.                                 type="text"
  204.                                 name="lead[city]"
  205.                                 placeholder="Your City"
  206.                                 value="{{ city is defined ? firstname : '' }}"
  207.                             />
  208.                         </label>
  209.                     </div>
  210.                     <div class="col-sm-6">
  211.                         <label class="btn-block">State / Region<span style="color:red"> *</span>
  212.                             <input
  213.                                 class="form-control"
  214.                                 type="text"
  215.                                 name="lead[state]"
  216.                                 placeholder="Your State / Region"
  217.                                 value="{{ state is defined ? firstname : '' }}"
  218.                             />
  219.                         </label>
  220.                     </div>
  221.                     <div class="col-sm-6">
  222.                         <label class="btn-block">Zip Code<span style="color:red"> *</span>
  223.                             <input
  224.                                 class="form-control"
  225.                                 type="text"
  226.                                 name="lead[zip]"
  227.                                 placeholder="Your Zip Code"
  228.                                 value="{{ zip is defined ? firstname : '' }}"
  229.                             />
  230.                         </label>
  231.                     </div>
  232.                     <div class="col-sm-6" id="outer-company-div" {#style="display:none;"#}>
  233.                         <label class="btn-block">Company<span style="color:red"> *</span>
  234.                             <input
  235.                                 class="form-control"
  236.                                 type="text"
  237.                                 {#name="lead[company_inactive]"#}
  238.                                 name="lead[company]"
  239.                                 placeholder="Your Company"
  240.                                 value="{% if company is defined %}{{company}}{% endif %}"
  241.                                 id="company1"
  242.                             />
  243.                         </label>
  244.                     </div>
  245.                     
  246.                     <div class="col-sm-6">
  247.                         <label class="btn-block"><span>Phone Number:{#<span style="color:red"> *</span>#}</span>
  248.                             <input
  249.                                 type="text"
  250.                                 class="form-control enews-field"
  251.                                 placeholder="Your Phone Number"
  252.                                 name="lead[phone]"
  253.                                 value="{% if phone is defined %}{{phone}}{% endif %}"
  254.                                 {#required#}
  255.                             />
  256.                         </label>
  257.                     </div>
  258.                     
  259.                     <div class="col-sm-6">
  260.                         <label class="btn-block"><span>Type of Work Performed:<span style="color:red"> *</span></span>
  261.                             <select
  262.                                 class="form-control enews-field"
  263.                                 name="lead[contractor_type]"
  264.                             >
  265.                             <option value="Primarily Commercial">Primarily Commercial</option>
  266.                             <option value="Primarily Residential">Primarily Residential</option>
  267.                             <option value="Both">Both</option>
  268.                             <option value="Other">Other</option>
  269.                             <option value="Not a Contractor">Not a Contractor</option>
  270.                             </select>
  271.                         </label>
  272.                     </div>
  273.                     
  274.                     <div class="col-sm-6">
  275.                         <label class="btn-block"><span>Country:<span style="color:red"> *</span></span></label>
  276.                         <label class="btn-block">
  277.                             <input
  278.                                 type="radio"
  279.                                 name="lead[country]"
  280.                                 value="United States"
  281.                                 class="enews-field"
  282.                                 checked
  283.                             />
  284.                             <span>United States</span>
  285.                         </label>
  286.                         <label class="btn-block">
  287.                             <input
  288.                                 type="radio"
  289.                                 name="lead[country]"
  290.                                 value="Canada"
  291.                                 class="enews-field"
  292.                             />
  293.                             <span>Canada</span>
  294.                         </label>
  295.                         <label class="btn-block">
  296.                             <input
  297.                                 type="radio"
  298.                                 name="lead[country]"
  299.                                 value="European Countries"
  300.                                 class="enews-field"
  301.                             />
  302.                             <span>European Countries</span>
  303.                         </label>
  304.                         <label class="btn-block">
  305.                             <input
  306.                                 type="radio"
  307.                                 name="lead[country]"
  308.                                 value="Other"
  309.                                 class="enews-field"
  310.                             />
  311.                             <span><input
  312.                                 type="text"
  313.                                 placeholder="Other"
  314.                                 name="lead[country_other]"
  315.                                 class="enews-field"
  316.                             /></span>
  317.                         </label>
  318.                     </div>
  319.                     
  320.                     <div class="col-sm-6">
  321.                         <label class="btn-block"><span>Business Type:<span style="color:red"> *</span></span>
  322.                             <select
  323.                                 class="form-control enews-field"
  324.                                 name="lead[business_type]"
  325.                             >
  326.                                 <option value="Roofing Contractor">Roofing Contractor</option>
  327.                                 <option value="Exterior/General Contractor">Exterior/General Contractor</option>
  328.                                 <option value="Distributor">Distributor</option>
  329.                                 <option value="Manufacturer/Business Services">Manufacturer/Business Services</option>
  330.                                 <option value="Other">Other</option>
  331.                             </select>
  332.                         </label>
  333.                     </div>
  334.                     
  335.                     
  336.                     {#<h6>2. Add the "Week In Roofing" E-news</h6>#}
  337.                     
  338.                     <div class="col-sm-12" {# class="form-check" #} style="margin-top:30px;padding-left:25px;">
  339.                         <input class="form-check-input" type="checkbox" value="1" id="enews" name="enews" {#onclick="clickEnews()"#} checked>
  340.                         <label class="form-check-label" for="enews">
  341.                             <span class="rtooltip">Sign up for Week In Roofing? <i class="fa fa-info-circle"></i>
  342.                                 <div class="rtooltiptext" style="top:-30px;left:225px;width:260px;padding-left:10px;">
  343.                                     Our weekly newsletter - an inside look <br>at the roofing industry, week by week!
  344.                                 </div>
  345.                             </span>
  346.                         </label>
  347.                     </div>
  348.                     <div class="col-sm-12" style="margin-top:30px;padding-left:25px;">
  349.                         <input class="form-check-input" type="checkbox" value="1" id="metal-enews" name="metal-enews" checked>
  350.                         <label class="form-check-label" for="metal-enews">
  351.                             <span class="rtooltip">Sign up for Week In Metal? <i class="fa fa-info-circle"></i>
  352.                                 <div class="rtooltiptext" style="top:-30px;left:225px;width:260px;padding-left:10px;">
  353.                                     Our weekly newsletter - an inside look <br>at the metal industry, week by week!
  354.                                 </div>
  355.                             </span>
  356.                         </label>
  357.                     </div>
  358.                     <div class="col-sm-12" style="margin-top:30px;padding-left:25px;">
  359.                         <input class="form-check-input" type="checkbox" value="yes" id="rclub_interest" name="lead_custom[rclub_interest]">
  360.                         <label class="form-check-label" for="rclub_interest">
  361.                             <span class="rtooltip">Interested in R-Club? <i class="fa fa-info-circle"></i>
  362.                                 <div class="rtooltiptext" style="top:-30px;left:165px;width:210px;padding-left:10px;">
  363.                                     The most exclusive roofing contractors club in the world!
  364.                                 </div>
  365.                             </span>
  366.                         </label>
  367.                     </div>
  368.                     
  369.                     
  370.                 </div>
  371.                 {#
  372.                 <div style="text-align:center;">
  373.                     <button
  374.                         type="submit" 
  375.                         class="btn btn-secondary mt-2"
  376.                         style="font-size: 22px;"
  377.                     >Sign Up</button>
  378.                 </div>
  379.                 
  380.                 <br>
  381.                 <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>
  382.                 #}
  383.             {#</form>#}
  384.         </div>
  385.     </div>
  386.     
  387.     
  388.     {% endif %}
  389.     
  390.     
  391.     {% if app.user is not empty and app.user.isMember() %}
  392.         <h4><center>You're already a member, thank you!</center><h4> {# ' #}
  393.     {% else %}
  394.         
  395.         {% for product in products %}
  396.             <label class="d-block">
  397.                 <table class="table">
  398.                     <tr>
  399.                         <td style="width: 1px">
  400.                         <input
  401.                             name="club_product_id"
  402.                             type="radio"
  403.                             value="{{ product.getId() }}"
  404.                             required
  405.                         />
  406.                         </td>
  407.                         <td>
  408.                             <h5 class="m-0 p-0">{{ product.getTitle() }}</h5>
  409.                             {{ product.getDescription()|raw }}<br />
  410.                             <strong>{{ product.getFullPrice() }}</strong>
  411.                         </td>
  412.                     </tr>
  413.                 </table>
  414.             </label>
  415.         {% endfor %}
  416.         <div class="form-row g-recaptcha" data-sitekey="6LeEIlMUAAAAAGhdmJJLdJHPxaWx2GqBjber5n6B" required></div>
  417.         <center>
  418.         <button
  419.             class="btn btn-primary"
  420.             type="submit"
  421.         >Become a Member</button>
  422.         </center>
  423.         <br>
  424.         <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>
  425.         <p>Please contact our R-Club Coordinator, Alex Tolle, with any questions or if you need any assistance signing up.</p>
  426.         <p>*Standard Directory included with Company Membership only.</p>
  427.         <p>**Interactive Directory included with Premium Contractors Membership only.</p>
  428.         </p>
  429.     {% endif %}
  430.         
  431.     {#{% endif %}#}
  432.     
  433. </form>
  434. <hr style="margin-top:20px;margin-bottom:35px;">
  435. <div>
  436.     {{ content.getContentFull() | wordpress | raw }}
  437. </div>
  438. <script>
  439.     (function ($) {
  440.         $(function () {
  441.             $("input[name$='signType']").prop('checked', false);
  442.             
  443.              $("input[name$='signType']").change(function() {
  444.                 var signType = $(this).val();
  445.                 if(signType == "signIn") {
  446.                     
  447.                     $("#signInSection > input").each(function() {
  448.                         $(this).prop('required',true);
  449.                     });
  450.                     $("#signUpSection > input").each(function() {
  451.                         $(this).prop('required',false);
  452.                     });
  453.                     $("#signInSection").show();
  454.                     $("#signUpSection").hide();
  455.                 } else if(signType == "signUp") {
  456.                     $("#signInSection > input").each(function() {
  457.                         $(this).prop('required',false);
  458.                     });
  459.                     $("#signUpSection > input").each(function() {
  460.                         if($(this).attr('name') != 'lead[address2]' && $(this).attr('name') != 'lead[phone]') {
  461.                             $(this).prop('required',true);
  462.                         }
  463.                     });
  464.                     $("#signInSection").hide();
  465.                     $("#signUpSection").show();
  466.                 }
  467.             });
  468.         });
  469.     }(jQuery));
  470. </script>
  471. {% endblock %}
  472. {% block sidebar %}
  473.     {% include "includes/sidebar.html.twig" %}
  474. {% endblock %}
  475. {% endembed %}
  476. {% endblock %}