Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev Autor Línea Nro. Línea
251 geraldo 1
<?php
2
$acl = $this->viewModel()->getRoot()->getVariable('acl');
3
$currentUser = $this->currentUserHelper();
4
 
5
$roleName = $currentUser->getUserTypeId();
6
 
261 geraldo 7
$routeAdd = $this->url('self-evaluation/forms/add');
262 geraldo 8
$routeDatatable = $this->url('self-evaluation/reviews');
251 geraldo 9
$routeDashboard = $this->url('dashboard');
10
 
261 geraldo 11
$allowEdit = $acl->isAllowed($roleName, 'self-evaluation/forms/edit') ? 1 : 0;
251 geraldo 12
 
13
 
14
$this->inlineScript()->appendFile($this->basePath('plugins/ckeditor/ckeditor.js'));
15
 
16
 
17
$this->headLink()->appendStylesheet($this->basePath('plugins/nprogress/nprogress.css'));
18
$this->inlineScript()->appendFile($this->basePath('plugins/nprogress/nprogress.js'));
19
 
20
 
21
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));
22
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));
23
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/localization/messages_es.js'));
24
 
25
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css'));
26
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-responsive/css/responsive.bootstrap4.min.css'));
27
 
28
$this->inlineScript()->appendFile($this->basePath('plugins/datatables/jquery.dataTables.min.js'));
29
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-bs4/js/dataTables.bootstrap4.min.js'));
30
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/dataTables.responsive.min.js'));
31
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/responsive.bootstrap4.min.js'));
32
 
33
 
34
$this->headLink()->appendStylesheet($this->basePath('plugins/select2/css/select2.min.css'));
35
$this->headLink()->appendStylesheet($this->basePath('plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css'));
36
 
37
$this->inlineScript()->appendFile($this->basePath('plugins/select2/js/select2.full.min.js'));
38
 
39
$this->inlineScript()->appendFile($this->basePath('plugins/moment/moment-with-locales.min.js'));
40
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-datetimepicker/css/bootstrap-datetimepicker.css'));
41
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js'));
42
 
43
 
44
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
45
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));
46
 
47
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-confirmation/dist/bootstrap-confirmation.js'));
48
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-checkbox/awesome-bootstrap-checkbox.css'));
49
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-input-number/input-number-format.jquery.js'));
261 geraldo 50
 
251 geraldo 51
// bootbox Alert //
52
$this->inlineScript()->appendFile($this->basePath('plugins/bootbox/bootbox.min.js'));
261 geraldo 53
 
251 geraldo 54
// JsRender //
55
$this->inlineScript()->appendFile($this->basePath('plugins/jsrender/jsrender.min.js'));
56
 
261 geraldo 57
// Page Styles
58
$this->headLink()->appendStylesheet($this->basePath('css/pages/self-evaluation.css'));
251 geraldo 59
 
306 geraldo 60
 
307 geraldo 61
$pending = \LeadersLinked\Model\CompanySelfEvaluationTest::STATUS_PENDING;
308 geraldo 62
$review = \LeadersLinked\Model\CompanySelfEvaluationTest::STATUS_REVIEW;
307 geraldo 63
$completed = \LeadersLinked\Model\CompanySelfEvaluationTest::STATUS_COMPLETED;
306 geraldo 64
 
251 geraldo 65
$this->inlineScript()->captureStart();
66
echo <<<JS
339 geraldo 67
const classFormGenerator = function() {
251 geraldo 68
    this.id = 0,
69
        this.table = '',
70
        this.name = '',
71
        this.text = '',
72
        this.status = 'a',
73
        this.sections = [],
74
        this.clear = function() {
75
            this.sections = [];
76
            this.render();
77
        },
78
        /**
79
         * Render array sections
80
         */
81
        this.renderSection = function(slug_section) {
396 geraldo 82
            console.log(slug_section);
83
            console.log(this.sections);
251 geraldo 84
            var s = '';
85
            for (i = 0; i < this.sections.length; i++) {
86
                if (slug_section != this.sections[i].slug_section) {
87
                    continue;
88
                }
89
                for (j = 0; j < this.sections[i].questions.length; j++) {
90
                    this.sections[i].questions[j].position = j;
91
                    if (this.sections[i].questions[j].type == 'simple' || this.sections[i].questions[j].type == 'multiple' || this.sections[i].questions[j].type == 'rating-open') {
92
                        this.sections[i].questions[j].options.sort(function(a, b) {
93
                            if (a.position > b.position) {
94
                                return 1;
95
                            }
96
                            if (a.position < b.position) {
97
                                return -1;
98
                            }
99
                            return 0;
100
                        });
101
                        for (k = 0; k < this.sections[i].questions[j].options.length; k++) {
102
                            this.sections[i].questions[j].options[k].position = j;
103
                        }
104
                    }
105
                }
106
            }
107
            $('[data-toggle="tooltip"]').tooltip();
108
        },
109
        this.render = function() {
110
            this.sections.sort(function(a, b) {
111
                if (a.position > b.position) {
112
                    return 1;
113
                }
114
                if (a.position < b.position) {
115
                    return -1;
116
                }
117
                return 0;
118
            });
119
            var s = '';
120
            for (i = 0; i < this.sections.length; i++) {
121
                this.sections[i].position = i;
122
                this.sections[i].questions.sort(function(a, b) {
123
                    if (a.position > b.position) {
124
                        return 1;
125
                    }
126
                    if (a.position < b.position) {
127
                        return -1;
128
                    }
129
                    return 0;
130
                });
131
                for (j = 0; j < this.sections[i].questions.length; j++) {
132
                    this.sections[i].questions[j].position = j;
133
                    if (this.sections[i].questions[j].type == 'simple' || this.sections[i].questions[j].type == 'multiple' || this.sections[i].questions[j].type == 'rating-open') {
134
                        this.sections[i].questions[j].options.sort(function(a, b) {
135
                            if (a.position > b.position) {
136
                                return 1;
137
                            }
138
                            if (a.position < b.position) {
139
                                return -1;
140
                            }
141
                            return 0;
142
                        });
143
                        for (k = 0; k < this.sections[i].questions[j].options.length; k++) {
144
                            this.sections[i].questions[j].options[k].position = j;
145
                        }
146
                    }
147
                }
148
            }
149
            $('[data-toggle="tooltip"]').tooltip();
266 geraldo 150
        };
352 geraldo 151
    /**
152
     * Add element to question array
153
     */
154
    this.editQuestion = function(slug_section, slug_question, status) {
155
        var renderTable = false;
156
        for (i = 0; i < this.sections.length; i++) {
157
            if (slug_section == this.sections[i].slug_section) {
158
                for (j = 0; j < this.sections[i].questions.length; j++) {
159
                    if (slug_question == this.sections[i].questions[j].slug_question) {
160
                        this.sections[i].questions[j].status = status;
395 geraldo 161
                        this.renderSection(slug_section);
394 geraldo 162
                        return true;
345 geraldo 163
                    }
164
                }
165
            }
352 geraldo 166
        }
167
    };
339 geraldo 168
}
251 geraldo 169
jQuery(document).ready(function($) {
170
    var objFormGenerator = new classFormGenerator();
171
    objFormGenerator.render();
172
    var allowEdit = $allowEdit;
173
    /**
174
     * Get rows and set data table
175
     */
176
    var tableForm = $('#gridTable').dataTable({
177
        'processing': true,
178
        'serverSide': true,
179
        'searching': true,
180
        'order': [
181
            [0, 'asc']
182
        ],
183
        'ordering': true,
184
        'ordenable': true,
185
        'responsive': true,
186
        'select': false,
187
        'paging': true,
188
        'pagingType': 'simple_numbers',
189
        'ajax': {
190
            'url': '$routeDatatable',
191
            'type': 'get',
192
            'beforeSend': function(request) {
193
                NProgress.start();
194
            },
195
            'dataFilter': function(response) {
196
                var response = jQuery.parseJSON(response);
197
                var json = {};
198
                json.recordsTotal = 0;
199
                json.recordsFiltered = 0;
200
                json.data = [];
201
                if (response.success) {
202
                    json.recordsTotal = response.data.total;
203
                    json.recordsFiltered = response.data.total;
204
                    json.data = response.data.items;
205
                } else {
206
                    $.fn.showError(response.data)
207
                }
208
                return JSON.stringify(json);
209
            }
210
        },
211
        'language': {
212
            'sProcessing': 'LABEL_DATATABLE_SPROCESSING',
213
            'sLengthMenu': 'LABEL_DATATABLE_SLENGTHMENU',
214
            'sZeroRecords': 'LABEL_DATATABLE_SZERORECORDS',
215
            'sEmptyTable': 'LABEL_DATATABLE_SEMPTYTABLE',
216
            'sInfo': 'LABEL_DATATABLE_SINFO',
217
            'sInfoEmpty': 'LABEL_DATATABLE_SINFOEMPTY',
218
            'sInfoFiltered': 'LABEL_DATATABLE_SINFOFILTERED',
219
            'sInfoPostFix': '',
220
            'sSearch': 'LABEL_DATATABLE_SSEARCH',
221
            'sUrl': '',
222
            'sInfoThousands': ',',
223
            'sLoadingRecords': 'LABEL_DATATABLE_SLOADINGRECORDS',
224
            'oPaginate': {
225
                'sFirst': 'LABEL_DATATABLE_SFIRST',
226
                'sLast': 'LABEL_DATATABLE_SLAST',
227
                'sNext': 'LABEL_DATATABLE_SNEXT',
228
                'sPrevious': 'LABEL_DATATABLE_SPREVIOUS'
229
            },
230
            'oAria': {
231
                'sSortAscending': ': LABEL_DATATABLE_SSORTASCENDING',
232
                'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
233
            },
234
        },
235
        'drawCallback': function(settings) {
236
            NProgress.done();
237
            $('button.btn-delete').confirmation({
238
                rootSelector: 'button.btn-delete',
239
                title: 'LABEL_ARE_YOU_SURE',
240
                singleton: true,
241
                btnOkLabel: 'LABEL_YES',
242
                btnCancelLabel: 'LABEL_NO',
243
                onConfirm: function(value) {
244
                    action = $(this).data('href');
245
                    NProgress.start();
246
                    $.ajax({
247
                        'dataType': 'json',
248
                        'accept': 'application/json',
249
                        'method': 'post',
250
                        'url': action,
251
                    }).done(function(response) {
252
                        if (response['success']) {
253
                            $.fn.showSuccess(response['data']);
254
                            tableForm.fnDraw();
255
                        } else {
256
                            $.fn.showError(response['data']);
257
                        }
258
                    }).fail(function(jqXHR, textStatus, errorThrown) {
259
                        $.fn.showError(textStatus);
260
                    }).always(function() {
261
                        NProgress.done();
262
                    });
263
                },
264
            });
265
        },
339 geraldo 266
        'aoColumns': [{
294 geraldo 267
                'mDataProp': 'user'
339 geraldo 268
            }, {
251 geraldo 269
                'mDataProp': 'name'
270
            },
271
            {
272
                'mDataProp': 'language'
273
            },
274
            {
275
                'mDataProp': 'status'
276
            },
277
            {
294 geraldo 278
                'mDataProp': 'link_edit'
251 geraldo 279
            },
280
        ],
339 geraldo 281
        'columnDefs': [{
251 geraldo 282
                'targets': 0,
283
                'className': 'text-vertical-middle',
339 geraldo 284
            }, {
294 geraldo 285
                'targets': 1,
286
                'className': 'text-vertical-middle',
251 geraldo 287
            },
288
            {
294 geraldo 289
                'targets': -1,
251 geraldo 290
                'className': 'text-vertical-middle',
291
            },
292
            {
292 geraldo 293
                'targets': -2,
294
                'orderable': false,
295
                'className': 'text-center',
293 geraldo 296
                'className': 'text-vertical-middle',
251 geraldo 297
            },
298
            {
299
                'targets': -1,
300
                'orderable': false,
301
                'render': function(data, type, row) {
302
                    s = '';
303
                    if (allowEdit) {
293 geraldo 304
                        s = s + '<button class="btn btn-primary btn-edit-form" data-href="' + data + '" data-toggle="tooltip" title="LABEL_EDIT"><i class="fa fa-pencil"></i> LABEL_EDIT </button>&nbsp;';
251 geraldo 305
                    }
306
                    return s;
307
                }
308
            }
309
        ],
310
    });
311
    /**
391 geraldo 312
     * Clicked edit question
313
     */
314
    $('body').on('click', 'button.btn-add-status', function(e) {
315
        e.preventDefault();
393 geraldo 316
        objFormGenerator.editQuestion(
317
            $(this).data('section'),
318
            $(this).data('question'),
319
            true
320
        );
397 geraldo 321
        renderSectionData(objFormGenerator.sections);
391 geraldo 322
    });
323
    /**
324
     * Clicked edit question
325
     */
326
    $('body').on('click', 'button.btn-remove-status', function(e) {
327
        e.preventDefault();
393 geraldo 328
        objFormGenerator.editQuestion(
329
            $(this).data('section'),
330
            $(this).data('question'),
331
            false
332
        );
397 geraldo 333
        renderSectionData(objFormGenerator.sections);
391 geraldo 334
    });
335
    /**
251 geraldo 336
     * Clicked on edit form
337
     */
338
    $('body').on('click', 'button.btn-edit-form', function(e) {
339
        e.preventDefault();
340
        form_id = $(this).data('id')
341
        var action = $(this).data('href');
342
        $.ajax({
343
            'dataType': 'json',
344
            'accept': 'application/json',
345
            'method': 'get',
346
            'url': action,
347
        }).done(function(response) {
348
            if (response['success']) {
349
                $('#form-main').attr('action', action);
350
                $('#form-main #form-id').val(response['data']['id']),
387 geraldo 351
                    $('#name').html(response['data']['name']);
366 geraldo 352
                $('#form-status').val(response['data']['status']);
316 geraldo 353
                $('#text').html(response['data']['text']);
354
                $('#user').html(response['data']['user']);
251 geraldo 355
                /*-------------Render Sections -------*/
356
                objFormGenerator.clear();
357
                objFormGenerator.sections = response['data']['content'] || [];
358
                objFormGenerator.render();
359
                renderSectionData(objFormGenerator.sections);
254 geraldo 360
                $('#row-forms').hide();
251 geraldo 361
                $('#row-edit').show();
362
            } else {
363
                $.fn.showError(response['message'] || 'ERROR_UNKNOWN');
364
            }
365
        }).fail(function(jqXHR, textStatus, errorThrown) {
366
            $.fn.showError(textStatus);
367
        });
368
    });
351 geraldo 369
    $('button.btn-form-save-close').click(function(e) {
352 geraldo 370
        var formContinue = parseInt($('#form-main #form-continue').val());
371
        var data = {
372
            'status': $('#form-main #form-status').val(),
373
            'content': JSON.stringify(objFormGenerator.sections)
374
        }
375
        $.ajax({
376
            'dataType': 'json',
377
            'method': 'post',
378
            'url': $('#form-main').attr('action'),
379
            'data': data,
380
        }).done(function(response) {
381
            if (response['success']) {
382
                $.fn.showSuccess(response['data']);
383
                $('#row-edit').hide();
384
                $('#row-forms').show();
385
                /*---------- Reset Form -------- */
386
                $('#form-main')[0].reset();
387
                /*--------Reset Sections ----------*/
388
                clearSectionData();
389
                /* ------- Refresh Table -----------*/
390
                tableForm.fnDraw();
391
            } else {
392
                $.fn.showError(response['message'] || 'ERROR_UNKNOWN');
393
            }
394
        }).fail(function(jqXHR, textStatus, errorThrown) {
395
            $.fn.showError(textStatus);
396
        });
397
        return false;
351 geraldo 398
    });
251 geraldo 399
    /**
400
     * Clicked cancel new/edit Form
401
     */
402
    $('button.btn-edit-cancel').click(function(e) {
403
        e.preventDefault();
404
        $('#row-edit').hide();
254 geraldo 405
        $('#row-forms').show();
251 geraldo 406
    });
407
    /**
339 geraldo 408
     * Get Answers
409
     */
410
    const getAnswer = (type, options, answer) => {
411
        if (type == 'open' || type == 'rating-range') {
328 geraldo 412
            return answer;
251 geraldo 413
        }
339 geraldo 414
        if (type == 'multiple') {
352 geraldo 415
            let opt = '';
339 geraldo 416
            opt += removeTags(options.filter((opt) => answer.includes(opt.slug_option))[0].text) + ' ';
332 geraldo 417
            return opt;
330 geraldo 418
        }
338 geraldo 419
        return removeTags(options.filter((opt) => opt.slug_option == answer)[0].text);
251 geraldo 420
    }
421
    /**
341 geraldo 422
     * Get Status
423
     */
344 geraldo 424
    const getStatus = (options, answer) => options.filter((opt) => (opt.slug_option == answer || answer.includes(opt.slug_option)) &&
371 geraldo 425
        opt.correct == 1) ? '<font color="green">LABEL_CORRECT</font>' : '<font color="red">LABEL_FAIL</red>'
341 geraldo 426
    /**
251 geraldo 427
     * Remove Html Tags
428
     */
339 geraldo 429
    const removeTags = (str) => str.toString().replace(/(<([^>]+)>)/ig, '')
251 geraldo 430
    /**
431
     * Render Sections data
432
     */
387 geraldo 433
    const renderSectionData = (data) => {
434
        console.log(data);
435
        return $("#rows").html($("#sectionTemplate").render(data, {
323 geraldo 436
        removeTags: removeTags,
341 geraldo 437
        getAnswer: getAnswer,
385 geraldo 438
        getStatus: getStatus
387 geraldo 439
    }))};
251 geraldo 440
    /**
441
     * Clear Div Section data
442
     */
443
    const clearSectionData = () => $("#rows").html('');
444
    /**
445
     * Clicked refresh button
446
     */
447
    $('button.btn-refresh').click(function(e) {
448
        tableForm.fnDraw();
449
    });
391 geraldo 450
 
251 geraldo 451
});
452
JS;
453
$this->inlineScript()->captureEnd();
454
?>
455
 
456
<!-- Content Header (Page header) -->
457
<section class="content-header">
389 geraldo 458
    <div class="container-fluid">
459
        <div class="row mb-2">
460
            <div class="col-sm-12">
461
                <h1>LABEL_REVIEWS</h1>
462
            </div>
463
        </div>
464
    </div>
465
    <!-- /.container-fluid -->
251 geraldo 466
</section>
314 geraldo 467
<section class="content" style="padding: 13px;">
389 geraldo 468
    <div class="container-fluid" id="row-forms">
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>
475
                                <tr>
476
                                    <th>LABEL_USER</th>
477
                                    <th>LABEL_NAME</th>
478
                                    <th>LABEL_LANGUAGE</th>
479
                                    <th>LABEL_STATUS</th>
480
                                    <th>LABEL_ACTIONS</th>
481
                                </tr>
482
                            </thead>
483
                            <tbody></tbody>
484
                        </table>
485
                    </div>
486
                    <div class="card-footer clearfix">
487
                        <div style="float:right;">
488
                            <button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH </button>
489
                        </div>
490
                    </div>
491
                </div>
251 geraldo 492
            </div>
389 geraldo 493
        </div>
494
    </div>
495
    <!-- Create/Edit Form -->
496
    <div class="row" id="row-edit" style="display: none">
497
        <div class="col-xs-12 col-md-12">
498
            <form action="#" name="form-main" id="form-main">
499
                <div class="form-group">
500
                    <label for="form-status">LABEL_USER:</label>
501
                    <div id="user"></div>
502
                </div>
503
                <div class="form-group">
504
                    <label for="form-status">LABEL_FORM:</label>
505
                    <div id="name"></div>
506
                </div>
507
                <div class="form-group">
508
                    <label for="form-status">LABEL_DESCRIPTION:</label>
509
                    <div id="text"></div>
510
                </div>
511
                <div class="form-group">
512
                    <label for="form-status">LABEL_STATUS:</label>
513
                    <select name="form-status" id="form-status" class="form-control">
514
                        <option value="<?php echo $pending; ?>">LABEL_PENDING</option>
515
                        <option value="<?php echo $review; ?>">LABEL_REVIEW</option>
516
                        <option value="<?php echo $completed; ?>">LABEL_COMPLETED</option>
517
                    </select>
518
                </div>
519
                <div class="row">
520
                    <div class="col-xs-12 col-md-12">
521
                        <div class="panel-group" id="rows"></div>
522
                    </div>
523
                </div>
524
                <div class="form-group">
525
                    <button type="button" class="btn btn-primary btn-form-save-close">LABEL_SAVE</button>
526
                    <button type="button" class="btn btn-secondary btn-edit-cancel">LABEL_CANCEL</button>
527
                </div>
528
            </form>
529
        </div>
530
    </div>
531
    <!-- Create/Edit Form-->
251 geraldo 532
 
533
    <!---Template Sections --->
534
    <script id="sectionTemplate" type="text/x-jsrender">
389 geraldo 535
        <div class="panel panel-default" id="panel-{{:slug_section}}">
369 geraldo 536
   <div class="panel-heading">
537
      <h4 class="panel-title">
538
         <a class="accordion-toggle" data-toggle="collapse" aria-expanded="true" data-parent="#panel-{{:slug_section}}" href="#collapse-{{:slug_section}}">
539
         <span class="section-name{{:slug_section}}">
540
         {{:name}}
541
         </span>
542
         </a>
543
      </h4>
544
   </div>
545
   <div id="collapse-{{:slug_section}}" class="panel-collapse in collapse show">
546
      <div class="panel-body">
547
         <div class="table-responsive">
548
            <table class="table table-bordered">
549
               <thead>
550
                  <tr>
551
                     <th style="width: 40%;">LABEL_QUESTION</th>
374 geraldo 552
                     <th style="width: 35%;">LABEL_ANSWER</th>
553
                     <th style="width: 25%;">LABEL_ACTIONS</th>
369 geraldo 554
                  </tr>
555
               </thead>
556
               {{for questions}}
557
               <tbody>
558
                  <tr class="tr-question">
559
                     <td class="text-left">{{:~removeTags(text)}} </td>
560
                     <td>{{:~getAnswer(type,options,answer)}}</td>
561
                     <td>
562
                        {{if type == 'simple'  || type=='multiple' }}
563
                        {{:~getStatus( options,answer)}}
564
                        {{else}}
565
                        {{if status}}
390 geraldo 566
                        <button class="btn btn-danger btn-remove-status"  data-section="{{:slug_section}}" data-question="{{:slug_question}}">
372 geraldo 567
                        <i class="fa fa-times" aria-hidden="true"></i> LABEL_TO_CHECK LABEL_FAIL
369 geraldo 568
                        </button>
377 geraldo 569
                        {{else}}
390 geraldo 570
                        <button class="btn btn-success btn-add-status" data-section="{{:slug_section}}" data-question="{{:slug_question}}" >
372 geraldo 571
                        <i class="fa fa-check" aria-hidden="true"></i> LABEL_TO_CHECK LABEL_CORRECT
369 geraldo 572
                        </button>
573
                        {{/if}}
574
                        {{/if}}
575
                     </td>
576
                  </tr>
577
               </tbody>
578
               {{/for}}
579
            </table>
580
         </div>
581
      </div>
582
   </div>
583
</div>
251 geraldo 584
    </script>
585
 
586
    <!-- End Template Sections-->
587
 
588
</section>