Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 14913 | Rev 14915 | 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;
114
                } else {
115
                    $.fn.showError(response.data)
116
                }
117
 
118
                return JSON.stringify(json);
119
            }
120
        },
121
        'language': {
122
            'sProcessing': 'LABEL_DATATABLE_SPROCESSING',
123
            'sLengthMenu': 'LABEL_DATATABLE_SLENGTHMENU',
124
            'sZeroRecords': 'LABEL_DATATABLE_SZERORECORDS',
125
            'sEmptyTable': 'LABEL_DATATABLE_SEMPTYTABLE',
126
            'sInfo': 'LABEL_DATATABLE_SINFO',
127
            'sInfoEmpty': 'LABEL_DATATABLE_SINFOEMPTY',
128
            'sInfoFiltered': 'LABEL_DATATABLE_SINFOFILTERED',
129
            'sInfoPostFix': '',
130
            'sSearch': 'LABEL_DATATABLE_SSEARCH',
131
            'sUrl': '',
132
            'sInfoThousands': ',',
133
            'sLoadingRecords': 'LABEL_DATATABLE_SLOADINGRECORDS',
134
            'oPaginate': {
135
                'sFirst': 'LABEL_DATATABLE_SFIRST',
136
                'sLast': 'LABEL_DATATABLE_SLAST',
137
                'sNext': 'LABEL_DATATABLE_SNEXT',
138
                'sPrevious': 'LABEL_DATATABLE_SPREVIOUS'
139
            },
140
            'oAria': {
141
                'sSortAscending': ': LABEL_DATATABLE_SSORTASCENDING',
142
                'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
143
            },
144
        },
145
        'drawCallback': function (settings) {
146
            NProgress.done();
147
            $('button.btn-delete').confirmation({
148
                rootSelector: 'button.btn-delete',
149
                title: 'LABEL_ARE_YOU_SURE',
150
                singleton: true,
151
                btnOkLabel: 'LABEL_YES',
152
                btnCancelLabel: 'LABEL_NO',
153
                onConfirm: function (value) {
154
                    action = $(this).data('href');
155
                    NProgress.start();
156
                    $.ajax({
157
                        'dataType': 'json',
158
                        'accept': 'application/json',
159
                        'method': 'post',
160
                        'url': action,
161
                    }).done(function (response) {
162
                        if (response['success']) {
163
                            $.fn.showSuccess(response['data']);
164
                            gridTable.api().ajax.reload(null, false);
165
                        } else {
166
                            $.fn.showError(response['data']);
167
                        }
168
                    }).fail(function (jqXHR, textStatus, errorThrown) {
169
                        $.fn.showError(textStatus);
170
                    }).always(function () {
171
                        NProgress.done();
172
                    });
173
                },
174
            });
175
 
176
            $('#form-add #file').fileinput({
177
                theme: 'fas',
178
                language: 'es',
179
                showUpload: false,
180
                dropZoneEnabled: false,
181
                maxFileCount: 1,
182
                allowedFileExtensions: ['pdf', 'docx'],
183
            });
184
 
185
            $('#form-edit #file').fileinput({
186
                theme: 'fas',
187
                language: 'es',
188
                showUpload: false,
189
                initialPreviewAsData: true,
190
                dropZoneEnabled: false,
191
                maxFileCount: 1,
192
                allowedFileExtensions: ['pdf', 'docx'],
193
            });
194
 
195
 
196
            $('body').on('click', 'button.btn-add', function (e) {
197
                e.preventDefault();
198
 
199
                $('#form-add #title').val('');
200
                $('#form-add #file').fileinput('reset');
201
                $('#form-add #file').val('');
202
                CKEDITOR.instances.coment.setData('');
203
                validatorAdd.resetForm();
204
 
205
                $('#add-file-box').modal('show');
206
                return false;
207
            });
208
 
209
            $(".close-box, .btn-add-cancel").on("click", function (e) {
210
                e.preventDefault();
211
 
212
                $('#add-file-box').modal('hide');
213
                $('#edit-file-box').modal('hide');
214
                return false;
215
            });
216
 
217
            var validatorEdit = $('#form-edit').validate({
218
                debug: true,
219
                onclick: false,
220
                onkeyup: false,
221
                onfocusout: false,
222
                ignore: [],
223
                rules: {
224
                    'title': {
225
                        required: false,
226
                    },
227
                    'file': {
228
                        required: false,
229
                        extension: 'pdf|docx',
230
                        accept: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/msword,application/pdf'
231
                    },
232
                    'coment':{
233
                        updateCkeditor:function() {
234
                        CKEDITOR.instances.coment.updateElement();
235
                        },
236
                    },
237
                },
238
                submitHandler: function (form) {
239
                    var formdata = false;
240
                    if (window.FormData) {
241
                        formdata = new FormData(form); //form[0]);
242
                    }
243
 
244
                    $('input[type="submit"]').prop('disabled', true);
245
 
246
                    $.ajax({
247
                        'dataType': 'json',
248
                        'accept': 'application/json',
249
                        'method': 'post',
250
                        'url': $('#form-edit').attr('action'),
251
                        'data': formdata,
252
                        'processData': false,
253
                        'contentType': false,
254
                    }).done(function (response) {
255
                        if (response['success']) {
256
                            $.fn.showSuccess(response['data']);
257
 
258
                            $('#edit-file-box').modal('hide');
259
                            gridTable.api().ajax.reload(null, false);
260
                        } else {
261
                            validatorEdit.resetForm();
262
                            if (jQuery.type(response['data']) == 'string') {
263
                                $.fn.showError(response['data']);
264
                            } else {
265
                                $.each(response['data'], function (fieldname, errors) {
266
                                    $.fn.showFormErrorValidator('#form-edit #' + fieldname, errors);
267
                                });
268
                            }
269
                        }
270
                    }).fail(function (jqXHR, textStatus, errorThrown) {
271
                        $.fn.showError(textStatus);
272
                    }).always(function () {
273
                        NProgress.done();
274
                    });
275
                    return false;
276
                },
277
                invalidHandler: function (form, validator) {
278
 
279
                }
280
            });
281
 
282
            $('body').on('click', 'button.btn-edit', function (e) {
283
                e.preventDefault();
284
 
285
                var url = $(this).data('href');
286
                $.ajax({
287
                    'dataType': 'json',
288
                    'accept': 'application/json',
289
                    'method': 'get',
290
                    'url': url,
291
                }).done(function (response) {
292
                    if (response['success']) {
293
                        $('#form-edit')[0].reset();
294
 
295
                        $('#form-edit').attr('action', url);
296
 
297
                        $('#form-edit #title').val(response['data']['title']);
298
                        $('#form-edit #coment').val(response['data']['coment']);
299
                        $('#form-edit #btn-cv').attr('href', response['data']['file']);
300
 
301
 
302
 
303
                        $('#form-edit #file').fileinput('reset');
304
                        $('#form-edit #file').fileinput('setUploadUrl', response['data']['file'] );
305
 
306
 
307
                        $('#form-edit #status').val(response['data']['status']);
308
 
309
                        $('#edit-file-box').modal('show');
310
                    } else {
311
                        validatorEdit.resetForm();
312
                        if (jQuery.type(response['data']) == 'string') {
313
                            $.fn.showError(response['data']);
314
                        } else {
315
                            $.each(response['data'], function (fieldname, errors) {
316
                                $.fn.showFormErrorValidator('#form-edit #' + fieldname, errors);
317
                            });
318
                        }
319
                    }
320
                }).fail(function (jqXHR, textStatus, errorThrown) {
321
                    $.fn.showError(textStatus);
322
                }).always(function () {
323
                    NProgress.done();
324
                });
325
            });
326
 
327
            var validatorAdd = $('#form-add').validate({
328
                debug: true,
329
                onclick: false,
330
                onkeyup: false,
331
                onfocusout: false,
332
                ignore: [],
333
                rules: {
334
                    'title': {
335
                        required: true,
8822 eleazar 336
                        maxlength: 64,
8780 eleazar 337
                    },
338
                    'file': {
339
                        required: false,
340
                        extension: 'pdf|docx',
341
                        accept: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/msword,application/pdf'
342
                    },
343
                    'coment':{
344
                        updateCkeditor:function() {
345
                            CKEDITOR.instances.coment.updateElement();
346
                        },
347
                    },
348
                },
349
                submitHandler: function (form) {
350
                    var formdata = false;
351
                    if (window.FormData) {
352
                        formdata = new FormData(form); //form[0]);
353
                    }
354
 
355
                    $('input[type="submit"]').prop('disabled', true);
356
 
357
                    $.ajax({
358
                        'dataType': 'json',
359
                        'accept': 'application/json',
360
                        'method': 'post',
361
                        'url': $('#form-add').attr('action'),
362
                        'data': formdata,
363
                        'processData': false,
364
                        'contentType': false,
365
                    }).done(function (response) {
366
                        if (response['success']) {
367
                            $.fn.showSuccess(response['data']);
368
 
369
                            $('#add-file-box').modal('hide');
370
                            gridTable.api().ajax.reload(null, false);
371
                        } else {
372
                            validatorAdd.resetForm();
373
                            if (jQuery.type(response['data']) == 'string') {
374
                                $.fn.showError(response['data']);
375
                            } else {
376
                                $.each(response['data'], function (fieldname, errors) {
377
                                    $.fn.showFormErrorValidator('#form-add #' + fieldname, errors);
378
                                });
379
                            }
380
                        }
381
                    }).fail(function (jqXHR, textStatus, errorThrown) {
382
                        $.fn.showError(textStatus);
383
                    }).always(function () {
384
                        NProgress.done();
385
                    });
386
                    return false;
387
                },
388
                invalidHandler: function (form, validator) {
389
 
390
                }
391
            });
392
        },
393
        'aoColumns': [
394
            { 'mDataProp': 'title' },
8880 eleazar 395
            { 'mDataProp': 'coment' },
8780 eleazar 396
            { 'mDataProp': 'actions' },
397
        ],
398
        'columnDefs': [
399
            {
400
                'targets': -1,
401
                'orderable': false,
402
                'render': function (data, type, row) {
403
                    s = '';
404
 
405
                    if (allowEdit && data['link_edit']) {
406
                        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;';
407
                    }
408
 
409
                    if (allowDelete && data['link_delete']) {
410
                        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;';
411
                    }
412
 
413
                    return s;
414
                }
415
            }
416
        ],
417
    });
418
 
419
 
420
    $('body').on('click', 'button.btn-refresh', function (e) {
421
        e.preventDefault();
422
        gridTable.api().ajax.reload(null, false);
423
    });
424
 
14909 stevensc 425
 
8780 eleazar 426
    CKEDITOR.replace('coment', {
427
        toolbar: [
428
                    { name: 'editing', items: ['Scayt'] },
429
                    { name: 'links', items: ['Link', 'Unlink'] },
430
                    { name: 'paragraph', items: ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', 'Blockquote'] },
431
                    { name: 'basicstyles', items: ['Bold', 'Italic', 'Strike', 'RemoveFormat'] },
432
                    '/',
433
                    { name: 'insert', items: ['Image', 'Table', 'HorizontalRule', 'SpecialChar'] },
434
                    { name: 'styles', items: ['Styles', 'Format'] },
435
                    { name: 'tools', items: ['Maximize'] }
436
                ],
437
                removePlugins: 'elementspath,Anchor',
438
                heigth: 100
439
    });
440
});
441
JS;
14911 stevensc 442
 
14914 stevensc 443
$jsonInterview = json_encode($interview);
444
 
14911 stevensc 445
$js = <<<JS
446
	const backendVariables= {
14914 stevensc 447
        user: $jsonInterview
14911 stevensc 448
	}
449
JS;
450
 
451
$this->inlineScript()->appendScript($js);
14913 stevensc 452
$this->inlineScript()->captureEnd();
8780 eleazar 453
?>
454
 
455
 
456
<!-- Content Header (Page header) -->
457
<section class="content-header">
458
    <div class="container-fluid">
459
        <div class="row mb-2">
460
            <div class="col-sm-12">
14909 stevensc 461
                <h1>LABEL_PSYCOPTECNICH</h1>
8780 eleazar 462
            </div>
463
        </div>
464
    </div><!-- /.container-fluid -->
465
</section>
466
 
467
<section class="content">
468
    <div class="container-fluid">
469
        <div class="row">
470
            <div class="col-12">
471
                <div class="card">
472
                    <div class="card-body">
473
                        <table id="gridTable" class="table   table-hover">
474
                            <thead>
14913 stevensc 475
                            <tr>
476
                                <th>LABEL_TITLE</th>
477
                                <th>LABEL_COMMENT</th>
478
                                <th>LABEL_ACTIONS</th>
479
                            </tr>
8780 eleazar 480
                            </thead>
481
                            <tbody>
482
                            </tbody>
483
                        </table>
484
                    </div>
485
                    <div class="card-footer clearfix">
486
                        <div style="float:right;">
487
                            <button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i>
488
                                LABEL_REFRESH
489
                            </button>
490
                            <?php if ($allowAdd) : ?>
491
                                <button type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i>
492
                                    LABEL_ADD
493
                                </button>
494
                            <?php endif; ?>
495
                        </div>
496
                    </div>
497
                </div>
498
            </div>
499
        </div>
500
    </div>
501
</section>
502
 
503
<!-- The Add Modal -->
504
<div class="modal" tabindex="-1" role="dialog" id="add-file-box">
505
    <div class="modal-dialog" role="document">
506
        <?php
507
        //$form = $this->formAdd;
508
        $form->setAttributes([
509
            'method' => 'post',
510
            'name' => 'form-add',
511
            'action' => $routeAdd,
512
            'id' => 'form-add'
513
        ]);
514
        $form->prepare();
515
        echo $this->form()->openTag($form);
516
        ?>
517
        <div class="modal-content">
518
            <div class="modal-header">
8881 eleazar 519
                <h3 class="modal-title">LABEL_NEW_EVALUATION</h3>
8780 eleazar 520
            </div>
8825 eleazar 521
            <div class="modal-body">
8780 eleazar 522
                <div class="form-group">
8825 eleazar 523
                    <?php
524
                    $element = $form->get('title');
525
                    $element->setOptions(['label' => 'LABEL_TITLE']);
526
                    $element->setAttributes(['class' => 'form-control']);
527
                    echo $this->formLabel($element);
528
                    echo $this->formText($element);
529
                    ?>
530
                </div>
531
                <div class="form-group">
14913 stevensc 532
              	   <?php
533
                     $element = $form->get('coment');
534
                     $element->setAttributes(['class' => 'form-control']);
535
                     $element->setOptions(['label' => 'LABEL_COMMENT']);
536
                     echo $this->formLabel($element);
537
                     echo $this->formTextArea($element);
8780 eleazar 538
                    ?>
14913 stevensc 539
      	        </div>
8780 eleazar 540
                <div class="form-group">
541
                    <?php
542
                    $element = $form->get('file');
543
                    $element->setAttributes(['class' => 'form-control', 'accept' => 'pdf/docx']);
8893 eleazar 544
                    $element->setOptions(['label' => 'LABEL_FILE']);
8780 eleazar 545
                    echo $this->formLabel($element);
546
                    ?>
547
                    <div class="file-loading">
548
                        <?php echo $this->formFile($element); ?>
549
                    </div>
550
                </div>
551
            </div>
8827 eleazar 552
            <div class="modal-footer">
553
                <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
554
                <button type="button" class="btn btn-default btn-add-cancel">LABEL_CANCEL</button>
555
            </div>
8780 eleazar 556
            <?php echo $this->form()->closeTag($form); ?>
557
        </div>
558
    </div>
559
</div>
560
 
561
<!-- The Edit Modal -->
8821 eleazar 562
<div class="modal" tabindex="-1" role="dialog" id="edit-file-box">
8780 eleazar 563
    <div class="modal-dialog" role="document">
564
        <?php
565
        $form->setAttributes([
566
            'method' => 'post',
567
            'name' => 'form-edit',
568
            'id' => 'form-edit'
569
        ]);
570
        $form->prepare();
571
        echo $this->form()->openTag($form);
572
        ?>
573
        <div class="modal-content">
574
            <div class="modal-header">
575
                <h3 class="modal-title">LABEL_NEW_EVALUATION</h3>
576
            </div>
14913 stevensc 577
            <div class="modal-body">
8780 eleazar 578
                <div class="form-group">
14913 stevensc 579
              	   <?php
580
                     $element = $form->get('title');
581
                     $element->setAttributes(['class' => 'form-control']);
582
                     $element->setOptions(['label' => 'LABEL_TITLE']);
583
                     echo $this->formLabel($element);
584
                     echo $this->formText($element);
8780 eleazar 585
                    ?>
14913 stevensc 586
      	        </div>
8780 eleazar 587
                <div class="form-group">
588
                    <?php
589
                    $element = $form->get('file');
590
                    $element->setAttributes(['class' => 'form-control', 'accept' => 'pdf/docx']);
8892 eleazar 591
                    $element->setOptions(['label' => 'LABEL_FILE']);
8780 eleazar 592
                    echo $this->formLabel($element);
593
                    ?>
594
                    <div class="file-loading">
595
                        <?php echo $this->formFile($element); ?>
596
                    </div>
8878 eleazar 597
 
598
                    <div class="mt-2" id="current-file">
14913 stevensc 599
                        <a href="" class="btn btn-primary" id="btn-cv"  target="_blank">Evaluacion actual</a>
8878 eleazar 600
                    </div>
8780 eleazar 601
                </div>
602
                <div class="form-group">
603
                    <?php
604
                    $element = $form->get('coment');
605
                    $element->setAttributes(['class' => 'form-control']);
606
                    $element->setOptions(['label' => 'LABEL_COMMENT']);
607
                    echo $this->formLabel($element);
608
                    echo $this->formTextArea($element);
609
                    ?>
610
                </div>
611
                <div class="modal-footer">
612
                    <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
613
                    <button type="button" class="btn btn-default btn-add-cancel">LABEL_CANCEL</button>
614
                </div>
615
            </div>
616
            <?php echo $this->form()->closeTag($form); ?>
617
        </div>
618
    </div>
14913 stevensc 619
</div>