private function getDeveloperRubricCardFormCommandRow($form_action)
 {
     global $ilUser;
     include_once "./Services/Form/classes/class.ilPropertyFormGUI.php";
     //configure the command row
     $rubric_commandrow_tpl = new ilTemplate('tpl.lp_rubricform_commandrow.html', true, true, 'Services/Tracking');
     $select_prop = new ilSelectInputGUI('Title', 'selected_cmdrubric');
     $options = array('behavior_1' => $this->lng->txt('rubric_option_behavior_1'), 'behavior_2' => $this->lng->txt('rubric_option_behavior_2'), 'behavior_3' => $this->lng->txt('rubric_option_behavior_3'), 'behavior_4' => $this->lng->txt('rubric_option_behavior_4'), 'behavior_5' => $this->lng->txt('rubric_option_behavior_5'), 'add_group' => $this->lng->txt('rubric_option_add_group'), 'del_group' => $this->lng->txt('rubric_option_del_group'), 'add_criteria' => $this->lng->txt('rubric_option_add_criteria'), 'del_criteria' => $this->lng->txt('rubric_option_del_criteria'));
     $select_prop->setOptions($options);
     $rubric_commandrow_tpl->setVariable('RURBRIC_COMMANDROW_SELECT', $select_prop->render());
     $rubric_commandrow_tpl->setVariable('RUBRIC_SAVE', $this->lng->txt('save'));
     $rubric_commandrow_tpl->setVariable('RUBRIC_EXECUTE', $this->lng->txt('execute'));
     $rubric_commandrow_tpl->setVariable('FORM_ACTION', $form_action);
     $rubric_commandrow_tpl->setVariable('PASSING_GRADE_VALUE', "{$this->passing_grade}");
     if (!is_null($this->rubric_locked)) {
         $rubric_commandrow_tpl->setVariable('RUBRIC_DISABLED', 'disabled');
         $rubric_commandrow_tpl->setVariable('RUBRIC_LOCK', $this->lng->txt('rubric_card_unlock'));
         $tmp_user = ilObjectFactory::getInstanceByObjId($this->rubric_owner, false);
         if ($this->rubric_owner !== $ilUser->getId()) {
             $rubric_commandrow_tpl->setVariable('USER_LOCK', 'disabled');
         }
         ilUtil::sendInfo($this->lng->txt('rubric_locked_info') . ' ' . $tmp_user->getFullName() . ' ' . $this->rubric_locked);
     } else {
         $rubric_commandrow_tpl->setVariable('RUBRIC_LOCK', $this->lng->txt('rubric_card_lock'));
     }
     $rubric_commandrow_tpl->setVariable('EXPORT', $this->lng->txt('rubric_option_export_pdf'));
     return $rubric_commandrow_tpl;
 }
 private function getRubricStudentGradeFormCommandRow($form_action, $user_id)
 {
     include_once "./Services/Form/classes/class.ilPropertyFormGUI.php";
     //configure the command row
     $rubric_commandrow_tpl = new ilTemplate('tpl.lp_rubricgrade_student_commandrow.html', true, true, 'Services/Tracking');
     $select_prop = new ilSelectInputGUI('Title', 'grader_history');
     $options = array();
     $last_entry = end($this->user_history);
     foreach ($this->user_history as $k => $user_history) {
         $grade_text = $user_history == $last_entry ? $this->lng->txt('rubric_graded_by') : $this->lng->txt('rubric_regraded_by');
         $options[$user_history['rubric_history_id']] = $user_history['create_date'] . ' ' . $grade_text . ' ' . ilObject::_lookupTitle($user_history['owner']);
     }
     if (!array_key_exists('current', $this->user_history)) {
         $options = array('current' => $this->lng->txt('no_current_rubric_grade')) + $options;
     }
     $select_prop->setValue($this->user_history_id);
     $select_prop->setOptions($options);
     $rubric_commandrow_tpl->setVariable('RUBRIC_COMMANDROW_HISTORY_SELECT', $select_prop->render());
     $rubric_commandrow_tpl->setVariable('RUBRIC_EXPORT_GRADED', $this->lng->txt('rubric_option_export_graded_pdf'));
     $rubric_commandrow_tpl->setVariable('RUBRIC_EXPORT', $this->lng->txt('rubric_option_export_pdf'));
     $rubric_commandrow_tpl->setVariable('RUBRIC_VIEW_HISTORY', $this->lng->txt('view'));
     $rubric_commandrow_tpl->setVariable('FORM_ACTION', $form_action);
     $rubric_commandrow_tpl->setVariable('USER_ID', $user_id);
     return $rubric_commandrow_tpl;
 }