Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 15373 | Rev 16822 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
8780 eleazar 1
<?php
2
$acl = $this->viewModel()->getRoot()->getVariable('acl');
3
$currentUser = $this->currentUserHelper();
4
$roleName = $currentUser->getUserTypeId();
5
 
6
$params = [
8803 eleazar 7
    'interview_uuid' => $interview_uuid,
8780 eleazar 8
];
9
 
10
$routeAdd       = $this->url('recruitment-and-selection/interview/file/add', $params);
11
$routeDatatable  = $this->url('recruitment-and-selection/interview/file', $params);
12
 
13
$allowAdd = $acl->isAllowed($roleName, 'recruitment-and-selection/interview/file/add') ? 1 : 0;
14
$allowDelete = $acl->isAllowed($roleName, 'recruitment-and-selection/interview/file/delete') ? 1 : 0;
15
$allowEdit = $acl->isAllowed($roleName, 'recruitment-and-selection/interview/file/edit') ? 1 : 0;
16
 
17
$this->headLink()->appendStylesheet($this->basePath('plugins/nprogress/nprogress.css'));
18
$this->inlineScript()->appendFile($this->basePath('plugins/nprogress/nprogress.js'));
19
 
20
$this->inlineScript()->appendFile($this->basePath('plugins/ckeditor/ckeditor.js'));
21
 
22
$this->inlineScript()->appendFile($this->basePath('plugins/bootbox/bootbox.min.js'));
23
 
24
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-fileinput/css/fileinput.min.css'));
25
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-fileinput/themes/explorer-fas/theme.css'));
26
 
27
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/plugins/piexif.js'));
28
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/plugins/sortable.js'));
29
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/fileinput.js'));
30
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/js/locales/es.js'));
31
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/themes/fas/theme.js'));
32
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-fileinput/themes/explorer-fas/theme.js'));
33
 
34
 
35
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));
36
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));
37
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/localization/messages_es.js'));
38
 
39
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css'));
40
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-responsive/css/responsive.bootstrap4.min.css'));
41
 
42
$this->inlineScript()->appendFile($this->basePath('plugins/datatables/jquery.dataTables.min.js'));
43
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-bs4/js/dataTables.bootstrap4.min.js'));
44
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/dataTables.responsive.min.js'));
45
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/responsive.bootstrap4.min.js'));
46
 
47
 
48
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));
49
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));
50
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/localization/messages_es.js'));
51
 
52
 
53
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
54
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));
55
 
56
$this->inlineScript()->appendFile($this->basePath('plugins/select2/js/select2.js'));
57
$this->inlineScript()->appendFile($this->basePath('plugins/select2/js/i18n/es.js'));
58
$this->headLink()->appendStylesheet($this->basePath('plugins/select2/css/select2.css'));
59
 
60
$this->headLink()->appendStylesheet($this->basePath('plugins/select2-bootstrap4-theme/select2-bootstrap4.css'));
61
 
62
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-confirmation/dist/bootstrap-confirmation.js'));
63
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-checkbox/awesome-bootstrap-checkbox.css'));
64
 
65
 
66
$this->inlineScript()->captureStart();
67
echo <<<JS
68
    $.prototype.fileinput.Constructor.prototype["setUploadUrl"] = function(url) {
69
        this.uploadUrl = url;
70
    }
71
 
72
 
73
jQuery(document).ready(function ($) {
74
 
75
 
76
 
77
    var allowAdd = $allowAdd;
78
    var allowDelete = $allowDelete;
79
    var allowEdit = $allowEdit;
80
 
81
    var gridTable = $('#gridTable').dataTable({
82
        'processing': true,
83
        'serverSide': true,
84
        'searching': true,
85
        'order': [[1, 'asc']],
86
        'ordering': true,
87
        'ordenable': true,
88
        'responsive': true,
89
        'select': false,
90
        'paging': true,
91
        'pagingType': 'simple_numbers',
92
        'lengthMenu': [[10, 25, 50, -1], [10, 25, 50, 'All']],
93
 
94
        'ajax': {
95
            'url': '$routeDatatable',
96
            'type': 'get',
97
            'data': function (d) {
98
            },
99
            'beforeSend': function (request) {
100
                NProgress.start();
101
            },
102
            'dataFilter': function (response) {
103
                var response = jQuery.parseJSON(response);
104
 
105
                var json = {};
106
                json.recordsTotal = 0;
107
                json.recordsFiltered = 0;
108
                json.data = [];
109
 
110
                if (response.success) {
111
                    json.recordsTotal = response.data.total;
112
                    json.recordsFiltered = response.data.total;
113
                    json.data = response.data.items;
14932 stevensc 114
                    $("#user-title").text('LABEL_PSYCOPTECNICH' + ' - ' + response.data.candidate.full_name);
8780 eleazar 115
                } else {
116
                    $.fn.showError(response.data)
117
                }
118
 
119
                return JSON.stringify(json);
120
            }
121
        },
122
        'language': {
123
            'sProcessing': 'LABEL_DATATABLE_SPROCESSING',
124
            'sLengthMenu': 'LABEL_DATATABLE_SLENGTHMENU',
125
            'sZeroRecords': 'LABEL_DATATABLE_SZERORECORDS',
126
            'sEmptyTable': 'LABEL_DATATABLE_SEMPTYTABLE',
127
            'sInfo': 'LABEL_DATATABLE_SINFO',
128
            'sInfoEmpty': 'LABEL_DATATABLE_SINFOEMPTY',
129
            'sInfoFiltered': 'LABEL_DATATABLE_SINFOFILTERED',
130
            'sInfoPostFix': '',
131
            'sSearch': 'LABEL_DATATABLE_SSEARCH',
132
            'sUrl': '',
133
            'sInfoThousands': ',',
134
            'sLoadingRecords': 'LABEL_DATATABLE_SLOADINGRECORDS',
135
            'oPaginate': {
136
                'sFirst': 'LABEL_DATATABLE_SFIRST',
137
                'sLast': 'LABEL_DATATABLE_SLAST',
138
                'sNext': 'LABEL_DATATABLE_SNEXT',
139
                'sPrevious': 'LABEL_DATATABLE_SPREVIOUS'
140
            },
141
            'oAria': {
142
                'sSortAscending': ': LABEL_DATATABLE_SSORTASCENDING',
143
                'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
144
            },
145
        },
146
        'drawCallback': function (settings) {
147
            NProgress.done();
148
            $('button.btn-delete').confirmation({
149
                rootSelector: 'button.btn-delete',
150
                title: 'LABEL_ARE_YOU_SURE',
151
                singleton: true,
152
                btnOkLabel: 'LABEL_YES',
153
                btnCancelLabel: 'LABEL_NO',
154
                onConfirm: function (value) {
155
                    action = $(this).data('href');
156
                    NProgress.start();
157
                    $.ajax({
158
                        'dataType': 'json',
159
                        'accept': 'application/json',
160
                        'method': 'post',
161
                        'url': action,
162
                    }).done(function (response) {
163
                        if (response['success']) {
164
                            $.fn.showSuccess(response['data']);
165
                            gridTable.api().ajax.reload(null, false);
166
                        } else {
167
                            $.fn.showError(response['data']);
168
                        }
169
                    }).fail(function (jqXHR, textStatus, errorThrown) {
170
                        $.fn.showError(textStatus);
171
                    }).always(function () {
172
                        NProgress.done();
173
                    });
174
                },
175
            });
176
 
177
            $('#form-add #file').fileinput({
178
                theme: 'fas',
179
                language: 'es',
180
                showUpload: false,
181
                dropZoneEnabled: false,
182
                maxFileCount: 1,
183
                allowedFileExtensions: ['pdf', 'docx'],
184
            });
185
 
186
            $('#form-edit #file').fileinput({
187
                theme: 'fas',
188
                language: 'es',
189
                showUpload: false,
190
                initialPreviewAsData: true,
191
                dropZoneEnabled: false,
192
                maxFileCount: 1,
193
                allowedFileExtensions: ['pdf', 'docx'],
194
            });
195
 
196
 
197
            $('body').on('click', 'button.btn-add', function (e) {
198
                e.preventDefault();
199
 
200
                $('#form-add #title').val('');
201
                $('#form-add #file').fileinput('reset');
202
                $('#form-add #file').val('');
203
                CKEDITOR.instances.coment.setData('');
204
                validatorAdd.resetForm();
205
 
206
                $('#add-file-box').modal('show');
207
                return false;
208
            });
209
 
210
            $(".close-box, .btn-add-cancel").on("click", function (e) {
211
                e.preventDefault();
212
 
213
                $('#add-file-box').modal('hide');
214
                $('#edit-file-box').modal('hide');
215
                return false;
216
            });
217
 
218
            var validatorEdit = $('#form-edit').validate({
219
                debug: true,
220
                onclick: false,
221
                onkeyup: false,
222
                onfocusout: false,
223
                ignore: [],
224
                rules: {
225
                    'title': {
226
                        required: false,
227
                    },
228
                    'file': {
229
                        required: false,
230
                        extension: 'pdf|docx',
231
                        accept: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/msword,application/pdf'
232
                    },
233
                    'coment':{
234
                        updateCkeditor:function() {
235
                        CKEDITOR.instances.coment.updateElement();
236
                        },
237
                    },
238
                },
239
                submitHandler: function (form) {
240
                    var formdata = false;
241
                    if (window.FormData) {
242
                        formdata = new FormData(form); //form[0]);
243
                    }
244
 
15374 stevensc 245
                    $('#edit-file-box .btn-primary').prop('disabled', true);
246
 
8780 eleazar 247
                    $.ajax({
248
                        'dataType': 'json',
249
                        'accept': 'application/json',
250
                        'method': 'post',
251
                        'url': $('#form-edit').attr('action'),
252
                        'data': formdata,
253
                        'processData': false,
254
                        'contentType': false,
255
                    }).done(function (response) {
256
                        if (response['success']) {
257
                            $.fn.showSuccess(response['data']);
15374 stevensc 258
 
8780 eleazar 259
                            $('#edit-file-box').modal('hide');
260
                            gridTable.api().ajax.reload(null, false);
261
                        } else {
262
                            validatorEdit.resetForm();
263
                            if (jQuery.type(response['data']) == 'string') {
264
                                $.fn.showError(response['data']);
265
                            } else {
266
                                $.each(response['data'], function (fieldname, errors) {
267
                                    $.fn.showFormErrorValidator('#form-edit #' + fieldname, errors);
268
                                });
269
                            }
270
                        }
271
                    }).fail(function (jqXHR, textStatus, errorThrown) {
272
                        $.fn.showError(textStatus);
273
                    }).always(function () {
15374 stevensc 274
                        $('#edit-file-box .btn-primary').prop('disabled', false);
8780 eleazar 275
                        NProgress.done();
276
                    });
277
                    return false;
278
                },
279
                invalidHandler: function (form, validator) {
280
 
281
                }
282
            });
283
 
284
            $('body').on('click', 'button.btn-edit', function (e) {
285
                e.preventDefault();
286
 
287
                var url = $(this).data('href');
288
                $.ajax({
289
                    'dataType': 'json',
290
                    'accept': 'application/json',
291
                    'method': 'get',
292
                    'url': url,
293
                }).done(function (response) {
294
                    if (response['success']) {
295
                        $('#form-edit')[0].reset();
296
 
297
                        $('#form-edit').attr('action', url);
298
 
299
                        $('#form-edit #title').val(response['data']['title']);
300
                        $('#form-edit #coment').val(response['data']['coment']);
301
                        $('#form-edit #btn-cv').attr('href', response['data']['file']);
302
 
303
 
304
 
305
                        $('#form-edit #file').fileinput('reset');
306
                        $('#form-edit #file').fileinput('setUploadUrl', response['data']['file'] );
307
 
308
 
309
                        $('#form-edit #status').val(response['data']['status']);
310
 
311
                        $('#edit-file-box').modal('show');
312
                    } else {
313
                        validatorEdit.resetForm();
314
                        if (jQuery.type(response['data']) == 'string') {
315
                            $.fn.showError(response['data']);
316
                        } else {
317
                            $.each(response['data'], function (fieldname, errors) {
318
                                $.fn.showFormErrorValidator('#form-edit #' + fieldname, errors);
319
                            });
320
                        }
321
                    }
322
                }).fail(function (jqXHR, textStatus, errorThrown) {
323
                    $.fn.showError(textStatus);
324
                }).always(function () {
325
                    NProgress.done();
326
                });
327
            });
328
 
329
            var validatorAdd = $('#form-add').validate({
330
                debug: true,
331
                onclick: false,
332
                onkeyup: false,
333
                onfocusout: false,
334
                ignore: [],
335
                rules: {
336
                    'title': {
337
                        required: true,
8822 eleazar 338
                        maxlength: 64,
8780 eleazar 339
                    },
340
                    'file': {
341
                        required: false,
342
                        extension: 'pdf|docx',
343
                        accept: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/msword,application/pdf'
344
                    },
345
                    'coment':{
346
                        updateCkeditor:function() {
347
                            CKEDITOR.instances.coment.updateElement();
348
                        },
349
                    },
350
                },
351
                submitHandler: function (form) {
352
                    var formdata = false;
353
                    if (window.FormData) {
354
                        formdata = new FormData(form); //form[0]);
355
                    }
356
 
15372 stevensc 357
                    $('#add-file-box .btn-primary').prop('disabled', true);
15373 stevensc 358
 
8780 eleazar 359
                    $.ajax({
360
                        'dataType': 'json',
361
                        'accept': 'application/json',
362
                        'method': 'post',
363
                        'url': $('#form-add').attr('action'),
364
                        'data': formdata,
365
                        'processData': false,
366
                        'contentType': false,
367
                    }).done(function (response) {
368
                        if (response['success']) {
369
                            $.fn.showSuccess(response['data']);
15373 stevensc 370
 
8780 eleazar 371
                            $('#add-file-box').modal('hide');
372
                            gridTable.api().ajax.reload(null, false);
373
                        } else {
374
                            validatorAdd.resetForm();
375
                            if (jQuery.type(response['data']) == 'string') {
376
                                $.fn.showError(response['data']);
377
                            } else {
378
                                $.each(response['data'], function (fieldname, errors) {
379
                                    $.fn.showFormErrorValidator('#form-add #' + fieldname, errors);
380
                                });
381
                            }
382
                        }
383
                    }).fail(function (jqXHR, textStatus, errorThrown) {
384
                        $.fn.showError(textStatus);
385
                    }).always(function () {
15373 stevensc 386
                        $('#add-file-box .btn-primary').prop('disabled', false);
8780 eleazar 387
                        NProgress.done();
388
                    });
389
                    return false;
390
                },
391
                invalidHandler: function (form, validator) {
392
 
393
                }
394
            });
395
        },
396
        'aoColumns': [
397
            { 'mDataProp': 'title' },
8880 eleazar 398
            { 'mDataProp': 'coment' },
8780 eleazar 399
            { 'mDataProp': 'actions' },
400
        ],
401
        'columnDefs': [
402
            {
403
                'targets': -1,
404
                'orderable': false,
405
                'render': function (data, type, row) {
406
                    s = '';
407
 
408
                    if (allowEdit && data['link_edit']) {
409
                        s = s + '<button class="btn btn-info btn-sm btn-edit" data-href="' + data['link_edit'] + '" data-toggle="tooltip" title="LABEL_EDIT"><i class="fa fa-pencil"></i> LABEL_EDIT </button>&nbsp;';
410
                    }
411
 
412
                    if (allowDelete && data['link_delete']) {
413
                        s = s + '<button class="btn btn-danger btn-sm btn-delete" data-href="' + data['link_delete'] + '" data-toggle="tooltip" title="LABEL_DELETE"><i class="fa fa-times"></i> LABEL_DELETE </button>&nbsp;';
414
                    }
415
 
416
                    return s;
417
                }
418
            }
419
        ],
420
    });
421
 
422
 
423
    $('body').on('click', 'button.btn-refresh', function (e) {
424
        e.preventDefault();
425
        gridTable.api().ajax.reload(null, false);
426
    });
427
 
14922 stevensc 428
    $('body').on('click', '#go-back', function () {
429
        history.back();
430
    });
431
 
8780 eleazar 432
    CKEDITOR.replace('coment', {
433
        toolbar: [
434
                    { name: 'editing', items: ['Scayt'] },
435
                    { name: 'links', items: ['Link', 'Unlink'] },
436
                    { name: 'paragraph', items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', 'Blockquote'] },
437
                    { name: 'basicstyles', items: ['Bold', 'Italic', 'Strike', 'RemoveFormat'] },
438
                    '/',
439
                    { name: 'insert', items: ['Image', 'Table', 'HorizontalRule', 'SpecialChar'] },
440
                    { name: 'styles', items: ['Styles', 'Format'] },
441
                    { name: 'tools', items: ['Maximize'] }
442
                ],
443
                removePlugins: 'elementspath,Anchor',
444
                heigth: 100
445
    });
446
});
447
JS;
14913 stevensc 448
$this->inlineScript()->captureEnd();
8780 eleazar 449
?>
450
 
451
 
452
<!-- Content Header (Page header) -->
453
<section class="content-header">
454
    <div class="container-fluid">
455
        <div class="row mb-2">
14924 stevensc 456
            <div class="col-sm-12 d-flex align-items-center">
14925 stevensc 457
                <i class="fa fa-angle-left mr-3 cursor-pointer" id='go-back'></i>
14923 stevensc 458
                <h1 id="user-title">LABEL_PSYCOPTECNICH</h1>
8780 eleazar 459
            </div>
460
        </div>
461
    </div><!-- /.container-fluid -->
462
</section>
463
 
464
<section class="content">
465
    <div class="container-fluid">
466
        <div class="row">
467
            <div class="col-12">
468
                <div class="card">
469
                    <div class="card-body">
470
                        <table id="gridTable" class="table   table-hover">
471
                            <thead>
14919 stevensc 472
                                <tr>
473
                                    <th>LABEL_TITLE</th>
474
                                    <th>LABEL_COMMENT</th>
475
                                    <th>LABEL_ACTIONS</th>
476
                                </tr>
8780 eleazar 477
                            </thead>
478
                            <tbody>
479
                            </tbody>
480
                        </table>
481
                    </div>
482
                    <div class="card-footer clearfix">
483
                        <div style="float:right;">
484
                            <button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i>
485
                                LABEL_REFRESH
486
                            </button>
487
                            <?php if ($allowAdd) : ?>
488
                                <button type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i>
489
                                    LABEL_ADD
490
                                </button>
491
                            <?php endif; ?>
492
                        </div>
493
                    </div>
494
                </div>
495
            </div>
496
        </div>
497
    </div>
498
</section>
499
 
500
<!-- The Add Modal -->
501
<div class="modal" tabindex="-1" role="dialog" id="add-file-box">
502
    <div class="modal-dialog" role="document">
503
        <?php
504
        //$form = $this->formAdd;
505
        $form->setAttributes([
506
            'method' => 'post',
507
            'name' => 'form-add',
508
            'action' => $routeAdd,
509
            'id' => 'form-add'
510
        ]);
511
        $form->prepare();
512
        echo $this->form()->openTag($form);
513
        ?>
514
        <div class="modal-content">
515
            <div class="modal-header">
8881 eleazar 516
                <h3 class="modal-title">LABEL_NEW_EVALUATION</h3>
8780 eleazar 517
            </div>
8825 eleazar 518
            <div class="modal-body">
8780 eleazar 519
                <div class="form-group">
8825 eleazar 520
                    <?php
521
                    $element = $form->get('title');
522
                    $element->setOptions(['label' => 'LABEL_TITLE']);
523
                    $element->setAttributes(['class' => 'form-control']);
524
                    echo $this->formLabel($element);
525
                    echo $this->formText($element);
526
                    ?>
527
                </div>
528
                <div class="form-group">
14919 stevensc 529
                    <?php
530
                    $element = $form->get('coment');
531
                    $element->setAttributes(['class' => 'form-control']);
532
                    $element->setOptions(['label' => 'LABEL_COMMENT']);
533
                    echo $this->formLabel($element);
534
                    echo $this->formTextArea($element);
8780 eleazar 535
                    ?>
14919 stevensc 536
                </div>
8780 eleazar 537
                <div class="form-group">
538
                    <?php
539
                    $element = $form->get('file');
14927 stevensc 540
                    $element->setAttributes(['class' => 'form-control', 'accept' => 'pdf/docx']);
8893 eleazar 541
                    $element->setOptions(['label' => 'LABEL_FILE']);
8780 eleazar 542
                    echo $this->formLabel($element);
543
                    ?>
544
                    <div class="file-loading">
545
                        <?php echo $this->formFile($element); ?>
546
                    </div>
547
                </div>
548
            </div>
8827 eleazar 549
            <div class="modal-footer">
550
                <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
551
                <button type="button" class="btn btn-default btn-add-cancel">LABEL_CANCEL</button>
552
            </div>
8780 eleazar 553
            <?php echo $this->form()->closeTag($form); ?>
554
        </div>
555
    </div>
556
</div>
557
 
558
<!-- The Edit Modal -->
8821 eleazar 559
<div class="modal" tabindex="-1" role="dialog" id="edit-file-box">
8780 eleazar 560
    <div class="modal-dialog" role="document">
561
        <?php
562
        $form->setAttributes([
563
            'method' => 'post',
564
            'name' => 'form-edit',
565
            'id' => 'form-edit'
566
        ]);
567
        $form->prepare();
568
        echo $this->form()->openTag($form);
569
        ?>
570
        <div class="modal-content">
571
            <div class="modal-header">
572
                <h3 class="modal-title">LABEL_NEW_EVALUATION</h3>
573
            </div>
14919 stevensc 574
            <div class="modal-body">
8780 eleazar 575
                <div class="form-group">
14919 stevensc 576
                    <?php
577
                    $element = $form->get('title');
578
                    $element->setAttributes(['class' => 'form-control']);
579
                    $element->setOptions(['label' => 'LABEL_TITLE']);
580
                    echo $this->formLabel($element);
581
                    echo $this->formText($element);
8780 eleazar 582
                    ?>
14919 stevensc 583
                </div>
8780 eleazar 584
                <div class="form-group">
585
                    <?php
586
                    $element = $form->get('file');
587
                    $element->setAttributes(['class' => 'form-control', 'accept' => 'pdf/docx']);
8892 eleazar 588
                    $element->setOptions(['label' => 'LABEL_FILE']);
8780 eleazar 589
                    echo $this->formLabel($element);
590
                    ?>
591
                    <div class="file-loading">
592
                        <?php echo $this->formFile($element); ?>
593
                    </div>
8878 eleazar 594
 
595
                    <div class="mt-2" id="current-file">
14919 stevensc 596
                        <a href="" class="btn btn-primary" id="btn-cv" target="_blank">Evaluacion actual</a>
8878 eleazar 597
                    </div>
8780 eleazar 598
                </div>
599
                <div class="form-group">
600
                    <?php
601
                    $element = $form->get('coment');
602
                    $element->setAttributes(['class' => 'form-control']);
603
                    $element->setOptions(['label' => 'LABEL_COMMENT']);
604
                    echo $this->formLabel($element);
605
                    echo $this->formTextArea($element);
606
                    ?>
607
                </div>
608
                <div class="modal-footer">
609
                    <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
610
                    <button type="button" class="btn btn-default btn-add-cancel">LABEL_CANCEL</button>
611
                </div>
612
            </div>
613
            <?php echo $this->form()->closeTag($form); ?>
614
        </div>
615
    </div>
14919 stevensc 616
</div>