{% extends 'base_frontend.html.twig' %}

{% block title %} Parrainer un ami(e) {% endblock %}

{% block content %}
<!-- ============================================== HEADER : END ============================================== -->
<div class="breadcrumb">
	<div class="breadcrumb-inner">
		<ul class="list-inline list-unstyled">
			<li><a href="{{ path('frontend_home_index') }}">Mon Profile</a></li>
			<li class='active'>Parrainer un ami(e)</li>
		</ul>
	</div><!-- /.breadcrumb-inner -->
</div><!-- /.breadcrumb -->

<div class="body-content ">
	
		<div class="sign-in-page">
			<div class="row">
				<!-- Sign-in -->	
                <div class="col-md-4 col-sm-4">
                    <h3>Parrainer un ami(e)</h3>
                    <br>
                    <font size="4">
                        <p>
                            pour 10 inscrits sur le site tu auras <b>-1%</b>  redition frais de service  
                        </p>
                    </font>
                    <br>
                    {% if parrainages|length > 0 %}
                        Total des amis parrainer <b>{{ parrainages|length }}</b>
                        <ul class="list-group">
                            {% for parrainage in parrainages %}
                                <li class="list-group-item">{{ parrainage.new.email }}</li>
                            {% endfor %}
                        </ul>
                    {% endif %}
                </div>		
                <div class="col-md-6 col-sm-6  col-md-offset-1">

                    <font size="3">Copier l'url d'inscrits</font>
                    <textarea style="width: 770px; height: 138px; margin-bottom:15px;margin-top:15px;" id="urlParinage">{{ urlParinage }}</textarea>
                    <div style="float: right;">
                        <button type="button" id="copurl" class="btn btn-secondary">copier</button>
                    </div>

                    {{ form_start(form, {'attr': {'class': 'register-form outer-top-xs'}}) }}
                        <br>
                        <div class="form-group">
                            <label class="info-title">{{ form_label(form.email) }} <span>*</span></label>
                            {{ form_widget(form.email, {'attr': {'class': 'form-control unicase-form-control text-input'}}) }}
                            <span class="help-block">{{ form_errors(form.email) }}</span>
                        </div>
                        
                        {{ form_row(form.save, { 'label': "envoyer", 'attr': {'class': 'btn btn-primary'} }) }}
                        

                    {{ form_end(form) }}	
                    			
                </div>
                <!-- Sign-in -->		
            </div><!-- /.row -->
		</div><!-- /.sigin-in-->
        <br><br><br><br>
    
</div>
{% endblock %}