<?php
$this->fieldsets = $this->form->getFieldsets('form');
?>
<form action="#" method="post">
	<?php foreach ($this->fieldsets as $view_item) : ?>
		<?php foreach ($this->form->getFieldset($view_item->name) as $field) : ?>
            <div class="control-group">
                <div class="control-label">
                    <?php wpbookingpro_render_content($field->label); ?>
                </div>
                <div class="controls">
                    <?php wpbookingpro_render_content($field->input); ?>
                </div>
            </div>
		<?php endforeach; ?>
	<?php endforeach; ?>
</form>
