<commit_before>{% extends '::base.institution.html.twig' %}

{% block title %} {{ site_name }} &raquo; Sign up{% endblock %}

{% block body %}

<body>
    <div class="container">
        <div class="span5 signupbox">
            <div class="medicalbox-big"><img src="{{ asset('images/institution/medical-clip.png') }}"/></div>
            <a href="{{ path('main_homepage') }}"><h1>HEALTHCARE ABROAD</h1></a>
            
            <h3>Create an account.</h3>
            <p>Please provide the correct information below, and we will create an exclusive medical account listing for you.</p>
            <div class="row-fluid">
                <form novalidate="novalidate" action="{{ path('institution_signUp') }}" method="POST" class="form">
                    
                    {{ form_errors(form) }}
                    
                    <fieldset>
                        <label for="institution name"><b>Name of the Institution</b></label>
                        <div>
                            <div class="input-prepend">
                                {{ form_widget(form.name, { 'attr': {'class': 'username span12'} }) }}
                            </div>
                            {{ form_errors(form.name) }}
                        </div>
                    </fieldset>
                    
                    <h5>Create USER account.</h5>
                    
                    <fieldset>
                        <label for="username">email 
                            <span><small style="font-size:85% ; color: #ccccc;">&nbsp;(your own email not the email of the institution)</small></span>
                        </label>
                        
                        <div class="input-prepend">
                            {{ form_widget(form.email, { 'attr': {'class': 'username span12'} }) }}
                        </div>
                        {{ form_errors(form.email) }}
                        
                        <label for="password">password</label>
                        <div class="input-prepend">
                            {{ form_widget(form.password, { 'attr': {'class': 'username span12'} }) }}
                        </div>
                        {{ form_errors(form.password) }}
                        
                        <label for="confirm_password">re-type password</label>
                        <div class="input-prepend">
                            {{ form_widget(form.confirm_password, { 'attr': {'class': 'username span12'} }) }}
                        </div>
                        {{ form_errors(form.confirm_password) }}
                        
                        <label for="password">Types of Institution</label>
                        
                        <div id="tabs">
                            <div id="nav">
                                {% for key, type in institutionTypes %}
                                <label>
                                    <input {{ key == selectedInstitutionType ? 'checked' : '' }} type="radio" name="institutionType" value="{{ key }}" class="div1" /> {{ type }}
                                </label>    
                            {% endfor %}
                            </div>
                        </div>
                    </fieldset>
                    
                    <br/>
                    <label>
                        {{ form_widget(form.agree_to_terms) }}
                        I read and agree the <a href="#">Terms and Conditions</a>.
                    </label>
                    <input type="submit" name="Submit" value="SIGN-UP" class="span12 btn-large btn-primary" />
                    {{ form_rest(form) }}
                </form>
            </div>
        </div>
    </div>
</body>

{% endblock %}<commit_msg>added form validation layout<commit_after>{% extends '::base.institution.html.twig' %}

{% block title %} {{ site_name }} &raquo; Sign up{% endblock %}

{% block body %}

<body>
    <div class="container">
        <div class="span5 signupbox">
            <div class="medicalbox-big"><img src="{{ asset('images/institution/medical-clip.png') }}"/></div>
            <a href="{{ path('main_homepage') }}"><h1>HEALTHCARE ABROAD</h1></a>
            
            <h3>Create an account.</h3>
            <p>Please provide the correct information below, and we will create an exclusive medical account listing for you.</p>
            <div class="row-fluid">
                <form novalidate="novalidate" action="{{ path('institution_signUp') }}" method="POST" class="form">
    
                    
                    <fieldset>
                        <label for="institution name"><b>Name of the Institution</b></label>
                        <div>
                            <div class="input-prepend">
                                {{ form_widget(form.name, { 'attr': {'class': 'span12'} }) }}
                            </div>
                    
                          	{% if form_errors(form.name) %}
	  								<ul class="alert-error">
		                                <li>
		                                         {{ form_errors(form.name) }}
		                                </li>
					  				</ul>
  							{% endif %}
                            
                        </div>
                    </fieldset>
                    
                    <h5>Create USER account.</h5>
                    
                    <fieldset>
                        <label for="username">email 
                            <span><small style="font-size:85% ; color: #ccccc;">&nbsp;(your own email not the email of the institution)</small></span>
                        </label>
                        
                        <div class="input-prepend">
                            {{ form_widget(form.email, { 'attr': {'class': 'span12'} }) }}
                        </div>
                        
	                        {% if form_errors(form.email) %}
	  								<ul class="alert-error">
		                                <li>
		                                         {{ form_errors(form.email) }}
		                                </li>
					  				</ul>
	  						{% endif %}
                        
                        <label for="password">password</label>
                        
                        <div class="input-prepend">
                            {{ form_widget(form.password, { 'attr': {'class': 'span12'} }) }}
                        </div>
                        
	                        {% if form_errors(form.password) %}
	  								<ul class="alert-error">
		                                <li>
		                                         {{ form_errors(form.password) }}
		                                </li>
					  				</ul>
	  						{% endif %}
                        
                        <label for="confirm_password">re-type password</label>
                        
                        <div class="input-prepend">
                            {{ form_widget(form.confirm_password, { 'attr': {'class': 'span12'} }) }}
                        </div>
                               
	                        {% if form_errors(form.confirm_password) %}
	  								<ul class="alert-error">
		                                <li>
		                                         {{ form_errors(form.confirm_password) }}
		                                </li>
					  				</ul>
	  						{% endif %}
                        
                        <label for="password">Types of Institution</label>
                        
                        <div id="tabs">
                            <div id="nav">
                                {% for key, type in institutionTypes %}
                                <label>
                                    <input {{ key == selectedInstitutionType ? 'checked' : '' }} type="radio" name="institutionType" value="{{ key }}" class="div1" /> {{ type }}
                                </label>    
                            {% endfor %}
                            </div>
                        </div>
                    </fieldset>
                    
                    <br/>
                    <label>
                        {{ form_widget(form.agree_to_terms) }}
                        I read and agree the <a href="#">Terms and Conditions</a>.
                    </label>
                    
                  		{% if form_errors(form.agree_to_terms) %}
							<ul class="alert-error">
                                <li>
                                    {{ form_errors(form.agree_to_terms) }}
                                </li>
							</ul>
						{% endif %}
                    
                    <input type="submit" name="Submit" value="SIGN-UP" class="span12 btn-large btn-primary" />
                    {{ form_rest(form) }}
                </form>
            </div>
        </div>
    </div>
</body>

{% endblock %}
{'fraction_non_alphanumeric': 0.12733162068580364, 'fraction_numerical': 0.0044677761644141625, 'mean_word_length': 0.9112059765208111, 'pattern_counts': {'":': 0, '<': 155, '<?xml version=': 0, '>': 155, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 15, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7491384', 'n_tokens_mistral': 2336, 'n_tokens_neox': 2012, 'n_words': 405}