Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 1394 | Rev 1397 | 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']);
241
                $('#form-main #form-location').val(response['data']['location']);
242
                $('#form-main #job_description_id').val(response['data']['job_description_id']).trigger('change');
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('');
266
        $('#form-main #form-location').val('');
267
        $('#form-main #job_description_id').val('').trigger('change');
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('');
272
        return;
273
    });
274
 
275
 
276
    $.validator.addMethod('checkLocation', function (value, element, param) {
277
        var otherElement = $(param);
278
 
279
        return $.trim(otherElement.val()).length > 0;
280
    }, 'ERROR_PLACED_AUTOCOMPLETE_DOES_NOT_CONTAIN_GEOMETRY');
281
 
282
    var autocompleteLocation = new google.maps.places.Autocomplete(
283
        (document.getElementById('location_search')),
284
        {types: ['(cities)']}
285
    );
286
 
287
    /**
288
     * Clicked cancel new/edit Form
289
     */
290
    $('button.btn-edit-cancel').click(function(e) {
291
        $('#row-form').hide();
292
        $('#row-lists').show();
293
        return;
294
    });
295
    /**
296
     * Clicked save and continue new Form
297
     */
298
    $('button.btn-form-save-continue').click(function(e) {
299
        for (var instanceName in CKEDITOR.instances) {
300
            CKEDITOR.instances[instanceName].updateElement();
301
        }
302
        saveData(1);
303
    });
304
    /**
305
     * Clicked save and close new/edit Form
306
     */
307
    $('button.btn-form-save-close').click(function(e) {
308
        for (var instanceName in CKEDITOR.instances) {
309
            CKEDITOR.instances[instanceName].updateElement();
310
        }
311
        saveData(0);
312
    });
313
    /**
314
     * Save Form Data
315
     */
316
    const saveData = (action) => {
317
        if ($('#form-name').val() == '') {
318
            $.fn.showError('ERROR_ENTER_NAME');
319
        } else if ($('#form-description').val() == '') {
320
            $.fn.showError('ERROR_ENTER_DESCRIPTION');
321
        } else if ($('#form-category').val() == '') {
322
            $.fn.showError('ERROR_ENTER_CATEGORY');
323
        } else if ($('#form-industry').val() == '') {
324
            $.fn.showError('ERROR_ENTER_INDUSTRY');
325
        } else if ($('#form-text').val() == '') {
326
            $.fn.showError('ERROR_ENTER_TEXT');
327
        } else if ($('#form-status').val() == '') {
328
            $.fn.showError('ERROR_SELECT_STATUS');
329
        } else if ($('#job_description_id').val() == '') {
330
            $.fn.showError('ERROR_SELECT_JOB_DESCRIPTION');
331
        } else {
332
            $.ajax({
333
                'dataType': 'json',
334
                'method': 'post',
335
                'url': $('#form-main').attr('action'),
336
                'data': {
337
                    'name': $('#form-main #form-name').val(),
338
                    'job_description_id': $('#form-main #job_description_id').val(),
339
                    'location' :$('#form-main #form-location').val(),
340
                    'job_category_id' :$('#form-main #job_category_id').val(),
341
                    'industry_id' :$('#form-main #industry_id').val(),
342
                    'status': $('#form-main #form-status').val(),
343
                    'description': $('#form-main #form-description').val(),
344
                    'content': JSON.stringify(sections)
345
                },
346
            }).done(function(response) {
347
                if (response['success']) {
348
                    $.fn.showSuccess(response['data']);
349
                    if (action == 1) {
350
                        $('#form-main').attr('action', response['action_edit']);
351
                    } else {
352
                        $('#row-form').hide();
353
                        $('#row-lists').show();
354
                        /*---------- Reset Form -------- */
355
                        $('#form-main')[0].reset();
356
                        tableForm.fnDraw();
357
                    }
358
                    return;
359
                } else {
360
                    $.fn.showError(response['message'] || 'ERROR_UNKNOWN');
361
                    return;
362
                }
363
            });
364
        }
365
    }
366
    /**
367
     * Remove Html Tags
368
     */
369
    const removeTags = (str) => str.toString().replace(/(<([^>]+)>)/ig, '')
1389 eleazar 370
 
371
 
1384 efrain 372
    /**
373
     * Remove Option
374
     */
375
    const removeOption = (id_section, id) => {
376
        sections.map((item) => {
377
            if (item.id_section == id_section) {
378
                item.options = item.options.filter((opt) => opt.id_option != id) || []
379
            }
380
        });
381
        return renderData(sections);
382
    }
383
    /**
384
     * Clicked refresh button
385
     */
386
    $('button.btn-refresh').click(function(e) {
387
        tableForm.fnDraw();
388
        return;
389
    });
390
    /**
391
     * Initialize select Jobdescription
392
     */
393
    $('#job_description_id').select2({
394
        theme: 'bootstrap4',
395
        width: '100%',
396
    });
397
 
398
    /**
399
     * On change selecte JobDescription
400
     */
401
    $('#job_description_id').on('change', function() {
402
        if ($("#job_description_id").val() != '') {
403
            $.getJSON("/settings/jobs-description/edit/" + $("#job_description_id").val(), function(response) {
404
                if (response['success']) {
1394 eleazar 405
 
1384 efrain 406
                }
407
            });
408
        }
409
    });
410
 
411
     /**
412
     * Initialize select Jobcategory
413
     */
414
    $('#job_category_id').select2({
415
        theme: 'bootstrap4',
416
        width: '100%',
417
    });
418
     /**
419
     * On change selecte Jobcategory
420
     */
421
    $('#job_category_id').on('change', function() {
422
        if ($("#job_category_id").val() != '') {
423
            $.getJSON("/settings/job-categories/edit/" + $("#job_category_id").val(), function(response) {
424
                if (response['success']) {
1394 eleazar 425
 
1384 efrain 426
                }
427
            });
428
        }
429
    });
430
 
431
     /**
432
     * Initialize select industry
433
     */
434
    $('#industry_id').select2({
435
        theme: 'bootstrap4',
436
        width: '100%',
437
    });
438
      /**
439
     * On change selecte industry
440
     */
441
    $('#industry_id').on('change', function() {
442
        if ($("#industry_id").val() != '') {
443
            $.getJSON("/settings/industries/edit/" + $("#industry_id").val(), function(response) {
444
                if (response['success']) {
1394 eleazar 445
 
1384 efrain 446
                }
447
            });
448
        }
449
    });
450
     /**
451
     * Initialize select Location
452
     */
453
 
454
    var validatorLocation = $('#form-location').validate({
455
        debug: true,
456
        onclick: false,
457
        onkeyup: false,
458
        onfocusout: false,
459
        ignore: [],
460
        rules: {
461
            'location_search': {
462
                required: true,
463
                checkLocation: '#form-location #latitude'
464
            }
465
        },
466
        submitHandler: function(form)
467
        {
468
            NProgress.start();
469
            $.ajax({
470
                'dataType'  : 'json',
471
                'accept'    : 'application/json',
472
                'method'    : 'post',
473
                'url'       :  route_location,
474
                'data'      :  $('#form-location').serialize(),
475
            }).done(function(response) {
476
 
477
 
478
 
479
                if(response['success']) {
480
                    $('#overview-location').html(response.data);
481
                    $("#location-box").modal('hide');
482
                } else {
483
                    validatorLocation.resetForm();
484
                    $.fn.showError(response['data']);
485
                }
486
            }).fail(function( jqXHR, textStatus, errorThrown) {
487
                $.fn.showError(textStatus);
488
            }).always(function() {
489
                NProgress.done();
490
            });
491
            return false;
492
        },
493
        invalidHandler: function(form, validator) {
494
 
495
        }
496
    });
497
 
498
    $('body').on('click', 'a.btn-location-edit', function(e) {
499
        e.preventDefault();
500
 
501
        $('#form-location #location_search').val('');
502
        $('#form-location #formatted_address').val('');
503
        $('#form-location #address1').val('');
504
        $('#form-location #address2').val('');
505
        $('#form-location #country').val('');
506
        $('#form-location #state').val('');
507
        $('#form-location #city1').val('');
508
        $('#form-location #city2').val('');
509
        $('#form-location #postal_code').val('');
510
        $('#form-location #latitude').val('');
511
        $('#form-location #longitude').val('');
512
        validatorLocation.resetForm();
513
 
514
        $("#location-box").modal('show');
515
    });
516
 
517
    $('.btn-location-close').on("click", function(e){
518
        e.preventDefault();
519
 
520
        $("#location-box").modal('hide');
521
        return false;
522
    });
1391 eleazar 523
});
1384 efrain 524
JS;
525
 
526
$this->inlineScript()->captureEnd();
527
?>
528
<!-- Content Header (Page header) -->
529
<section class="content-header">
530
   <div class="container-fluid">
531
      <div class="row mb-2">
532
         <div class="col-sm-12">
533
            <h1>LABEL_RECRUITMENT_AND_SELECTION</h1>
534
         </div>
535
      </div>
536
   </div>
537
   <!-- /.container-fluid -->
538
</section>
539
<section class="content">
540
<div class="container-fluid" id="row-lists">
541
   <div class="row">
542
      <div class="col-12">
543
         <div class="card">
544
            <div class="card-body">
545
               <table id="gridTable" class="table   table-hover">
546
                  <thead>
547
                     <tr>
548
                        <th style="width:25%">LABEL_NAME</th>
549
                        <th style="width:20%">LABEL_JOB_DESCRIPTION</th>
550
                        <th style="width:10%">LABEL_ACTIVE</th>
551
                        <th style="width:25%">LABEL_ACTIONS</th>
552
                     </tr>
553
                  </thead>
554
                  <tbody></tbody>
555
               </table>
556
            </div>
557
            <div class="card-footer clearfix">
558
               <div style="float:right;">
559
                  <button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH </button>
560
                  <?php if ($allowAdd) : ?>
561
                  <button type="button" class="btn btn-primary btn-add-form"><i class="fa fa-plus"></i> LABEL_ADD </button>
562
                  <?php endif; ?>
563
               </div>
564
            </div>
565
         </div>
566
      </div>
567
   </div>
568
</div>
569
<!-- Create/Edit Form -->
570
<div class="row" id="row-form" style="display: none; padding: 16px;">
571
   <div class="col-xs-12 col-md-12">
572
      <form action="#" name="form-main" id="form-main">
573
         <div class="form-group">
574
            <label for="form-name">LABEL_FIRST_NAME</label>
575
            <input type="text" name="form-name" id="form-name" class="form-control" maxlength="50" />
576
         </div>
577
         <div class="form-group">
578
            <label for="job_description_id">LABEL_POSITION_EVALUATED</label>
579
            <select name="job_description_id" id="job_description_id" class="form-control">
580
               <option value="">LABEL_SELECT</option>
581
               <?php foreach ($jobsDescription as $rs): ?>
582
               <option value="<?php echo $rs->uuid;?>"><?php echo $rs->name;?></option>
583
               <?php endforeach; ?>
584
            </select>
585
         </div>
586
         <div class="form-group">
587
            <label for="form-location">LABEL_LOCATION</label>
588
            <input type="text" name="form-location" id="location_search" class="form-control" maxlength="50" />
589
         </div>
590
         <div class="form-group">
591
            <label for="job_category_id">LABEL_JOB_CATEGORY</label>
592
            <select name="job_category_id" id="job_category_id" class="form-control">
593
               <option value="">LABEL_SELECT</option>
594
               <?php foreach ($jobCategory as $rs): ?>
595
               <option value="<?php echo $rs->uuid;?>"><?php echo $rs->name;?></option>
596
               <?php endforeach; ?>
597
            </select>
598
         </div>
599
         <div class="form-group">
600
            <label for="job_description_id">LABEL_INDUSTRY</label>
601
            <select name="job_description_id" id="job_description_id" class="form-control">
602
               <option value="">LABEL_SELECT</option>
603
               <?php foreach ($industry as $rs): ?>
604
               <option value="<?php echo $rs->uuid;?>"><?php echo $rs->name;?></option>
605
               <?php endforeach; ?>
606
            </select>
607
         </div>
608
            <label for="form-description">LABEL_DESCRIPTION</label>
609
            <!--  ckeditor -->
610
            <textarea  name="form-description" id="form-description" rows="5" class="ckeditor form-control"></textarea>
611
         </div>
612
         <div class="form-group">
613
            <label for="form-status">LABEL_STATUS</label>
614
            <select name="form-status" id="form-status" class="form-control">
615
               <option value="<?php echo $status_inactive; ?>">LABEL_INACTIVE</option>
616
               <option value="<?php echo $status_active; ?>">LABEL_ACTIVE</option>
617
            </select>
618
         </div>
619
         <div class="row">
620
            <div class="col-xs-12 col-md-12 text-right">
621
               <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>
622
            </div>
623
         </div>
624
         <br />
625
         <div class="row">
626
            <div class="col-xs-12 col-md-12">
627
               <div class="panel-group" id="rows"></div>
628
            </div>
629
         </div>
1389 eleazar 630
 
1384 efrain 631
         <div class="form-group">
632
            <button type="button" form="form-main" class="btn btn-info btn-form-save-continue">LABEL_SAVE & LABEL_CONTINUE</button>
633
            <button type="button" class="btn btn-primary btn-form-save-close">LABEL_SAVE & LABEL_CLOSE</button>
634
            <button type="button" class="btn btn-secondary btn-edit-cancel">LABEL_CANCEL</button>
635
         </div>
636
      </form>
637
   </div>
638
</div>
639
<!-- Create/Edit Form-->
640
 
641
</section>