| Línea 1... |
Línea 1... |
| 1 |
<?php
|
1 |
<?php
|
| 2 |
$acl = $this->viewModel()->getRoot()->getVariable('acl');
|
2 |
$acl = $this->viewModel()->getRoot()->getVariable('acl');
|
| 3 |
$currentUser = $this->currentUserHelper();
|
3 |
$currentUser = $this->currentUserHelper();
|
| Línea 4... |
Línea 4... |
| 4 |
|
4 |
|
| Línea 5... |
Línea 5... |
| 5 |
$roleName = $currentUser->getUserTypeId();
|
5 |
$roleName = $currentUser->getUserTypeId();
|
| 6 |
|
6 |
|
| 7 |
$routeAdd = $this->url('self-evaluation/forms/add');
|
7 |
$routeAdd = $this->url('self-evaluation/forms/add');
|
| Línea 8... |
Línea 8... |
| 8 |
$routeDatatable = $this->url('self-evaluation/forms');
|
8 |
$routeDatatable = $this->url('self-evaluation/forms');
|
| 9 |
$routeDashboard = $this->url('dashboard');
|
9 |
$routeDashboard = $this->url('dashboard');
|
| 10 |
|
10 |
|
| Línea 11... |
Línea 11... |
| 11 |
$allowAdd = $acl->isAllowed($roleName, 'self-evaluation/forms/add') ? 1 : 0;
|
11 |
$allowAdd = $acl->isAllowed($roleName, 'self-evaluation/forms/add') ? 1 : 0;
|
| Línea 53... |
Línea 53... |
| 53 |
$status_active = \LeadersLinked\Model\CompanySelfEvaluationForm::STATUS_ACTIVE;
|
53 |
$status_active = \LeadersLinked\Model\CompanySelfEvaluationForm::STATUS_ACTIVE;
|
| Línea 54... |
Línea 54... |
| 54 |
|
54 |
|
| Línea 55... |
Línea -... |
| 55 |
$language_es = \LeadersLinked\Model\CompanySelfEvaluationForm::LANGUAGE_SPANISH;
|
- |
|
| 56 |
|
- |
|
| 57 |
|
- |
|
| 58 |
|
55 |
$language_es = \LeadersLinked\Model\CompanySelfEvaluationForm::LANGUAGE_SPANISH;
|
| 59 |
|
56 |
|
| 60 |
|
57 |
|
| 61 |
$this->inlineScript()->captureStart();
|
58 |
$this->inlineScript()->captureStart();
|
| 62 |
echo <<<JS
|
59 |
echo <<<JS
|
| Línea 182... |
Línea 179... |
| 182 |
s = s + '<td class="text-right">' + section_value + '</td>';
|
179 |
s = s + '<td class="text-right">' + section_value + '</td>';
|
| 183 |
s = s + '<td> </td>';
|
180 |
s = s + '<td> </td>';
|
| 184 |
s = s + '<td>';
|
181 |
s = s + '<td>';
|
| 185 |
s = s + '<button class="btn btn-default btn-edit-section" data-slug="' + section_slug + '" data-toggle="tooltip" title="LABEL_EDIT LABEL_SECTION"><i class="fa fa-edit" aria-hidden="true"></i> LABEL_EDIT LABEL_SECTION </button> ';
|
182 |
s = s + '<button class="btn btn-default btn-edit-section" data-slug="' + section_slug + '" data-toggle="tooltip" title="LABEL_EDIT LABEL_SECTION"><i class="fa fa-edit" aria-hidden="true"></i> LABEL_EDIT LABEL_SECTION </button> ';
|
| 186 |
s = s + '<button class="btn btn-default btn-delete-section" data-slug="' + section_slug + '" data-toggle="tooltip" title="LABEL_DELETE LABEL_SECTION"><i class="fa fa-ban" aria-hidden="true"></i> LABEL_DELETE LABEL_SECTION </button> ';
|
183 |
s = s + '<button class="btn btn-default btn-delete-section" data-slug="' + section_slug + '" data-toggle="tooltip" title="LABEL_DELETE LABEL_SECTION"><i class="fa fa-ban" aria-hidden="true"></i> LABEL_DELETE LABEL_SECTION </button> ';
|
| 187 |
s = s + '<button class="btn btn-default btn-add-question" data-slug="' + section_slug + '" data-toggle="tooltip" title="LABEL_ADD LABEL_SECTION"><i class="fa fa-plus" aria-hidden="true"></i> LABEL_ADD LABEL_SECTION </button> ';
|
184 |
s = s + '<button class="btn btn-default btn-add-question" data-slug="' + section_slug + '" data-toggle="tooltip" title="LABEL_ADD LABEL_QUESTION"><i class="fa fa-plus" aria-hidden="true"></i> LABEL_ADD LABEL_SECTION </button> ';
|
| 188 |
s = s + '</td>';
|
185 |
s = s + '</td>';
|
| 189 |
s = s + '</tr>';
|
186 |
s = s + '</tr>';
|
| 190 |
$('#' + table + ' tbody').append(s);
|
187 |
$('#' + table + ' tbody').append(s);
|
| 191 |
},
|
188 |
},
|
| Línea 1571... |
Línea 1568... |
| 1571 |
$('#form-question #question-multiline').parent().show();
|
1568 |
$('#form-question #question-multiline').parent().show();
|
| Línea 1572... |
Línea 1569... |
| 1572 |
|
1569 |
|
| 1573 |
$('#form-question #question-range').val('10');
|
1570 |
$('#form-question #question-range').val('10');
|
| Línea 1574... |
Línea 1571... |
| 1574 |
$('#form-question #question-range').parent().hide();
|
1571 |
$('#form-question #question-range').parent().hide();
|
| 1575 |
|
1572 |
|
| Línea 1576... |
Línea 1573... |
| 1576 |
$('#modal-question h4[class="modal-title"]').html('New Question');
|
1573 |
$('#modal-question h4[class="modal-title"]').html('LABEL_EDIT LABEL_QUESTION');
|
| Línea 1920... |
Línea 1917... |
| 1920 |
JS;
|
1917 |
JS;
|
| 1921 |
$this->inlineScript()->captureEnd();
|
1918 |
$this->inlineScript()->captureEnd();
|
| 1922 |
?>
|
1919 |
?>
|
| Línea 1923... |
Línea 1920... |
| 1923 |
|
1920 |
|
| 1924 |
<style type="text/css">
|
1921 |
<style type="text/css">
|
| 1925 |
tbody input[type="checkbox"]{
|
1922 |
tbody input[type="checkbox"]{
|
| 1926 |
margin-left: 14px;
|
1923 |
margin-left: 14px;
|
| 1927 |
}
|
1924 |
}
|
| 1928 |
.panel-heading .accordion-toggle:after {
|
1925 |
.panel-heading .accordion-toggle:after {
|
| 1929 |
/* symbol for "opening" panels */
|
1926 |
/* symbol for "opening" panels */
|
| 1930 |
display: inline-block;
|
1927 |
display: inline-block;
|
| 1931 |
font: normal normal normal 14px/1 FontAwesome;
|
1928 |
font: normal normal normal 14px/1 FontAwesome;
|
| 1932 |
font-size: inherit;
|
1929 |
font-size: inherit;
|
| 1933 |
content: "\f077" ;
|
1930 |
content: "\f077" ;
|
| 1934 |
float: right; /* adjust as needed */
|
1931 |
float: right; /* adjust as needed */
|
| 1935 |
color: grey; /* adjust as needed */
|
1932 |
color: grey; /* adjust as needed */
|
| 1936 |
text-rendering: auto;
|
1933 |
text-rendering: auto;
|
| 1937 |
-webkit-font-smoothing: antialiased;
|
1934 |
-webkit-font-smoothing: antialiased;
|
| 1938 |
}
|
1935 |
}
|
| 1939 |
.panel-heading .accordion-toggle.collapsed:after {
|
1936 |
.panel-heading .accordion-toggle.collapsed:after {
|
| 1940 |
/* symbol for "collapsed" panels */
|
1937 |
/* symbol for "collapsed" panels */
|
| 1941 |
content: "\f078"; /* adjust as needed, taken from bootstrap.css */
|
1938 |
content: "\f078"; /* adjust as needed, taken from bootstrap.css */
|
| 1942 |
}
|
1939 |
}
|
| 1943 |
</style>
|
1940 |
</style>
|
| 1944 |
|
1941 |
|
| 1945 |
<!-- Content Header (Page header) -->
|
1942 |
<!-- Content Header (Page header) -->
|
| 1946 |
<section class="content-header">
|
1943 |
<section class="content-header">
|
| 1947 |
<div class="container-fluid">
|
1944 |
<div class="container-fluid">
|
| 1948 |
<div class="row mb-2">
|
1945 |
<div class="row mb-2">
|
| 1949 |
<div class="col-sm-12">
|
1946 |
<div class="col-sm-12">
|
| 1950 |
<h1>LABEL_SELF_EVALUATION_FORMS</h1>
|
1947 |
<h1>LABEL_SELF_EVALUATION_FORMS</h1>
|
| 1951 |
</div>
|
1948 |
</div>
|
| 1952 |
</div>
|
1949 |
</div>
|
| 1953 |
</div><!-- /.container-fluid -->
|
1950 |
</div><!-- /.container-fluid -->
|
| Línea 1954... |
Línea 1951... |
| 1954 |
</section>
|
1951 |
</section>
|
| 2187 |
<!-- End Modal Options -->
|
2180 |
<!-- End Modal Options -->
|
| 2188 |
<!-- End Modals -->
|
2181 |
<!-- End Modals -->
|