| Línea 54... |
Línea 54... |
| 54 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootbox/bootbox.min.js'));
|
54 |
$this->inlineScript()->appendFile($this->basePath('plugins/bootbox/bootbox.min.js'));
|
| Línea 55... |
Línea 55... |
| 55 |
|
55 |
|
| 56 |
// JsRender //
|
56 |
// JsRender //
|
| Línea 57... |
Línea -... |
| 57 |
$this->inlineScript()->appendFile($this->basePath('plugins/jsrender/jsrender.min.js'));
|
- |
|
| 58 |
|
- |
|
| 59 |
// Page Styles
|
- |
|
| 60 |
$this->headLink()->appendStylesheet($this->basePath('css/pages/performance-evaluation.css'));
|
- |
|
| 61 |
|
- |
|
| 62 |
$status_active = \LeadersLinked\Model\CompanySelfEvaluationForm::STATUS_ACTIVE;
|
- |
|
| 63 |
$status_inactive = \LeadersLinked\Model\CompanySelfEvaluationForm::STATUS_INACTIVE;
|
- |
|
| 64 |
|
- |
|
| 65 |
$lang_es = \LeadersLinked\Model\CompanySelfEvaluationForm::LANGUAGE_SPANISH;
|
- |
|
| 66 |
$lang_en = \LeadersLinked\Model\CompanySelfEvaluationForm::LANGUAGE_ENGLISH;
|
- |
|
| 67 |
|
57 |
$this->inlineScript()->appendFile($this->basePath('plugins/jsrender/jsrender.min.js'));
|
| 68 |
|
58 |
|
| 69 |
$this->inlineScript()->captureStart();
|
59 |
$this->inlineScript()->captureStart();
|
| 70 |
echo <<<JS
|
60 |
echo <<<JS
|
| 71 |
const classFormGenerator = function() {
|
61 |
const classFormGenerator = function() {
|
| Línea 982... |
Línea 972... |
| 982 |
$('#form-section #section-id').val('');
|
972 |
$('#form-section #section-id').val('');
|
| 983 |
CKEDITOR.instances['section-text'].setData('');
|
973 |
CKEDITOR.instances['section-text'].setData('');
|
| 984 |
$('#form-section #section-type').val($('#form-section #section-type option:first').val());
|
974 |
$('#form-section #section-type').val($('#form-section #section-type option:first').val());
|
| 985 |
$('#form-section #section-max-length').val('0');
|
975 |
$('#form-section #section-max-length').val('0');
|
| 986 |
$('#form-section #section-max-length').parent().show();
|
976 |
$('#form-section #section-max-length').parent().show();
|
| 987 |
$('#form-section #section-multiline').val('0');
|
- |
|
| 988 |
$('#form-section #section-multiline').parent().show();
|
- |
|
| 989 |
$('#modal-section h4[class="modal-title"]').html('LABEL_ADD LABEL_SECTION');
|
977 |
$('#modal-section h4[class="modal-title"]').html('LABEL_ADD LABEL_SECTION');
|
| 990 |
$('#modal-section').modal('show');
|
978 |
$('#modal-section').modal('show');
|
| 991 |
});
|
979 |
});
|
| 992 |
/**
|
980 |
/**
|
| 993 |
* Clicked edit question
|
981 |
* Clicked edit question
|
| Línea 1225... |
Línea 1213... |
| 1225 |
e.preventDefault();
|
1213 |
e.preventDefault();
|
| 1226 |
$('#form-main #form-continue').val('0')
|
1214 |
$('#form-main #form-continue').val('0')
|
| 1227 |
$('#form-main').submit();
|
1215 |
$('#form-main').submit();
|
| 1228 |
});
|
1216 |
});
|
| 1229 |
/**
|
1217 |
/**
|
| 1230 |
* Modal Settings
|
- |
|
| 1231 |
*/
|
- |
|
| 1232 |
$('#modal-section, #modal-section, #modal-option').modal({
|
- |
|
| 1233 |
backdrop: 'static',
|
- |
|
| 1234 |
keyboard: false,
|
- |
|
| 1235 |
show: false
|
- |
|
| 1236 |
});
|
- |
|
| 1237 |
/**
|
- |
|
| 1238 |
* Get Question type
|
1218 |
* Get Question type
|
| 1239 |
*/
|
1219 |
*/
|
| 1240 |
const getQuestionTypeBySlug = (slug_section, slug_question) => {
|
1220 |
const getQuestionTypeBySlug = (slug_section, slug_question) => {
|
| 1241 |
for (i = 0; i < objFormGenerator.sections.length; i++) {
|
1221 |
for (i = 0; i < objFormGenerator.sections.length; i++) {
|
| 1242 |
if (slug_section == objFormGenerator.sections[i].slug_section) {
|
1222 |
if (slug_section == objFormGenerator.sections[i].slug_section) {
|
| Línea 1388... |
Línea 1368... |
| 1388 |
</div>
|
1368 |
</div>
|
| 1389 |
<div class="form-group">
|
1369 |
<div class="form-group">
|
| 1390 |
<label for="section-max-length">LABEL_MAXLENGTH</label>
|
1370 |
<label for="section-max-length">LABEL_MAXLENGTH</label>
|
| 1391 |
<input type="text" name="section-max-length" id="section-max-length" class="form-control" />
|
1371 |
<input type="text" name="section-max-length" id="section-max-length" class="form-control" />
|
| 1392 |
</div>
|
1372 |
</div>
|
| 1393 |
<div class="form-group">
|
- |
|
| 1394 |
<label for="section-multiline">LABEL_MULTI_LINE</label>
|
- |
|
| 1395 |
<select name="section-multiline" id="section-multiline" class="form-control">
|
- |
|
| 1396 |
<option value="1">LABEL_YES</option>
|
- |
|
| 1397 |
<option value="0">LABEL_NOT</option>
|
- |
|
| 1398 |
</select>
|
- |
|
| 1399 |
</div>
|
- |
|
| 1400 |
</div>
|
1373 |
</div>
|
| 1401 |
<div class="modal-footer">
|
1374 |
<div class="modal-footer">
|
| 1402 |
<button type="submit" class="btn btn-primary">LABEL_SAVE</button>
|
1375 |
<button type="submit" class="btn btn-primary">LABEL_SAVE</button>
|
| 1403 |
<button type="button" class="btn btn-secondary" data-dismiss="modal">LABEL_CLOSE</button>
|
1376 |
<button type="button" class="btn btn-secondary" data-dismiss="modal">LABEL_CLOSE</button>
|
| 1404 |
</div>
|
1377 |
</div>
|