<?php


defined('_WPBOOKINGPRO_EXEC') or die;


extract($displayData);
?>

<div
	class="subform-repeatable-group subform-repeatable-group-<?php wpbookingpro_render_content($unique_subform_id); ?>"
	data-base-name="<?php wpbookingpro_render_content($basegroup); ?>"
	data-group="<?php wpbookingpro_render_content($group); ?>"
>
	<?php if (!empty($buttons)) : ?>
	<div class="btn-toolbar text-right">
		<div class="btn-group">
			<?php if (!empty($buttons['add'])) : ?>
				<a class="btn btn-mini button btn-success group-add group-add-<?php wpbookingpro_render_content($unique_subform_id); ?>" aria-label="<?php echo WoobookingText::_('JGLOBAL_FIELD_ADD'); ?>">
					<span class="icon-plus" aria-hidden="true"></span>
				</a>
			<?php endif; ?>
			<?php if (!empty($buttons['remove'])) : ?>
				<a class="btn btn-mini button btn-danger group-remove group-remove-<?php wpbookingpro_render_content($unique_subform_id); ?>" aria-label="<?php echo WoobookingText::_('JGLOBAL_FIELD_REMOVE'); ?>">
					<span class="icon-minus" aria-hidden="true"></span>
				</a>
			<?php endif; ?>
			<?php if (!empty($buttons['move'])) : ?>
				<a class="btn btn-mini button btn-primary group-move group-move-<?php wpbookingpro_render_content($unique_subform_id); ?>" aria-label="<?php echo WoobookingText::_('JGLOBAL_FIELD_MOVE'); ?>">
					<span class="icon-move" aria-hidden="true"></span>
				</a>
			<?php endif; ?>
		</div>
	</div>
	<?php endif; ?>
	<div class="row-fluid">
<?php foreach ($form->getFieldsets() as $fieldset) : ?>
<fieldset class="<?php if (!empty($fieldset->class)){ wpbookingpro_render_content($fieldset->class); } ?>">
	<?php if (!empty($fieldset->label)) : ?>
	<legend><?php echo WoobookingText::_($fieldset->label); ?></legend>
	<?php endif; ?>
<?php foreach ($form->getFieldset($fieldset->name) as $field) : ?>
	<?php $field->renderField(); ?>
<?php endforeach; ?>
</fieldset>
<?php endforeach; ?>
	</div>
</div>
