Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 14932 | Rev 15373 | 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);
8780 eleazar 357
 
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']);
369
 
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 () {
385
                        NProgress.done();
386
                    });
387
                    return false;
388
                },
389
                invalidHandler: function (form, validator) {
390
 
391
                }
392
            });
393
        },
394
        'aoColumns': [
395
            { 'mDataProp': 'title' },
8880 eleazar 396
            { 'mDataProp': 'coment' },
8780 eleazar 397
            { 'mDataProp': 'actions' },
398
        ],
399
        'columnDefs': [
400
            {
401
                'targets': -1,
402
                'orderable': false,
403
                'render': function (data, type, row) {
404
                    s = '';
405
 
406
                    if (allowEdit && data['link_edit']) {
407
                        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;';
408
                    }
409
 
410
                    if (allowDelete && data['link_delete']) {
411
                        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;';
412
                    }
413
 
414
                    return s;
415
                }
416
            }
417
        ],
418
    });
419
 
420
 
421
    $('body').on('click', 'button.btn-refresh', function (e) {
422
        e.preventDefault();
423
        gridTable.api().ajax.reload(null, false);
424
    });
425
 
14922 stevensc 426
    $('body').on('click', '#go-back', function () {
427
        history.back();
428
    });
429
 
8780 eleazar 430
    CKEDITOR.replace('coment', {
431
        toolbar: [
432
                    { name: 'editing', items: ['Scayt'] },
433
                    { name: 'links', items: ['Link', 'Unlink'] },
434
                    { name: 'paragraph', items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', 'Blockquote'] },
435
                    { name: 'basicstyles', items: ['Bold', 'Italic', 'Strike', 'RemoveFormat'] },
436
                    '/',
437
                    { name: 'insert', items: ['Image', 'Table', 'HorizontalRule', 'SpecialChar'] },
438
                    { name: 'styles', items: ['Styles', 'Format'] },
439
                    { name: 'tools', items: ['Maximize'] }
440
                ],
441
                removePlugins: 'elementspath,Anchor',
442
                heigth: 100
443
    });
444
});
445
JS;
14913 stevensc 446
$this->inlineScript()->captureEnd();
8780 eleazar 447
?>
448
 
449
 
450
<!-- Content Header (Page header) -->
451
<section class="content-header">
452
    <div class="container-fluid">
453
        <div class="row mb-2">
14924 stevensc 454
            <div class="col-sm-12 d-flex align-items-center">
14925 stevensc 455
                <i class="fa fa-angle-left mr-3 cursor-pointer" id='go-back'></i>
14923 stevensc 456
                <h1 id="user-title">LABEL_PSYCOPTECNICH</h1>
8780 eleazar 457
            </div>
458
        </div>
459
    </div><!-- /.container-fluid -->
460
</section>
461
 
462
<section class="content">
463
    <div class="container-fluid">
464
        <div class="row">
465
            <div class="col-12">
466
                <div class="card">
467
                    <div class="card-body">
468
                        <table id="gridTable" class="table   table-hover">
469
                            <thead>
14919 stevensc 470
                                <tr>
471
                                    <th>LABEL_TITLE</th>
472
                                    <th>LABEL_COMMENT</th>
473
                                    <th>LABEL_ACTIONS</th>
474
                                </tr>
8780 eleazar 475
                            </thead>
476
                            <tbody>
477
                            </tbody>
478
                        </table>
479
                    </div>
480
                    <div class="card-footer clearfix">
481
                        <div style="float:right;">
482
                            <button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i>
483
                                LABEL_REFRESH
484
                            </button>
485
                            <?php if ($allowAdd) : ?>
486
                                <button type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i>
487
                                    LABEL_ADD
488
                                </button>
489
                            <?php endif; ?>
490
                        </div>
491
                    </div>
492
                </div>
493
            </div>
494
        </div>
495
    </div>
496
</section>
497
 
498
<!-- The Add Modal -->
499
<div class="modal" tabindex="-1" role="dialog" id="add-file-box">
500
    <div class="modal-dialog" role="document">
501
        <?php
502
        //$form = $this->formAdd;
503
        $form->setAttributes([
504
            'method' => 'post',
505
            'name' => 'form-add',
506
            'action' => $routeAdd,
507
            'id' => 'form-add'
508
        ]);
509
        $form->prepare();
510
        echo $this->form()->openTag($form);
511
        ?>
512
        <div class="modal-content">
513
            <div class="modal-header">
8881 eleazar 514
                <h3 class="modal-title">LABEL_NEW_EVALUATION</h3>
8780 eleazar 515
            </div>
8825 eleazar 516
            <div class="modal-body">
8780 eleazar 517
                <div class="form-group">
8825 eleazar 518
                    <?php
519
                    $element = $form->get('title');
520
                    $element->setOptions(['label' => 'LABEL_TITLE']);
521
                    $element->setAttributes(['class' => 'form-control']);
522
                    echo $this->formLabel($element);
523
                    echo $this->formText($element);
524
                    ?>
525
                </div>
526
                <div class="form-group">
14919 stevensc 527
                    <?php
528
                    $element = $form->get('coment');
529
                    $element->setAttributes(['class' => 'form-control']);
530
                    $element->setOptions(['label' => 'LABEL_COMMENT']);
531
                    echo $this->formLabel($element);
532
                    echo $this->formTextArea($element);
8780 eleazar 533
                    ?>
14919 stevensc 534
                </div>
8780 eleazar 535
                <div class="form-group">
536
                    <?php
537
                    $element = $form->get('file');
14927 stevensc 538
                    $element->setAttributes(['class' => 'form-control', 'accept' => 'pdf/docx']);
8893 eleazar 539
                    $element->setOptions(['label' => 'LABEL_FILE']);
8780 eleazar 540
                    echo $this->formLabel($element);
541
                    ?>
542
                    <div class="file-loading">
543
                        <?php echo $this->formFile($element); ?>
544
                    </div>
545
                </div>
546
            </div>
8827 eleazar 547
            <div class="modal-footer">
548
                <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
549
                <button type="button" class="btn btn-default btn-add-cancel">LABEL_CANCEL</button>
550
            </div>
8780 eleazar 551
            <?php echo $this->form()->closeTag($form); ?>
552
        </div>
553
    </div>
554
</div>
555
 
556
<!-- The Edit Modal -->
8821 eleazar 557
<div class="modal" tabindex="-1" role="dialog" id="edit-file-box">
8780 eleazar 558
    <div class="modal-dialog" role="document">
559
        <?php
560
        $form->setAttributes([
561
            'method' => 'post',
562
            'name' => 'form-edit',
563
            'id' => 'form-edit'
564
        ]);
565
        $form->prepare();
566
        echo $this->form()->openTag($form);
567
        ?>
568
        <div class="modal-content">
569
            <div class="modal-header">
570
                <h3 class="modal-title">LABEL_NEW_EVALUATION</h3>
571
            </div>
14919 stevensc 572
            <div class="modal-body">
8780 eleazar 573
                <div class="form-group">
14919 stevensc 574
                    <?php
575
                    $element = $form->get('title');
576
                    $element->setAttributes(['class' => 'form-control']);
577
                    $element->setOptions(['label' => 'LABEL_TITLE']);
578
                    echo $this->formLabel($element);
579
                    echo $this->formText($element);
8780 eleazar 580
                    ?>
14919 stevensc 581
                </div>
8780 eleazar 582
                <div class="form-group">
583
                    <?php
584
                    $element = $form->get('file');
585
                    $element->setAttributes(['class' => 'form-control', 'accept' => 'pdf/docx']);
8892 eleazar 586
                    $element->setOptions(['label' => 'LABEL_FILE']);
8780 eleazar 587
                    echo $this->formLabel($element);
588
                    ?>
589
                    <div class="file-loading">
590
                        <?php echo $this->formFile($element); ?>
591
                    </div>
8878 eleazar 592
 
593
                    <div class="mt-2" id="current-file">
14919 stevensc 594
                        <a href="" class="btn btn-primary" id="btn-cv" target="_blank">Evaluacion actual</a>
8878 eleazar 595
                    </div>
8780 eleazar 596
                </div>
597
                <div class="form-group">
598
                    <?php
599
                    $element = $form->get('coment');
600
                    $element->setAttributes(['class' => 'form-control']);
601
                    $element->setOptions(['label' => 'LABEL_COMMENT']);
602
                    echo $this->formLabel($element);
603
                    echo $this->formTextArea($element);
604
                    ?>
605
                </div>
606
                <div class="modal-footer">
607
                    <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
608
                    <button type="button" class="btn btn-default btn-add-cancel">LABEL_CANCEL</button>
609
                </div>
610
            </div>
611
            <?php echo $this->form()->closeTag($form); ?>
612
        </div>
613
    </div>
14919 stevensc 614
</div>