<?php
/**
 * Admin Form Confirm Copy Tmpl
 *
 * @package     Joomla.Administrator
 * @subpackage  Fabrik
 * @copyright   Copyright (C) 2005-2020  Media A-Team, Inc. - All rights reserved.
 * @license     GNU/GPL http://www.gnu.org/copyleft/gpl.html
 * @since       3.4.5
 */

// No direct access
defined('_JEXEC') or die('Restricted access');

use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
use Joomla\CMS\HTML\HTMLHelper;

?>
<form action="<?php Route::_('index.php?option=com_fabrik'); ?>" method="post" name="adminForm" id="adminForm" class="form-validate">

	<div class="alert alert-info">
		<span class="icon-puzzle"></span> <?php echo Text::_('COM_FABRIK_FIELD_CONTENT_TYPE_INTRO_LABEL'); ?>
	</div>
	<hr />

	<?php echo $this->form->renderFieldset('details'); ?>

	<?php foreach ($this->data as $key => $value) :
		if (is_array($value)) :
			foreach ($value as $key2 => $value2) :?>
				<input type="hidden" name="<?php echo 'jform[' . $key . '][' . $key2 . ']'; ?>" value="<?php echo $value2; ?>" />
			<?php endforeach;
		else: ?>
			<input type="hidden" name="jform[<?php echo $key; ?>]" value="<?php echo $value; ?>" />
		<?php endif;
	endforeach; ?>

	<input type="hidden" name="option" value="com_fabrik" />
	<input type="hidden" name="task" value="form.doSave" />
	<?php echo HTMLHelper::_('form.token'); ?>
</form>
<style>
	#contentTypeListPreview {
		pointer-events : none
	}

	#contentTypeListPreview .page-header,
	#contentTypeListPreview .row.nav {
		display : none;
	}

	#contentTypeListPreview .fabrikGroup .faux-shown {
		display : block !important;
		opacity : 0.5
	}

	#contentTypeListPreview .plg-internalid.faux-shown .controls {
		display:none;
	}
</style>