Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 556 | Rev 584 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 556 Rev 561
Línea 2... Línea 2...
2
$this->headLink()->appendStylesheet('/react-bundles/dashboard/main.css');
2
$this->headLink()->appendStylesheet('/react-bundles/dashboard/main.css');
3
$currentUser = $this->currentUserHelper();
3
$currentUser = $this->currentUserHelper();
4
$currentUser = $currentUser->getUser();
4
$currentUser = $currentUser->getUser();
Línea 5... Línea 5...
5
 
5
 
6
 
6
 
7
$draft=\LeadersLinked\Model\CompanySelfEvaluationTest::STATUS_DRAFT;
7
$draft=\LeadersLinked\Model\CompanyPerformanceEvaluationTest::STATUS_DRAFT;
Línea 8... Línea 8...
8
$pending=\LeadersLinked\Model\CompanySelfEvaluationTest::STATUS_PENDING;
8
$pending=\LeadersLinked\Model\CompanyPerformanceEvaluationTest::STATUS_PENDING;
9
$completed=\LeadersLinked\Model\CompanySelfEvaluationTest::STATUS_COMPLETED;
9
$completed=\LeadersLinked\Model\CompanyPerformanceEvaluationTest::STATUS_COMPLETED;
10
 
10
 
11
$routeMoodle = $this->url('moodle');
11
$routeMoodle = $this->url('moodle');
12
$js = <<<JS
12
$js = <<<JS
13
const backendVars={
13
const backendVars={
14
  LBL_SELF_EVALUATION: "LABEL_SELF_EVALUATION",
14
  LBL_PERFORMANCE_EVALUATION: "LABEL_PERFORMANCE_EVALUATION",
15
  LBL_DATATABLE_SZERORECORDS: "LABEL_DATATABLE_SZERORECORDS",
15
  LBL_DATATABLE_SZERORECORDS: "LABEL_DATATABLE_SZERORECORDS",
16
  LBL_DATATABLE_SSEARCH: "LABEL_DATATABLE_SSEARCH",
16
  LBL_DATATABLE_SSEARCH: "LABEL_DATATABLE_SSEARCH",
17
  LBL_REPORT: "LABEL_REPORT",
17
  LBL_REPORT: "LABEL_REPORT",
18
  LBL_TAKE_A_TEST: "LABEL_TAKE_A_TEST",
18
  LBL_TAKE_A_TEST: "LABEL_TAKE_A_TEST",
19
  LBL_CONTINUE_A_TEST: "LABEL_CONTINUE_A_TEST",
19
  LBL_CONTINUE_A_TEST: "LABEL_CONTINUE_A_TEST",
20
  LBL_LANGUAGE: "LABEL_LANGUAGE",
20
  LBL_LANGUAGE: "LABEL_LANGUAGE",
21
  LBL_STATUS: "LABEL_STATUS",
21
  LBL_STATUS: "LABEL_STATUS",
22
  LBL_SAVE: "LABEL_SAVE LABEL_SELF_EVALUATION",
22
  LBL_SAVE: "LABEL_SAVE LABEL_PERFORMANCE_EVALUATION",
23
  LBL_CANCEL: "LABEL_CANCEL LABEL_SELF_EVALUATION",
23
  LBL_CANCEL: "LABEL_CANCEL LABEL_PERFORMANCE_EVALUATION",
24
  LBL_QUESTION: "LABEL_QUESTION",
24
  LBL_QUESTION: "LABEL_QUESTION",
25
  LBL_SELF_EVALUATION_TEST_FORM_NEXT: "LABEL_SELF_EVALUATION_TEST_FORM_NEXT",
25
  LBL_EVALUATION_TEST_FORM_NEXT: "LABEL_EVALUATION_TEST_FORM_NEXT",
26
  LBL_SELF_EVALUATION_TEST_FORM_PREVIOUS: "LABEL_SELF_EVALUATION_TEST_FORM_PREVIOUS",
26
  LBL_EVALUATION_TEST_FORM_PREVIOUS: "LABEL_EVALUATION_TEST_FORM_PREVIOUS",
27
  LBL_EMPTY_ANSWER: "ERROR_EMPTY_ANSWER",
27
  LBL_EMPTY_ANSWER: "ERROR_EMPTY_ANSWER",
28
  LBL_SUCCESS_SELF_EVALUATION: "LABEL_SUCCESS_SELF_EVALUATION",
28
  LBL_SUCCESS_EVALUATION: "LABEL_SUCCESS_EVALUATION",
29
  LBL_GO_BACK:"LABEL_GO_BACK",
29
  LBL_GO_BACK:"LABEL_GO_BACK",
30
  LBL_TITLE_CONFIRM_SELF_EVALUATION: "LABEL_TITLE_CONFIRM_SELF_EVALUATION",
30
  LBL_TITLE_COMFIRM_EVALUATION: "LABEL_TITLE_COMFIRM_EVALUATION",
31
  LBL_TEXT_CONFIRM_SELF_EVALUATION: "LABEL_TEXT_CONFIRM_SELF_EVALUATION",
31
  LBL_TEXT_COMFIRM_EVALUATION: "LABEL_TEXT_COMFIRM_EVALUATION",
32
  LBL_BTN_CONFIRM_SELF_EVALUATION: "LABEL_BTN_CONFIRM_SELF_EVALUATION",
32
  LBL_BTN_COMFIRM_EVALUATION: "LABEL_BTN_COMFIRM_EVALUATION",
33
  LBL_TEXT_SAVE_CONTINUE_FORM: "LABEL_TEXT_SAVE_CONTINUE_FORM",
33
  LBL_TEXT_SAVE_CONTINUE_FORM: "LABEL_TEXT_SAVE_CONTINUE_FORM",
34
  LBL_ERROR_ANSWER_FORM: "LABEL_ERROR_ANSWER_FORM",
34
  LBL_ERROR_ANSWER_FORM: "LABEL_ERROR_ANSWER_FORM",
35
  STATUS_DRAFT: "$draft",
35
  STATUS_DRAFT: "$draft",
Línea 36... Línea 36...
36
  STATUS_PENDING: "$pending",
36
  STATUS_PENDING: "$pending",
37
  STATUS_COMPLETED: "$completed"
37
  STATUS_COMPLETED: "$completed"
38
}
38
}
39
 
39
 
40
JS;
40
JS;
Línea 41... Línea 41...
41
$this->inlineScript()->appendScript($js);
41
$this->inlineScript()->appendScript($js);
42
$this->inlineScript()->appendFile('/react-bundles/self-evaluation/selfEvaluationBundle.js');
42
$this->inlineScript()->appendFile('/react-bundles/performance-evaluation/performanceEvaluationBundle.js');
43
$this->inlineScript()->appendFile('/js/scrollbar.js');
43
$this->inlineScript()->appendFile('/js/scrollbar.js');
44
?>
44
?>
45
 
45
 
46
<div id="react-self-evaluation" class="posts-section">
46
<div id="react-performance-evaluation" class="posts-section">