<?php /* @var $this Controller */ $buttonColumns = array('class' => 'bootstrap.widgets.TbButtonColumnExtended', 'template' => '{favorite} {interview}', 'id' => '"resume-actions".$data->stu_job_id', 'buttons' => array('favorite' => array('icon' => 'star', 'visible' => '!isset($data->fav_employer_id)', 'label' => Yii::t('view', 'favorite_lb'), 'url' => 'Yii::app()->createAbsoluteUrl("resume/employerFav/fav",array("stu_job_id"=>$data->stu_job_id))', 'options' => array('class' => 'fav-resume')), 'interview' => array('icon' => 'calendar', 'label' => Yii::t('view', 'interview_lb'), 'visible' => '!isset($data->inte_employer_id)', 'options' => array('class' => 'interview-resume')))); $bulkActionsButtons = array(array('id' => 'btn-download-resume-zip', 'type' => 'primary', 'buttonType' => 'submit', 'icon' => 'white download-alt', 'size' => 'small', 'label' => Yii::t('view', 'employer.resume_grid_detail.download_selected_resumes_lb'), 'click' => 'js:function(values){submitResumeDownloadZip(values);}'), array('id' => 'btn-fav-resumes', 'buttonType' => 'submit', 'icon' => 'star', 'size' => 'small', 'label' => Yii::t('view', 'employer.resume_grid_detail.fav_selected_resumes_lb'), 'click' => 'js:function(values){submitFavResumes(values);}')); $ajaxUrl = $this->createUrl('index'); $dataProvider = $model->searchLatestStuJobResumesWithEmployer(Yii::app()->user->id); $this->widget('bootstrap.widgets.TbEnhancedExtendedGridView', array('id' => 'resume-grid-view', 'dataProvider' => $dataProvider, 'type' => 'striped bordered ', 'enablePageSizeDropdown' => true, 'pageSizeDropdownOptions' => array('selectedValue' => $model->pageSize, 'htmlOptions' => array('class' => 'pageSize-dropdown')), 'filter' => $model, 'ajaxUrl' => $ajaxUrl, 'bulkActions' => array('actionButtons' => $bulkActionsButtons, 'checkBoxColumnConfig' => array('name' => 'stu_job_id')), 'columns' => array(array('class' => 'bootstrap.widgets.TbRelationalColumn', 'header' => "Resume ID", 'name' => 'stu_job_id', 'type' => 'raw', 'value' => 'CHtml::tag("span",array(),$data->stu_job_id,true). $data->getFavIcon(). $data->getInterviewIcon() ', 'url' => $this->createUrl('viewResumeDetails', array('gridViewDetail' => '1')), 'cssClassExpression' => '"resume_id".$data->stu_job_id', 'afterAjaxUpdate' => 'js:function(tr, rowid, data){tr.addClass("resume-detail-row");}'), array('header' => Yii::t('model', 'viewStudentJobTitle.first_name'), 'name' => 'first_name', 'type' => 'raw', 'value' => 'CHtml::link($data->first_name, "#",array("data-value"=>$data->student_id,"onclick"=>new CJavaScriptExpression("return viewProfile(this)")))'), array('header' => Yii::t('model', 'viewStudentJobTitle.last_name'), 'name' => 'last_name'), array('filter' => CHtml::listData(JobCat::getAllCategories(), 'job_cat_id', 'job_cat_name'), 'header' => Yii::t('model', 'viewStudentJobTitle.job_cat_name'), 'name' => 'job_cat_id', 'value' => '$data->job_cat_name'), array('header' => Yii::t('model', 'viewStudentJobTitle.job_title_name'), 'name' => 'job_title_name'), array('filter' => CHtml::listData(College::getAllCollege(), 'college_name', 'college_name'), 'header' => Yii::t('model', 'viewStudent.college_name'), 'name' => 'college_id', 'value' => '$data->collegeName'), array('filter' => CHtml::listData(JobType::getAllTypes(), 'job_type_id', 'job_type_name'), 'header' => Yii::t('model', 'viewStudentJobTitle.job_type_name'), 'name' => 'job_type_id', 'value' => '$data->job_type_name'), array('name' => 'skills', 'sortable' => false, 'filter' => false, 'header' => Yii::t('model', 'viewStudentJobTitle.skills'), 'type' => 'raw', 'value' => '"<div class=\\"btn btn-mini\\"><i class=\\"center icon icon-info-sign\\"></i></div>". CHtml::tag("div",array("id"=>"skill".$data->stu_job_id,"class"=>"hide skill-containter-div"),$data->skills)', 'class' => 'bootstrap.widgets.TbPickerColumnExtended', 'containerTag' => 'div', 'containerHtmlOptions' => array('class' => 'skills-picker-div text-center'), 'pickerOptions' => array('html' => true, 'title' => Yii::t('model', 'viewStudentJobTitle.skills'), 'content' => 'js:function(){ var skills=$(this).children(".skill-containter-div").text().split(","); var content=""; $(skills).each(function(){ content+="<span class=\\"label label-info\\">"+ this + "</span> "; }); return content; }')), $buttonColumns)));
</p> </div> <div class="advance-search <?php echo $model->advanced == true ? '' : 'hide'; ?> well"> <h4>Advanced Search Options</h4> <div class="search-control-row"> <?php echo $form->dropDownList($model, 'job_cat_id', CHtml::listData(JobCat::getAllCategories(), 'job_cat_id', 'job_cat_name'), array('prompt' => Yii::t('model', 'postResumeForm.jobCat_empty'), 'id' => 'search-jobCat-dropdown', 'ajax' => array('type' => 'POST', 'url' => $this->createUrl('employer/ajaxGetJobTitles'), 'update' => '#' . CHtml::activeId($model, 'job_title_id'), 'data' => array('jobCat' => 'js:this.value')))); ?> <?php echo $form->dropDownList($model, 'job_type_id', CHtml::listData(JobType::getAllTypes(), 'job_type_id', 'job_type_name'), array('prompt' => Yii::t('model', 'postResumeForm.jobType_empty'))); ?> <?php echo $form->dropDownList($model, 'college_id', CHtml::listData(College::getAllCollege(), 'college_name', 'college_name'), array('prompt' => Yii::t('model', 'student.college_id_empty'))); ?> <?php echo $form->dropDownList($model, 'ECWS_id', CHtml::listData(EcwsCourse::getAllEcws(), 'ECWS_id', 'ECWS_name'), array('prompt' => Yii::t('model', 'postResumeForm.ecwsCourse_empty'))); ?> </div> <div class="search-control-row"> <?php echo $form->textField($model, 'first_name', array('placeholder' => Yii::t('model', 'user.first_name'))); ?> <?php echo $form->textField($model, 'last_name', array('placeholder' => Yii::t('model', 'user.last_name'))); ?>