public function getMatrikskompetensi() { //q1 => kompetensi_id $dataScheduleActive = Competency::where('status', '=', 'active')->first(); $dataCompetency = CompetencyDictionary::all(); $dataProfile = null; if (Input::has('q1')) { $dataProfile = CompetencyProfile::with('jabatan')->where('competency_id', '=', $dataScheduleActive->id)->where('competency_dictionary_id', '=', Input::get('q1'))->get(); // return $dataProfile; } $this->layout->content = View::make('competency::adminProfile.matriksKompetensi', compact('dataScheduleActive', 'dataCompetency', 'dataProfile')); }
public function postCreate($id) { // validate against the inputs from our form $validator = Validator::make(Input::all(), $this->rules); if ($validator->fails()) { // get the error messages from the validator $messages = $validator->messages(); // redirect our user back to the form with the errors from the validator return Redirect::back()->withErrors($messages); } else { $data = new CompetencyDictionary(); $data->dictionary_id = Input::get('dictionary_id'); $data->value = Input::get('value'); $data->title = Input::get('title'); $data->description = Input::get('description'); if ($data->save()) { return Redirect::to('admin/competency/level/dictionary/' . $id); } else { return Redirect::back(); } } // dd('under construction'); }
<?php if ($rowProfile->description == null) { $compParent = \Meniqa\Competency\Models\CompetencyDictionary::find($rowProfile->parent); if ($compParent != null) { $description = $compParent->description; } } else { $description = $rowProfile->description; } ?> <p class="list-group-item-text">{{ $description}}</p> <h3>Cakupan <img alt src=" {{ URL::asset('img/help.png') }}" data-original-title="Cakupan dari kompetensi yang akan diukur" data-placement="right" data-trigger="hover" class="popovers"/></h3> <?php $detail = json_decode($rowProfile->cdetail); if ($detail->cakupan == null) { $compParent = \Meniqa\Competency\Models\CompetencyDictionary::find($rowProfile->parent); if ($compParent != null) { $detail = json_decode($compParent->detail); } } ?> <p class="list-group-item-text">{{ $detail->cakupan or '' }}</p> </li> {{ Form::open(array('url' => Request::url() , 'method' => 'post')) }} @if($type->id == 1) <li class="list-group-item"> <h3>Bukti Perilaku <img alt src=" {{ URL::asset('img/help.png') }}" data-original-title="Tuliskan peristiwa yang pernah dialami (pengalaman) selama 2 tahun terakhir, yang menunjukkan bukti perilaku sesuai dengan kompetensi yang diukur" data-placement="right" data-trigger="hover" class="popovers"/></h3> <textarea class="form-control ckeditor" name="evidence" rows="2" required min="10 " title="Wajib Di Isi"></textarea>
public function index() { $competencies = CompetencyDictionary::take(1)->skip(1)->get(); return $competencies; $this->layout->content = View::make('competency::test.individu', $competencies); }
public function getDetail($id) { $breadcrumbs = array(array("Kompetensi" => url("admin/competency/type")), array("Kamus Kompetensi" => ""), array("Detail" => "")); $data = CompetencyDictionary::find($id); $this->layout->breadcrumbs = View::make('layouts.breadcrumb', compact('breadcrumbs')); $this->layout->content = View::make('competency::adminDictionary.detail', compact('data')); }
public function getUpdate($dictionary_id, $peersNip) { $user = Auth::user(); $pegawai = MasterPegawai::find($peersNip); //get jabatan $riwJabatan = RiwJabStruk::getJabatanOnCompetency($this->competencyData->date_start, $pegawai->nip); if ($riwJabatan != false) { //$profile = CompetencyProfile::getTestPrs($pegawai->nip, $user->nip, $riwJabatan->unit_staf_id, $this->competencyData->id, $type); $dict = CompetencyDictionary::find($dictionary_id); $this->layout->content = View::make('competency::testPrs.update', compact('dict', 'pegawai')); } }
<?php if ($dict->description == null) { $compParent = \Meniqa\Competency\Models\CompetencyDictionary::find($dict->parent); if ($compParent != null) { $description = $compParent->description; } } else { $description = $dict->description; } ?> <p class="list-group-item-text">{{ $description}}</p> <h3>Cakupan <img alt src=" {{ URL::asset('img/help.png') }}" data-original-title="Cakupan dari kompetensi yang akan diukur" data-placement="right" data-trigger="hover" class="popovers"/></h3> <?php $detail = json_decode($dict->detail); if ($detail->cakupan == null) { $compParent = \Meniqa\Competency\Models\CompetencyDictionary::find($dict->parent); if ($compParent != null) { $detail = json_decode($compParent->detail); } } ?> <p class="list-group-item-text">{{ $detail->cakupan or '' }}</p> </li> {{ Form::open(array('url' => Request::url() , 'method' => 'post')) }} <li class="list-group-item"> <h3>Bukti Perilaku <img alt src=" {{ URL::asset('img/help.png') }}" data-original-title="Tuliskan peristiwa yang pernah dialami (pengalaman) selama 2 tahun terakhir, yang menunjukkan bukti perilaku sesuai dengan kompetensi yang diukur" data-placement="right" data-trigger="hover" class="popovers"/></h3> <textarea class="form-control ckeditor" name="evidence" rows="2" required min="10 " title="Wajib Di Isi"></textarea>