<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<div class="modal fade" id="person_modal" tabindex="-1" role="dialog">
	<div class="modal-dialog">
		<?php echo form_open_multipart(site_url('realestate/client/person'), array('id'=>'add_edit_person')); ?>

		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
				<h4 class="modal-title">
					<span class="add-title"><?php echo _l('real_add_person'); ?></span>
					<span class="edit-title"><?php echo _l('real_edit_person'); ?></span>
				</h4>
			</div>

			<div class="modal-body">
				<div class="row">
					<div class="col-md-12">
						<div id="person_additional"></div>
						<?php echo render_input('occupants_name', 'real_occupants_name'); ?>
						<?php echo render_input('occupants_age', 'real_occupants_age', '', 'number'); ?>
					</div>
				</div>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal"><?php echo _l('close'); ?></button>
				<button type="submit" class="btn btn-primary"><?php echo _l('submit'); ?></button>
			</div>
		</div>
		<?php echo form_close(); ?>
	</div>
</div>
