<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_content
 *
 * @copyright   Copyright (C) 2007 - 2015 CMS Junkie. All rights reserved.
 * @license     GNU General Public License version 2 or later;
 */

defined('_JEXEC') or die('Restricted access');

$published = $this->state->get('filter.published');
?>
<div class="jbd-container jbd-edit-container" id="collapseModal" style="display: none">
    <div class="jmodal-sm">
        <div class="jmodal-header">
            <p class="jmodal-header-title"><?php echo JText::_('COM_JBUSINESSDIRECTORY_BATCH_OPTIONS') ?></p>
            <a href="#close-modal" rel="modal:close" class="close-btn"><i class="la la-close "></i></a>
        </div>
        <div class="jmodal-body">
            <p><?php echo JText::_('COM_JBUSINESSDIRECTORY_BATCH_TIP'); ?></p>
            <div class="row">
                <div class="col-12">
                    <div class="jinput-outline ">
                        <label title="" class="modalTooltip" for="batch-approval_status_id" id="batch-status-lbl" data-original-title="&lt;strong&gt;Set Approval Status&lt;/strong&gt;&lt;br /&gt;Not making a selection will keep the original approval status when processing."><?php echo JText::_("LNG_SET_APPROVAL_STATUS")?></label>
                        <select id="batch-approval_status_id" class="inputbox form-control" name="batch[approval_status_id]">
                            <option value=""><?php echo JText::_("LNG_KEEP_ORIGINAL_APPROVAL_STATUS")?></option>
                            <?php echo JHtml::_('select.options', $this->statuses, 'value', 'text', $this->state->get('filter.status_id'));?>
                        </select>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-12">
                    <div class="jinput-outline ">
                        <label title="" class="modalTooltip" for="batch-featured-status-id" id="batch-featured-status-lbl" data-original-title="&lt;strong&gt;Set Featured Status&lt;/strong&gt;&lt;br /&gt;Not making a selection will keep the original featured status when processing."><?php echo JText::_("LNG_SET_FEATURED_STATUS")?></label>
                        <select id="batch-featured-status-id" class="inputbox form-control" name="batch[featured_status_id]">
                            <option value=""><?php echo JText::_("LNG_KEEP_ORIGINAL_FEATURED_STATUS")?></option>
                            <option value="1"><?php echo JText::_("LNG_FEATURED")?></option>
                            <option value="0"><?php echo JText::_("LNG_NOT_FEATURED")?></option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-12">
                    <div class="jinput-outline ">
                        <label title="" class="modalTooltip" for="batch-state_id" id="batch-state-lbl" data-original-title="&lt;strong&gt;Set State&lt;/strong&gt;&lt;br /&gt;Not making a selection will keep the original state when processing."><?php echo JText::_("LNG_SET_STATE")?></label>
                        <select id="batch-state-id" class="inputbox form-control" name="batch[state_id]">
                            <option value=""><?php echo JText::_("LNG_KEEP_ORIGINAL_STATE")?></option>
                            <?php echo JHtml::_('select.options', $this->states, 'value', 'text', $this->state->get('filter.state_id'));?>
                        </select>
                    </div>
                </div>
            </div>
        </div>
        <div class="jmodal-footer">
            <div class="btn-group" role="group" aria-label="">
                <button type="button" class="jmodal-btn jmodal-btn-outline" onclick="document.getElementById('batch-approval_status_id').value='';document.getElementById('batch-featured-status-id').value='';document.getElementById('batch-state-id').value='';jQuery.jbdModal.close()"><?php echo JText::_("LNG_CANCEL")?></button>
                <button type="button" class="jmodal-btn" onclick="Joomla.submitbutton('offer.batch');"><?php echo JText::_("JGLOBAL_BATCH_PROCESS")?></button>
            </div>
        </div>
    </div>
</div>
