Proyectos de Subversion LeadersLinked - Backend

Rev

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