<?php defined('_JEXEC') or die;

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

$item = $this->getItem();
$pdfPath = $item['pdf_path'] ?? '';
?>

<h2><?php echo Text::_('COM_EIS_CONFIG_TITLE'); ?></h2>

<form action="<?php echo Route::_('index.php?option=com_eis&task=config.save'); ?>" method="post" name="adminForm" id="adminForm">
    <div class="form-horizontal">
        <fieldset class="adminform">
            <legend><?php echo Text::_('COM_EIS_FIELDSET_SETTINGS'); ?></legend>

            <div class="control-group">
                <label class="control-label" for="pdf_path">
                    <?php echo Text::_('COM_EIS_FIELD_PDF_PATH'); ?>
                </label>
                <div class="controls">
                    <input type="text" name="pdf_path" id="pdf_path" value="<?php echo htmlspecialchars($pdfPath, ENT_QUOTES); ?>" size="60" />
                </div>
            </div>

        </fieldset>
    </div>

    <div>
        <button type="submit" class="btn btn-primary">
            <?php echo Text::_('JSAVE'); ?>
        </button>
    </div>

    <?php echo HTMLHelper::_('form.token'); ?>
</form>
