<?php

/**
 * @package     Joomla.Administrator
 * @subpackage  com_formea
 *
 * @copyright   Copyright (C) 2010-2025 Feseur Sdn Bhd. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 * @version     1.3.0
 */

defined('_JEXEC') or die;

use Joomla\CMS\Language\Text;

$elementChangeSig = 'edit_element'
?>
<!--<button type="button" class="btn btn-secondary" onclick="window.processModalEdit(this, <?php /*echo $this->id */ ?>, 'edit', 'article',
  'cancel', 'formea-form'); return false;">Text::_('JLIB_HTML_BEHAVIOR_CLOSE')</button>-->

<button type="button" class="btn btn-secondary"
        id="cancel_edit_element"
        data-fieldPrefix="<?php echo $elementChangeSig; ?>"
        data-action="add"
        data-itemType="element"
        data-task="cancel"
        data-formId="formea-form"
        data-idFieldId=""
        data-titleFieldId=""
        onclick="formeaProcessModal(this);return false;">
        <?php echo Text::_('JLIB_HTML_BEHAVIOR_CLOSE'); ?>
</button>
<button type="button"
        id="save_edit_element"
        data-fieldPrefix="<?php echo $elementChangeSig; ?>"
        data-action="add"
        data-itemType="element"
        data-task="save"
        data-formId="formea-form"
        data-idFieldId=""
        data-titleFieldId=""
        onclick="formeaProcessModal(this);return false;"
        class="btn btn-success"><?php echo Text::_('JSAVE'); ?></button>
<!--<button type="submit" class="btn btn-success" onclick="Joomla.submitbutton('formea.batch');">
	Process
</button>-->