<!--   Copyright JLS Consulting 2012 -->

{% if app.session.hasFlash('notice') %}
    <div class="flash-notice" >
    <br />
        {{ app.session.flash('notice') }}
    </div>
{% endif %}

<form id="clientform" action="{{ path('DorcasTabithaBundle_users_create' ) }}" method="post" {{ form_enctype(form) }} class="dorcas">


    <h4>Add a New User:</h4>
    <h6> Note: If a password is not entered, it will be created for you.</h6>

    <div style="width:11%; float:left;">
                {{ form_label(form.username) }}
				{{ form_errors(form.username) }}
				{{ form_widget(form.username, { 'attr': {'size': '12'} }) }}
    </div>
	<div style="width:14%; float:left;">
                {{ form_label(form.password.first) }}
				{{ form_errors(form.password.first) }}
                {{ form_widget(form.password.first, { 'attr': {'size': '16'} }) }}
	</div>
	<div style="width:14%; float:left;">
                {{ form_label(form.password.second, 'Confirm Password:') }}
                {{ form_errors(form.password.second) }}
                {{ form_widget(form.password.second, { 'attr': {'size': '16'} }) }}
	</div>
	
	<div style="width:23%; float:left;">
            {{ form_label(form.first_name) }}
            {{ form_errors(form.first_name) }}
            {{ form_widget(form.first_name, { 'attr': {'size': '30'} }) }}
        </div>
        <div style="width:22%; float:left; ">
            {{ form_label(form.last_name) }}
            {{ form_errors(form.last_name) }}
            {{ form_widget(form.last_name, { 'attr': {'size': '30'} }) }}
        </div>
	
	<br>
	
	
	<div style="width:38%; float:left;">
                {{ form_label(form.address) }}
                {{ form_errors(form.address) }}
                {{ form_widget(form.address, { 'attr': {'size': '50'} }) }} 
    </div>
	<div style="width:12%; float:left;">
                {{ form_label(form.phone) }}
                {{ form_errors(form.phone) }}
                {{ form_widget(form.phone, { 'attr': {'size': '14', 'class': 'phonex'} }) }}
    </div>
    <div style="width:16%; float:left;">
                {{ form_label(form.email) }}
                {{ form_errors(form.email) }}
                {{ form_widget(form.email, { 'attr': {'size': '25'} }) }}
    </div>
	<br>
	<div style="width:10%; float:left; padding-right:1px; padding-left: 40px; padding-top:18px;">
                {{ form_label(form.isAdmin) }}
                {{ form_errors(form.isAdmin) }}
                {{ form_widget(form.isAdmin, { 'attr': {'size': '2'} }) }}
    </div>
    <div style="width:10%; float:left; padding-right: 40px; padding-top:18px;">
                {{ form_label(form.isActive) }}
                {{ form_errors(form.isActive) }}
                {{ form_widget(form.isActive, { 'attr': {'size': '2'} }) }}
    </div>
    
	
	
	
	
    <div style=" padding-top:1px;">
    <input type="button" value="Save" onclick="save(false)" >
    </div>  

		<br>&nbsp;<br>
		
		


                {{ form_rest(form) }}



   
</form>



