Proyectos de Subversion LeadersLinked - Backend

Rev

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