<?php
/**
* @package   Gridbox
* @author    Balbooa http://www.balbooa.com/
* @copyright Copyright @ Balbooa
* @license   http://www.gnu.org/licenses/gpl.html GNU/GPL
*/

use Balbooa\Component\Gridbox\Administrator\Helper\GridboxHelper;
use Joomla\CMS\Language\Text;

defined('_JEXEC') or die;

ob_start();
?>
<span class="input-append input-group">
    <input type="text" class="input-medium form-control" id="jform_request_tag_name" value="<?php echo $title ?>"
        placeholder="<?php echo Text::_('TAG'); ?>" disabled size="35">
<?php
    echo GridboxHelper::renderBootstrapModalBtn('gridbox-category-modal');
?>
</span>
<input type="hidden" id="jform_request_tag_id" name="jform[request][tag]" value="<?php echo $this->value; ?>">

<div class="control-group" id="select-app" style="display: none;">
    <div class="control-label">
        <label>
            <?php echo Text::_('APP'); ?>
        </label>
    </div>
    <div class="controls">
        <span class="input-append input-group">
            <input type="text" class="input-medium form-control" id="gridbox_app_name"
                value="<?php echo $appTitle; ?>" disabled size="35"
                placeholder="<?php echo Text::_('APP'); ?>">
<?php
    echo GridboxHelper::renderBootstrapModalBtn('gridbox_app_modal');
?>
        </span>
        <input type="hidden" id="gridbox_app_id" value="<?php echo $appId; ?>">
<?php
        $url = 'index.php?option=com_gridbox&view=tags&layout=apps&tmpl=component';
        echo GridboxHelper::renderBootstrapModal('gridbox_app_modal', 'APP', $url);
?>
    </div>
</div>
<?php
$out = ob_get_contents();
ob_end_clean();