<h2 style="font-size: 12pt; color: #005fa9; margin-bottom: 0.25em;">User Account &amp; BIA Assessor Information</h2>

<div style="font-size: 11pt; margin: 1em 0;">
	<span class="ui-icon ui-icon-info" style="display: inline-block; vertical-align: middle;"></span>
	Use this form to update your user account and BIA assessor information.
</div>

<?php echo Form::open(array('url'    => url('/forms/bia/' . $info['form']->id . '/edit-assessor'),
					'method' => 'POST',
					'style'  => 'font-size: 11pt;')); ?>

	<?php echo Form::hidden('redirect', url('/forms/bia/' . $info['form']->id . '/edit')); ?>
	<?php echo Form::hidden('user_id', $info['user']->id); ?>
	<?php echo Form::hidden('assessor_id', $info['assessor']->id); ?>
	<?php echo Form::hidden('address_id', $info['address']->id); ?>
	
		
	<?php /*  User Name, E-Mail, Password  */ ?>	
	<h3 style="font-size: 11pt; color: #990000 !important; margin-bottom: 0.25em;">User Account (Name, E-Mail, Password)</h3>
	<div class="columns">
		<div class="third">
			<label for="first_name" style="font-weight: bold;">First</label><br />		
			<?php echo Form::text('first_name', $info['user']->first_name, array('style' => 'width: 150px;')); ?>

		</div>

		<div class="third">

			<label for="middle_name" style="font-weight: bold;">Middle</label> <span class="small gray note">(Optional)</span><br />
			<?php echo Form::text('middle_name', $info['user']->middle_name, array('style' => 'width: 150px;')); ?>			

		</div>

		<div class="third">

			<label for="last_name" style="font-weight: bold;">Last</label><br />		
			<?php echo Form::text('last_name', $info['user']->last_name, array('style' => 'width: 150px;')); ?>			

		</div>
	</div>

	<br class="clear" /><br />	
	
	<div class="columns">
		<div class="half" style="width: 383px;">

			<label for="email" style="font-weight: bold;">E-Mail Address</label><br />
			<?php echo Form::text('email', $info['user']->email, array('style' => 'width: 350px;')); ?>	
		
		</div>

		<div class="fourth" style="width: 185px;">
			<div style="margin-bottom: 0.25em; font-weight: bold;">Password</div>
			<a href="<?php echo url('/account/reset-password') . '?change-password=true'; ?>" target="_blank">Change Password</a>
		</div>

	</div>

	<br class="clear" /><br />

	<?php /*  Assessor Phone Number  */ ?>
	<h3 style="font-size: 11pt; color: #990000 !important; margin-bottom: 0.25em;">Address and Phone Number</h3>
	<div class="columns">
		<div class="half" style="width: 383px;">

			<label for="line_1" style="font-weight: bold;">Mailing Address</label><br />
			<?php echo Form::text('line_1', $info['address']->line_1, array('style' => 'width: 350px; margin-bottom: 0.5em;')); ?>	

			<br />

			<?php echo Form::text('line_2', $info['address']->line_2, array('style' => 'width: 350px; margin-bottom: 0.5em;')); ?>			

			<br />

			<?php echo Form::text('city', $info['address']->city, array('style' => 'width: 200px;')); ?>

			<select style="width: 60px;" id="state" name="state">
	            <?php

	                $states = DB::select('SELECT slug, name FROM states');

	                foreach ($states as $s)
	                {
	                    $name = $s->name;
	                    $slug = $s->slug;                       
	                    
	                    echo '<option value="' . $slug . '"';

	                    if ($slug == $info['address']->state) echo ' selected="selected"';

	                    echo '>' . $slug . '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . $name . '</option>';                      
	                }

	                unset ($states);

	                echo '<option value="Other">Other</option>';

	            ?>
	        </select>

	        <?php echo Form::text('zip', $info['address']->zip, array('style' => 'width: 75px;')); ?>


		</div>

		<div class="fourth" style="width: 185px;">
			
			<label for="phone" style="font-weight: bold;">Phone Number</label><br />
			<?php echo Form::text('phone', (!Helpers::strIsEmpty($info['assessor']->phone)) ? Helpers::displayCombinedPhone($info['assessor']->phone) : null, array('style' => 'width: 150px;')); ?>

		</div>

	</div>	
	
<?php echo Form::close(); ?>