Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 15372 | Rev 15374 | 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
 
245
                    $('input[type="submit"]').prop('disabled', true);
246
 
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']);
258
 
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 () {
274
                        NProgress.done();
275
                    });
276
                    return false;
277
                },
278
                invalidHandler: function (form, validator) {
279
 
280
                }
281
            });
282
 
283
            $('body').on('click', 'button.btn-edit', function (e) {
284
                e.preventDefault();
285
 
286
                var url = $(this).data('href');
287
                $.ajax({
288
                    'dataType': 'json',
289
                    'accept': 'application/json',
290
                    'method': 'get',
291
                    'url': url,
292
                }).done(function (response) {
293
                    if (response['success']) {
294
                        $('#form-edit')[0].reset();
295
 
296
                        $('#form-edit').attr('action', url);
297
 
298
                        $('#form-edit #title').val(response['data']['title']);
299
                        $('#form-edit #coment').val(response['data']['coment']);
300
                        $('#form-edit #btn-cv').attr('href', response['data']['file']);
301
 
302
 
303
 
304
                        $('#form-edit #file').fileinput('reset');
305
                        $('#form-edit #file').fileinput('setUploadUrl', response['data']['file'] );
306
 
307
 
308
                        $('#form-edit #status').val(response['data']['status']);
309
 
310
                        $('#edit-file-box').modal('show');
311
                    } else {
312
                        validatorEdit.resetForm();
313
                        if (jQuery.type(response['data']) == 'string') {
314
                            $.fn.showError(response['data']);
315
                        } else {
316
                            $.each(response['data'], function (fieldname, errors) {
317
                                $.fn.showFormErrorValidator('#form-edit #' + fieldname, errors);
318
                            });
319
                        }
320
                    }
321
                }).fail(function (jqXHR, textStatus, errorThrown) {
322
                    $.fn.showError(textStatus);
323
                }).always(function () {
324
                    NProgress.done();
325
                });
326
            });
327
 
328
            var validatorAdd = $('#form-add').validate({
329
                debug: true,
330
                onclick: false,
331
                onkeyup: false,
332
                onfocusout: false,
333
                ignore: [],
334
                rules: {
335
                    'title': {
336
                        required: true,
8822 eleazar 337
                        maxlength: 64,
8780 eleazar 338
                    },
339
                    'file': {
340
                        required: false,
341
                        extension: 'pdf|docx',
342
                        accept: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/msword,application/pdf'
343
                    },
344
                    'coment':{
345
                        updateCkeditor:function() {
346
                            CKEDITOR.instances.coment.updateElement();
347
                        },
348
                    },
349
                },
350
                submitHandler: function (form) {
351
                    var formdata = false;
352
                    if (window.FormData) {
353
                        formdata = new FormData(form); //form[0]);
354
                    }
355
 
15372 stevensc 356
                    $('#add-file-box .btn-primary').prop('disabled', true);
15373 stevensc 357
 
8780 eleazar 358
                    $.ajax({
359
                        'dataType': 'json',
360
                        'accept': 'application/json',
361
                        'method': 'post',
362
                        'url': $('#form-add').attr('action'),
363
                        'data': formdata,
364
                        'processData': false,
365
                        'contentType': false,
366
                    }).done(function (response) {
367
                        if (response['success']) {
368
                            $.fn.showSuccess(response['data']);
15373 stevensc 369
 
8780 eleazar 370
                            $('#add-file-box').modal('hide');
371
                            gridTable.api().ajax.reload(null, false);
372
                        } else {
373
                            validatorAdd.resetForm();
374
                            if (jQuery.type(response['data']) == 'string') {
375
                                $.fn.showError(response['data']);
376
                            } else {
377
                                $.each(response['data'], function (fieldname, errors) {
378
                                    $.fn.showFormErrorValidator('#form-add #' + fieldname, errors);
379
                                });
380
                            }
381
                        }
382
                    }).fail(function (jqXHR, textStatus, errorThrown) {
383
                        $.fn.showError(textStatus);
384
                    }).always(function () {
15373 stevensc 385
                        $('#add-file-box .btn-primary').prop('disabled', false);
8780 eleazar 386
                        NProgress.done();
387
                    });
388
                    return false;
389
                },
390
                invalidHandler: function (form, validator) {
391
 
392
                }
393
            });
394
        },
395
        'aoColumns': [
396
            { 'mDataProp': 'title' },
8880 eleazar 397
            { 'mDataProp': 'coment' },
8780 eleazar 398
            { 'mDataProp': 'actions' },
399
        ],
400
        'columnDefs': [
401
            {
402
                'targets': -1,
403
                'orderable': false,
404
                'render': function (data, type, row) {
405
                    s = '';
406
 
407
                    if (allowEdit && data['link_edit']) {
408
                        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;';
409
                    }
410
 
411
                    if (allowDelete && data['link_delete']) {
412
                        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;';
413
                    }
414
 
415
                    return s;
416
                }
417
            }
418
        ],
419
    });
420
 
421
 
422
    $('body').on('click', 'button.btn-refresh', function (e) {
423
        e.preventDefault();
424
        gridTable.api().ajax.reload(null, false);
425
    });
426
 
14922 stevensc 427
    $('body').on('click', '#go-back', function () {
428
        history.back();
429
    });
430
 
8780 eleazar 431
    CKEDITOR.replace('coment', {
432
        toolbar: [
433
                    { name: 'editing', items: ['Scayt'] },
434
                    { name: 'links', items: ['Link', 'Unlink'] },
435
                    { name: 'paragraph', items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', 'Blockquote'] },
436
                    { name: 'basicstyles', items: ['Bold', 'Italic', 'Strike', 'RemoveFormat'] },
437
                    '/',
438
                    { name: 'insert', items: ['Image', 'Table', 'HorizontalRule', 'SpecialChar'] },
439
                    { name: 'styles', items: ['Styles', 'Format'] },
440
                    { name: 'tools', items: ['Maximize'] }
441
                ],
442
                removePlugins: 'elementspath,Anchor',
443
                heigth: 100
444
    });
445
});
446
JS;
14913 stevensc 447
$this->inlineScript()->captureEnd();
8780 eleazar 448
?>
449
 
450
 
451
<!-- Content Header (Page header) -->
452
<section class="content-header">
453
    <div class="container-fluid">
454
        <div class="row mb-2">
14924 stevensc 455
            <div class="col-sm-12 d-flex align-items-center">
14925 stevensc 456
                <i class="fa fa-angle-left mr-3 cursor-pointer" id='go-back'></i>
14923 stevensc 457
                <h1 id="user-title">LABEL_PSYCOPTECNICH</h1>
8780 eleazar 458
            </div>
459
        </div>
460
    </div><!-- /.container-fluid -->
461
</section>
462
 
463
<section class="content">
464
    <div class="container-fluid">
465
        <div class="row">
466
            <div class="col-12">
467
                <div class="card">
468
                    <div class="card-body">
469
                        <table id="gridTable" class="table   table-hover">
470
                            <thead>
14919 stevensc 471
                                <tr>
472
                                    <th>LABEL_TITLE</th>
473
                                    <th>LABEL_COMMENT</th>
474
                                    <th>LABEL_ACTIONS</th>
475
                                </tr>
8780 eleazar 476
                            </thead>
477
                            <tbody>
478
                            </tbody>
479
                        </table>
480
                    </div>
481
                    <div class="card-footer clearfix">
482
                        <div style="float:right;">
483
                            <button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i>
484
                                LABEL_REFRESH
485
                            </button>
486
                            <?php if ($allowAdd) : ?>
487
                                <button type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i>
488
                                    LABEL_ADD
489
                                </button>
490
                            <?php endif; ?>
491
                        </div>
492
                    </div>
493
                </div>
494
            </div>
495
        </div>
496
    </div>
497
</section>
498
 
499
<!-- The Add Modal -->
500
<div class="modal" tabindex="-1" role="dialog" id="add-file-box">
501
    <div class="modal-dialog" role="document">
502
        <?php
503
        //$form = $this->formAdd;
504
        $form->setAttributes([
505
            'method' => 'post',
506
            'name' => 'form-add',
507
            'action' => $routeAdd,
508
            'id' => 'form-add'
509
        ]);
510
        $form->prepare();
511
        echo $this->form()->openTag($form);
512
        ?>
513
        <div class="modal-content">
514
            <div class="modal-header">
8881 eleazar 515
                <h3 class="modal-title">LABEL_NEW_EVALUATION</h3>
8780 eleazar 516
            </div>
8825 eleazar 517
            <div class="modal-body">
8780 eleazar 518
                <div class="form-group">
8825 eleazar 519
                    <?php
520
                    $element = $form->get('title');
521
                    $element->setOptions(['label' => 'LABEL_TITLE']);
522
                    $element->setAttributes(['class' => 'form-control']);
523
                    echo $this->formLabel($element);
524
                    echo $this->formText($element);
525
                    ?>
526
                </div>
527
                <div class="form-group">
14919 stevensc 528
                    <?php
529
                    $element = $form->get('coment');
530
                    $element->setAttributes(['class' => 'form-control']);
531
                    $element->setOptions(['label' => 'LABEL_COMMENT']);
532
                    echo $this->formLabel($element);
533
                    echo $this->formTextArea($element);
8780 eleazar 534
                    ?>
14919 stevensc 535
                </div>
8780 eleazar 536
                <div class="form-group">
537
                    <?php
538
                    $element = $form->get('file');
14927 stevensc 539
                    $element->setAttributes(['class' => 'form-control', 'accept' => 'pdf/docx']);
8893 eleazar 540
                    $element->setOptions(['label' => 'LABEL_FILE']);
8780 eleazar 541
                    echo $this->formLabel($element);
542
                    ?>
543
                    <div class="file-loading">
544
                        <?php echo $this->formFile($element); ?>
545
                    </div>
546
                </div>
547
            </div>
8827 eleazar 548
            <div class="modal-footer">
549
                <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
550
                <button type="button" class="btn btn-default btn-add-cancel">LABEL_CANCEL</button>
551
            </div>
8780 eleazar 552
            <?php echo $this->form()->closeTag($form); ?>
553
        </div>
554
    </div>
555
</div>
556
 
557
<!-- The Edit Modal -->
8821 eleazar 558
<div class="modal" tabindex="-1" role="dialog" id="edit-file-box">
8780 eleazar 559
    <div class="modal-dialog" role="document">
560
        <?php
561
        $form->setAttributes([
562
            'method' => 'post',
563
            'name' => 'form-edit',
564
            'id' => 'form-edit'
565
        ]);
566
        $form->prepare();
567
        echo $this->form()->openTag($form);
568
        ?>
569
        <div class="modal-content">
570
            <div class="modal-header">
571
                <h3 class="modal-title">LABEL_NEW_EVALUATION</h3>
572
            </div>
14919 stevensc 573
            <div class="modal-body">
8780 eleazar 574
                <div class="form-group">
14919 stevensc 575
                    <?php
576
                    $element = $form->get('title');
577
                    $element->setAttributes(['class' => 'form-control']);
578
                    $element->setOptions(['label' => 'LABEL_TITLE']);
579
                    echo $this->formLabel($element);
580
                    echo $this->formText($element);
8780 eleazar 581
                    ?>
14919 stevensc 582
                </div>
8780 eleazar 583
                <div class="form-group">
584
                    <?php
585
                    $element = $form->get('file');
586
                    $element->setAttributes(['class' => 'form-control', 'accept' => 'pdf/docx']);
8892 eleazar 587
                    $element->setOptions(['label' => 'LABEL_FILE']);
8780 eleazar 588
                    echo $this->formLabel($element);
589
                    ?>
590
                    <div class="file-loading">
591
                        <?php echo $this->formFile($element); ?>
592
                    </div>
8878 eleazar 593
 
594
                    <div class="mt-2" id="current-file">
14919 stevensc 595
                        <a href="" class="btn btn-primary" id="btn-cv" target="_blank">Evaluacion actual</a>
8878 eleazar 596
                    </div>
8780 eleazar 597
                </div>
598
                <div class="form-group">
599
                    <?php
600
                    $element = $form->get('coment');
601
                    $element->setAttributes(['class' => 'form-control']);
602
                    $element->setOptions(['label' => 'LABEL_COMMENT']);
603
                    echo $this->formLabel($element);
604
                    echo $this->formTextArea($element);
605
                    ?>
606
                </div>
607
                <div class="modal-footer">
608
                    <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
609
                    <button type="button" class="btn btn-default btn-add-cancel">LABEL_CANCEL</button>
610
                </div>
611
            </div>
612
            <?php echo $this->form()->closeTag($form); ?>
613
        </div>
614
    </div>
14919 stevensc 615
</div>