<?php //description: Renders the list of jobs. used by applicants and recruiters ?>
<?php $this->headTitle($this->translate('Jobs'));
      $this->headScript()
          //->appendFile($this->basePath('/assets/bootstrap3-dialog/js/bootstrap-dialog.min.js'))
          //->appendFile($this->basePath('/assets/select2/js/select2.min.js'))
          ->appendFile($this->basePath('modules/Core/js/jquery.initform.js'))
          ->appendFile($this->basePath('dist/js/bootstrap-dialog.min.js'))
          ->appendFile($this->basepath('modules/Core/js/core.pagination-container.js'))
          ->appendFile($this->basePath('modules/Jobs/js/index.assign-users.js'))
          ->appendFile($this->basePath('modules/Jobs/js/jobs.history.js'))
      ;
$this->headScript()->captureStart() ?>
/* This code is generated in jobs/index/index.phtml
 *
 * It sets default i18n settings for the assign user dialog.
 */
(function($) {
    $.extend($.fn.ykAssignUsers.defaults["i18n"],
    {
        loading:     '<?php echo $this->translate('Loading'); ?>&hellip;',
        accessError: '<?php echo $this->translate('Access denied!') ?>',
        appError:    '<?php echo $this->translate('Application error!') ?>',
        cancel:      '<?php echo $this->translate('Cancel') ?>',
        save:        '<?php echo $this->translate('Save') ?>',
        sending:     '<?php echo $this->translate('Sending') ?>',
        fail:        '<?php echo $this->translate('Fail!') ?>'
    });
})(jQuery);
<?php
$this->headScript()->captureEnd();
//$this->headLink()->appendStylesheet($this->basePath('/assets/bootstrap3-dialog/css/bootstrap-dialog.min.css'));
//$this->headLink()->appendStylesheet($this->basePath($this->asset('build/bootstrap-dialog.css')));
?>

<h1><?php echo $this->translate('List of your jobs'); ?></h1>

<?php echo $this->flashMessenger()->render('default', array('alert', 'alert-success')) ?>

<nav class="navbar yk-toolbar" id="jobs-list-filter-wrapper">
<?php echo $this->form($this->filterForm)  ?>
</nav>
<div id="jobs-list-container" class="pagination-container"
     data-message="<?php echo $this->escapeHtmlAttr(sprintf(
                                                        $this->translate('%sSorry%s, there are not any jobs matching your search criteria.'),
                                                        '<strong>', '</strong>'
                                                    ))?>"
     data-uri="<?php
     echo $this->url('lang/jobs', array(), array('query' => $this->params()->fromQuery()), true)?>">

    <div class="pagination-content">
        <?php echo $this->render('jobs/index/index.ajax.phtml')?>
    </div>
</div>

<!-- Modal Box for Job-History -->
<div class="modal fade" id="job-application-history" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="exampleModalLabel"><i class="yk-icon yk-icon-spinner fa-spin"></i><?php echo $this->translate('please wait') ?></h4>
            </div>
            <div class="modal-body">
            </div>
        </div>
    </div>
