Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev Autor Línea Nro. Línea
1384 efrain 1
<?php
2
$acl = $this->viewModel()->getRoot()->getVariable('acl');
3
$currentUser = $this->currentUserHelper();
4
 
5
$roleName = $currentUser->getUserTypeId();
6
 
1395 eleazar 7
$routeAdd = $this->url('recruitment-and-selection-vacancies/forms/add');
8
$routeDatatable = $this->url('recruitment-and-selection-vacancies/forms');
1384 efrain 9
$routeDashboard = $this->url('dashboard');
10
 
1395 eleazar 11
$allowAdd = $acl->isAllowed($roleName, 'recruitment-and-selection-vacancies/forms/add') ? 1 : 0;
12
$allowEdit = $acl->isAllowed($roleName, 'recruitment-and-selection-vacancies/forms/edit') ? 1 : 0;
13
$allowDelete = $acl->isAllowed($roleName, 'recruitment-and-selection-vacancies/forms/delete') ? 1 : 0;
1384 efrain 14
 
15
 
16
$this->inlineScript()->appendFile('https://maps.googleapis.com/maps/api/js?key=' . $google_map_key . '&libraries=places');
17
 
18
 
19
$this->inlineScript()->appendFile($this->basePath('plugins/ckeditor/ckeditor.js'));
20
 
21
 
22
$this->headLink()->appendStylesheet($this->basePath('plugins/nprogress/nprogress.css'));
23
$this->inlineScript()->appendFile($this->basePath('plugins/nprogress/nprogress.js'));
24
 
25
 
26
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));
27
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));
28
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/localization/messages_es.js'));
29
 
30
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css'));
31
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-responsive/css/responsive.bootstrap4.min.css'));
32
 
33
$this->inlineScript()->appendFile($this->basePath('plugins/datatables/jquery.dataTables.min.js'));
34
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-bs4/js/dataTables.bootstrap4.min.js'));
35
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/dataTables.responsive.min.js'));
36
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/responsive.bootstrap4.min.js'));
37
 
38
 
39
$this->headLink()->appendStylesheet($this->basePath('plugins/select2/css/select2.min.css'));
40
$this->headLink()->appendStylesheet($this->basePath('plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css'));
41
 
42
$this->inlineScript()->appendFile($this->basePath('plugins/select2/js/select2.full.min.js'));
43
 
44
$this->inlineScript()->appendFile($this->basePath('plugins/moment/moment-with-locales.min.js'));
45
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-datetimepicker/css/bootstrap-datetimepicker.css'));
46
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js'));
47
 
48
 
49
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
50
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));
51
 
52
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-confirmation/dist/bootstrap-confirmation.js'));
53
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-checkbox/awesome-bootstrap-checkbox.css'));
54
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-input-number/input-number-format.jquery.js'));
55
 
56
// bootbox Alert //
57
$this->inlineScript()->appendFile($this->basePath('plugins/bootbox/bootbox.min.js'));
58
 
59
// JsRender //
60
$this->inlineScript()->appendFile($this->basePath('plugins/jsrender/jsrender.min.js'));
61
 
62
 
63
// Page Styles
64
$this->headLink()->appendStylesheet($this->basePath('css/pages/self-evaluation.css'));
65
 
66
 
1388 eleazar 67
$status_active = \LeadersLinked\Model\RecruitmentSelectionVacancy::STATUS_ACTIVE;
68
$status_inactive = \LeadersLinked\Model\RecruitmentSelectionVacancy::STATUS_INACTIVE;
1384 efrain 69
 
70
$this->inlineScript()->captureStart();
71
echo <<<JS
72
jQuery(document).ready(function($) {
73
    var allowEdit = $allowEdit;
74
    var allowDelete = $allowDelete;
75
    var sections = [];
76
    /**
77
     * Get rows and set data table
78
     */
79
    var tableForm = $('#gridTable').dataTable({
80
        'processing': true,
81
        'serverSide': true,
82
        'searching': true,
83
        'order': [
84
            [0, 'asc']
85
        ],
86
        'ordering': true,
87
        'ordenable': true,
88
        'responsive': true,
89
        'select': false,
90
        'paging': true,
91
        'pagingType': 'simple_numbers',
92
        'ajax': {
93
            'url': '$routeDatatable',
94
            'type': 'get',
95
            'beforeSend': function(request) {
96
                NProgress.start();
97
            },
98
            'dataFilter': function(response) {
99
                var response = jQuery.parseJSON(response);
100
                var json = {};
101
                json.recordsTotal = 0;
102
                json.recordsFiltered = 0;
103
                json.data = [];
104
                if (response.success) {
105
                    json.recordsTotal = response.data.total;
106
                    json.recordsFiltered = response.data.total;
107
                    json.data = response.data.items;
108
                } else {
109
                    $.fn.showError(response.data)
110
                }
111
                return JSON.stringify(json);
112
            }
113
        },
114
        'language': {
115
            'sProcessing': 'LABEL_DATATABLE_SPROCESSING',
116
            'sLengthMenu': 'LABEL_DATATABLE_SLENGTHMENU',
117
            'sZeroRecords': 'LABEL_DATATABLE_SZERORECORDS',
118
            'sEmptyTable': 'LABEL_DATATABLE_SEMPTYTABLE',
119
            'sInfo': 'LABEL_DATATABLE_SINFO',
120
            'sInfoEmpty': 'LABEL_DATATABLE_SINFOEMPTY',
121
            'sInfoFiltered': 'LABEL_DATATABLE_SINFOFILTERED',
122
            'sInfoPostFix': '',
123
            'sSearch': 'LABEL_DATATABLE_SSEARCH',
124
            'sUrl': '',
125
            'sInfoThousands': ',',
126
            'sLoadingRecords': 'LABEL_DATATABLE_SLOADINGRECORDS',
127
            'oPaginate': {
128
                'sFirst': 'LABEL_DATATABLE_SFIRST',
129
                'sLast': 'LABEL_DATATABLE_SLAST',
130
                'sNext': 'LABEL_DATATABLE_SNEXT',
131
                'sPrevious': 'LABEL_DATATABLE_SPREVIOUS'
132
            },
133
            'oAria': {
134
                'sSortAscending': ': LABEL_DATATABLE_SSORTASCENDING',
135
                'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
136
            },
137
        },
138
        'drawCallback': function(settings) {
139
            NProgress.done();
140
            $('button.btn-delete').confirmation({
141
                rootSelector: 'button.btn-delete',
142
                title: 'LABEL_ARE_YOU_SURE',
143
                singleton: true,
144
                btnOkLabel: 'LABEL_YES',
145
                btnCancelLabel: 'LABEL_NO',
146
                onConfirm: function(value) {
147
                    action = $(this).data('href');
148
                    NProgress.start();
149
                    $.ajax({
150
                        'dataType': 'json',
151
                        'accept': 'application/json',
152
                        'method': 'post',
153
                        'url': action,
154
                    }).done(function(response) {
155
                        if (response['success']) {
156
                            $.fn.showSuccess(response['data']);
157
                            tableForm.fnDraw();
158
                        } else {
159
                            $.fn.showError(response['data']);
160
                        }
161
                    }).fail(function(jqXHR, textStatus, errorThrown) {
162
                        $.fn.showError(textStatus);
163
                    }).always(function() {
164
                        NProgress.done();
165
                    });
166
                },
167
            });
168
        },
169
        'aoColumns': [{
170
                'mDataProp': 'name'
171
            },
172
            {
173
                'mDataProp': 'job_description'
174
            },
175
            {
176
                'mDataProp': 'status'
177
            },
178
            {
179
                'mDataProp': 'actions'
180
            },
181
        ],
182
        'columnDefs': [{
183
                'targets': 0,
184
                'className': 'text-vertical-middle',
185
            },
186
            {
187
                'targets': 1,
188
                'className': 'text-vertical-middle',
189
            },
190
            {
191
                'targets': -2,
192
                'orderable': false,
193
                'className': 'text-center',
194
                'render': function(data, type, row) {
195
                    checked = data == 'a' ? ' checked="checked" ' : '';
196
                    return '<div class="checkbox checkbox-success">' +
197
                        '<input class="styled" type="checkbox" ' + checked + ' disabled="disabled">' +
198
                        '<label ></label></div>';
199
                }
200
            },
201
            {
202
                'targets': -1,
203
                'orderable': false,
204
                'render': function(data, type, row) {
205
                    s = '';
206
                    if (allowEdit) {
207
                        s = s + '<button class="btn btn-primary btn-edit-form" data-href="' + data['link_edit'] + '" data-toggle="tooltip" title="LABEL_EDIT"><i class="fa fa-pencil"></i> LABEL_EDIT </button>&nbsp;';
208
                    }
209
                    if (allowDelete) {
210
                        s = s + '<button class="btn btn-danger btn-delete" data-href="' + data['link_delete'] + '" data-toggle="tooltip" title="LABEL_DELETE"><i class="fa fa-trash"></i> LABEL_DELETE </button>&nbsp;';
211
                    }
212
                    if (allowReport) {
213
                        s = s + '<a class="btn btn-default btn-pdf" href="' + data['link_report'] + '" target="_blank" data-toggle="tooltip" title="LABEL_PDF"><i class="fa fa-file-o"></i> LABEL_PDF </button>&nbsp;';
214
                    }
215
                    return s;
216
                }
217
            }
218
        ],
219
    });
220
 
221
 
222
 
223
    /**
224
     * Clicked on edit form
225
     */
226
    $('body').on('click', 'button.btn-edit-form', function(e) {
227
        e.preventDefault();
228
        form_id = $(this).data('id')
229
        var action = $(this).data('href');
230
        $.ajax({
231
            'dataType': 'json',
232
            'accept': 'application/json',
233
            'method': 'get',
234
            'url': action,
235
        }).done(function(response) {
236
            if (response['success']) {
237
                $("#rows").html('');
238
                sections = [];
239
                $('#form-main').attr('action', action);
240
                $('#form-main #form-name').val(response['data']['name']);
1398 eleazar 241
                $('#form-main #job_description_id').val(response['data']['job_description_id']).trigger('change');
1384 efrain 242
                $('#form-main #form-location').val(response['data']['location']);
243
                $('#form-main #job_category_id').val(response['data']['job_category_id']).trigger('change');
244
                $('#form-main #industry_id').val(response['data']['industry_id']).trigger('change');
245
                $('#form-main #form-status').val(response['data']['status']);
246
                CKEDITOR.instances['form-description'].setData(response['data']['description']);
247
 
1389 eleazar 248
 
1384 efrain 249
            } else {
250
                $.fn.showError(response['message'] || 'ERROR_UNKNOWN');
251
            }
252
        }).fail(function(jqXHR, textStatus, errorThrown) {
253
            $.fn.showError(textStatus);
254
        });
255
    });
1389 eleazar 256
 
257
 
1384 efrain 258
    /**
259
     * Clicked new Form
260
     */
261
    $('button.btn-add-form').click(function(e) {
262
        $("#rows").html('');
263
        sections = [];
264
        $('#form-main').attr('action', '$routeAdd');
265
        $('#form-main #form-name').val('');
1398 eleazar 266
        $('#form-main #job_description_id').val('').trigger('change');
1384 efrain 267
        $('#form-main #form-location').val('');
268
        $('#form-main #job_category_id').val('').trigger('change');
269
        $('#form-main #industry_id').val('').trigger('change');
270
        $('#form-main #form-status').val('$status_active');
271
        CKEDITOR.instances['form-description'].setData('');
1397 eleazar 272
        $('#row-lists').hide();
273
        $('#row-form').show();
274
        $('#form-main #form-name').focus();
1384 efrain 275
        return;
276
    });
277
 
278
 
279
    $.validator.addMethod('checkLocation', function (value, element, param) {
280
        var otherElement = $(param);
281
 
282
        return $.trim(otherElement.val()).length > 0;
283
    }, 'ERROR_PLACED_AUTOCOMPLETE_DOES_NOT_CONTAIN_GEOMETRY');
284
 
285
    var autocompleteLocation = new google.maps.places.Autocomplete(
286
        (document.getElementById('location_search')),
287
        {types: ['(cities)']}
288
    );
289
 
290
    /**
291
     * Clicked cancel new/edit Form
292
     */
293
    $('button.btn-edit-cancel').click(function(e) {
294
        $('#row-form').hide();
295
        $('#row-lists').show();
296
        return;
297
    });
298
    /**
299
     * Clicked save and continue new Form
300
     */
301
    $('button.btn-form-save-continue').click(function(e) {
302
        for (var instanceName in CKEDITOR.instances) {
303
            CKEDITOR.instances[instanceName].updateElement();
304
        }
305
        saveData(1);
306
    });
307
    /**
308
     * Clicked save and close new/edit Form
309
     */
310
    $('button.btn-form-save-close').click(function(e) {
311
        for (var instanceName in CKEDITOR.instances) {
312
            CKEDITOR.instances[instanceName].updateElement();
313
        }
314
        saveData(0);
315
    });
316
    /**
317
     * Save Form Data
318
     */
319
    const saveData = (action) => {
320
        if ($('#form-name').val() == '') {
321
            $.fn.showError('ERROR_ENTER_NAME');
322
        } else if ($('#form-description').val() == '') {
323
            $.fn.showError('ERROR_ENTER_DESCRIPTION');
324
        } else if ($('#form-category').val() == '') {
325
            $.fn.showError('ERROR_ENTER_CATEGORY');
326
        } else if ($('#form-industry').val() == '') {
327
            $.fn.showError('ERROR_ENTER_INDUSTRY');
328
        } else if ($('#form-text').val() == '') {
329
            $.fn.showError('ERROR_ENTER_TEXT');
330
        } else if ($('#form-status').val() == '') {
331
            $.fn.showError('ERROR_SELECT_STATUS');
332
        } else if ($('#job_description_id').val() == '') {
333
            $.fn.showError('ERROR_SELECT_JOB_DESCRIPTION');
334
        } else {
335
            $.ajax({
336
                'dataType': 'json',
337
                'method': 'post',
338
                'url': $('#form-main').attr('action'),
339
                'data': {
340
                    'name': $('#form-main #form-name').val(),
341
                    'job_description_id': $('#form-main #job_description_id').val(),
342
                    'location' :$('#form-main #form-location').val(),
343
                    'job_category_id' :$('#form-main #job_category_id').val(),
344
                    'industry_id' :$('#form-main #industry_id').val(),
345
                    'status': $('#form-main #form-status').val(),
346
                    'description': $('#form-main #form-description').val(),
347
                    'content': JSON.stringify(sections)
348
                },
349
            }).done(function(response) {
350
                if (response['success']) {
351
                    $.fn.showSuccess(response['data']);
352
                    if (action == 1) {
353
                        $('#form-main').attr('action', response['action_edit']);
354
                    } else {
355
                        $('#row-form').hide();
356
                        $('#row-lists').show();
357
                        /*---------- Reset Form -------- */
358
                        $('#form-main')[0].reset();
359
                        tableForm.fnDraw();
360
                    }
361
                    return;
362
                } else {
363
                    $.fn.showError(response['message'] || 'ERROR_UNKNOWN');
364
                    return;
365
                }
366
            });
367
        }
368
    }
369
    /**
370
     * Remove Html Tags
371
     */
372
    const removeTags = (str) => str.toString().replace(/(<([^>]+)>)/ig, '')
1389 eleazar 373
 
374
 
1384 efrain 375
    /**
376
     * Remove Option
377
     */
378
    const removeOption = (id_section, id) => {
379
        sections.map((item) => {
380
            if (item.id_section == id_section) {
381
                item.options = item.options.filter((opt) => opt.id_option != id) || []
382
            }
383
        });
384
        return renderData(sections);
385
    }
386
    /**
387
     * Clicked refresh button
388
     */
389
    $('button.btn-refresh').click(function(e) {
390
        tableForm.fnDraw();
391
        return;
392
    });
393
    /**
394
     * Initialize select Jobdescription
395
     */
396
    $('#job_description_id').select2({
397
        theme: 'bootstrap4',
398
        width: '100%',
399
    });
400
 
401
    /**
402
     * On change selecte JobDescription
403
     */
404
    $('#job_description_id').on('change', function() {
405
        if ($("#job_description_id").val() != '') {
406
            $.getJSON("/settings/jobs-description/edit/" + $("#job_description_id").val(), function(response) {
407
                if (response['success']) {
1394 eleazar 408
 
1384 efrain 409
                }
410
            });
411
        }
412
    });
413
 
414
     /**
415
     * Initialize select Jobcategory
416
     */
417
    $('#job_category_id').select2({
418
        theme: 'bootstrap4',
419
        width: '100%',
420
    });
421
 
422
     /**
423
     * Initialize select industry
424
     */
425
    $('#industry_id').select2({
426
        theme: 'bootstrap4',
427
        width: '100%',
428
    });
429
      /**
430
     * On change selecte industry
431
     */
432
    $('#industry_id').on('change', function() {
433
        if ($("#industry_id").val() != '') {
434
            $.getJSON("/settings/industries/edit/" + $("#industry_id").val(), function(response) {
435
                if (response['success']) {
1394 eleazar 436
 
1384 efrain 437
                }
438
            });
439
        }
440
    });
441
     /**
442
     * Initialize select Location
443
     */
444
 
445
    var validatorLocation = $('#form-location').validate({
446
        debug: true,
447
        onclick: false,
448
        onkeyup: false,
449
        onfocusout: false,
450
        ignore: [],
451
        rules: {
452
            'location_search': {
453
                required: true,
454
                checkLocation: '#form-location #latitude'
455
            }
456
        },
457
        submitHandler: function(form)
458
        {
459
            NProgress.start();
460
            $.ajax({
461
                'dataType'  : 'json',
462
                'accept'    : 'application/json',
463
                'method'    : 'post',
464
                'url'       :  route_location,
465
                'data'      :  $('#form-location').serialize(),
466
            }).done(function(response) {
467
 
468
 
469
 
470
                if(response['success']) {
471
                    $('#overview-location').html(response.data);
472
                    $("#location-box").modal('hide');
473
                } else {
474
                    validatorLocation.resetForm();
475
                    $.fn.showError(response['data']);
476
                }
477
            }).fail(function( jqXHR, textStatus, errorThrown) {
478
                $.fn.showError(textStatus);
479
            }).always(function() {
480
                NProgress.done();
481
            });
482
            return false;
483
        },
484
        invalidHandler: function(form, validator) {
485
 
486
        }
487
    });
488
 
489
    $('body').on('click', 'a.btn-location-edit', function(e) {
490
        e.preventDefault();
491
 
492
        $('#form-location #location_search').val('');
493
        $('#form-location #formatted_address').val('');
494
        $('#form-location #address1').val('');
495
        $('#form-location #address2').val('');
496
        $('#form-location #country').val('');
497
        $('#form-location #state').val('');
498
        $('#form-location #city1').val('');
499
        $('#form-location #city2').val('');
500
        $('#form-location #postal_code').val('');
501
        $('#form-location #latitude').val('');
502
        $('#form-location #longitude').val('');
503
        validatorLocation.resetForm();
504
 
505
        $("#location-box").modal('show');
506
    });
507
 
508
    $('.btn-location-close').on("click", function(e){
509
        e.preventDefault();
510
 
511
        $("#location-box").modal('hide');
512
        return false;
513
    });
1391 eleazar 514
});
1384 efrain 515
JS;
516
 
517
$this->inlineScript()->captureEnd();
518
?>
519
<!-- Content Header (Page header) -->
520
<section class="content-header">
521
   <div class="container-fluid">
522
      <div class="row mb-2">
523
         <div class="col-sm-12">
524
            <h1>LABEL_RECRUITMENT_AND_SELECTION</h1>
525
         </div>
526
      </div>
527
   </div>
528
   <!-- /.container-fluid -->
529
</section>
530
<section class="content">
531
<div class="container-fluid" id="row-lists">
532
   <div class="row">
533
      <div class="col-12">
534
         <div class="card">
535
            <div class="card-body">
536
               <table id="gridTable" class="table   table-hover">
537
                  <thead>
538
                     <tr>
539
                        <th style="width:25%">LABEL_NAME</th>
540
                        <th style="width:20%">LABEL_JOB_DESCRIPTION</th>
541
                        <th style="width:10%">LABEL_ACTIVE</th>
542
                        <th style="width:25%">LABEL_ACTIONS</th>
543
                     </tr>
544
                  </thead>
545
                  <tbody></tbody>
546
               </table>
547
            </div>
548
            <div class="card-footer clearfix">
549
               <div style="float:right;">
550
                  <button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH </button>
551
                  <?php if ($allowAdd) : ?>
552
                  <button type="button" class="btn btn-primary btn-add-form"><i class="fa fa-plus"></i> LABEL_ADD </button>
553
                  <?php endif; ?>
554
               </div>
555
            </div>
556
         </div>
557
      </div>
558
   </div>
559
</div>
560
<!-- Create/Edit Form -->
561
<div class="row" id="row-form" style="display: none; padding: 16px;">
562
   <div class="col-xs-12 col-md-12">
563
      <form action="#" name="form-main" id="form-main">
564
         <div class="form-group">
565
            <label for="form-name">LABEL_FIRST_NAME</label>
566
            <input type="text" name="form-name" id="form-name" class="form-control" maxlength="50" />
567
         </div>
568
         <div class="form-group">
569
            <label for="job_description_id">LABEL_POSITION_EVALUATED</label>
570
            <select name="job_description_id" id="job_description_id" class="form-control">
571
               <option value="">LABEL_SELECT</option>
572
               <?php foreach ($jobsDescription as $rs): ?>
573
               <option value="<?php echo $rs->uuid;?>"><?php echo $rs->name;?></option>
574
               <?php endforeach; ?>
575
            </select>
576
         </div>
577
         <div class="form-group">
578
            <label for="form-location">LABEL_LOCATION</label>
579
            <input type="text" name="form-location" id="location_search" class="form-control" maxlength="50" />
580
         </div>
581
         <div class="form-group">
582
            <label for="job_category_id">LABEL_JOB_CATEGORY</label>
583
            <select name="job_category_id" id="job_category_id" class="form-control">
584
               <option value="">LABEL_SELECT</option>
585
               <?php foreach ($jobCategory as $rs): ?>
586
               <option value="<?php echo $rs->uuid;?>"><?php echo $rs->name;?></option>
587
               <?php endforeach; ?>
588
            </select>
589
         </div>
590
         <div class="form-group">
1398 eleazar 591
            <label for="industry_id">LABEL_INDUSTRY</label>
592
            <select name="industry_id" id="industry_id" class="form-control">
1384 efrain 593
               <option value="">LABEL_SELECT</option>
594
               <?php foreach ($industry as $rs): ?>
595
               <option value="<?php echo $rs->uuid;?>"><?php echo $rs->name;?></option>
596
               <?php endforeach; ?>
597
            </select>
598
         </div>
599
            <label for="form-description">LABEL_DESCRIPTION</label>
600
            <!--  ckeditor -->
601
            <textarea  name="form-description" id="form-description" rows="5" class="ckeditor form-control"></textarea>
602
         </div>
603
         <div class="form-group">
604
            <label for="form-status">LABEL_STATUS</label>
605
            <select name="form-status" id="form-status" class="form-control">
606
               <option value="<?php echo $status_inactive; ?>">LABEL_INACTIVE</option>
607
               <option value="<?php echo $status_active; ?>">LABEL_ACTIVE</option>
608
            </select>
609
         </div>
610
         <div class="row">
611
            <div class="col-xs-12 col-md-12 text-right">
612
               <button type="button" class="btn btn-primary" id="btn-add-section" data-toggle="tooltip" title="LABEL_ADD LABEL_SECTION"><i class="fa fa-plus" aria-hidden="true"></i> LABEL_ADD LABEL_SECTION</button>
613
            </div>
614
         </div>
615
         <br />
616
         <div class="row">
617
            <div class="col-xs-12 col-md-12">
618
               <div class="panel-group" id="rows"></div>
619
            </div>
620
         </div>
1389 eleazar 621
 
1384 efrain 622
         <div class="form-group">
623
            <button type="button" form="form-main" class="btn btn-info btn-form-save-continue">LABEL_SAVE & LABEL_CONTINUE</button>
624
            <button type="button" class="btn btn-primary btn-form-save-close">LABEL_SAVE & LABEL_CLOSE</button>
625
            <button type="button" class="btn btn-secondary btn-edit-cancel">LABEL_CANCEL</button>
626
         </div>
627
      </form>
628
   </div>
629
</div>
630
<!-- Create/Edit Form-->
631
 
632
</section>