Proyectos de Subversion LeadersLinked - Backend

Rev

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