Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev Autor Línea Nro. Línea
1 www 1
<?php
2
$acl            = $this->viewModel()->getRoot()->getVariable('acl');
3
$currentUser    = $this->currentUserHelper();
4
 
5
$roleName = $currentUser->getUserTypeId();
6
 
7
 
8
$routeAdd       = $this->url('settings/competencies/add');
9
$routeDatatable = $this->url('settings/competencies');
28 efrain 10
$routeImport    = $this->url('settings/competencies/import');
1 www 11
 
28 efrain 12
$allowAdd       = $acl->isAllowed($roleName, 'settings/competencies/add') ? 1 : 0;
13
$allowEdit      = $acl->isAllowed($roleName, 'settings/competencies/edit') ? 1 : 0;
14
$allowDelete    = $acl->isAllowed($roleName, 'settings/competencies/delete') ? 1 : 0;
15
$allowImport    = $acl->isAllowed($roleName, 'settings/competencies/import') ? 1 : 0;
1 www 16
 
17
 
18
 
19
$this->headLink()->appendStylesheet($this->basePath('plugins/nprogress/nprogress.css'));
20
$this->inlineScript()->appendFile($this->basePath('plugins/nprogress/nprogress.js'));
21
 
22
$this->inlineScript()->appendFile($this->basePath('plugins/ckeditor/ckeditor.js'));
23
 
24
 
25
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/jquery.validate.js'));
26
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/additional-methods.js'));
27
$this->inlineScript()->appendFile($this->basePath('plugins/jquery-validation/localization/messages_es.js'));
28
 
29
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css'));
30
$this->headLink()->appendStylesheet($this->basePath('plugins/datatables-responsive/css/responsive.bootstrap4.min.css'));
31
 
32
$this->inlineScript()->appendFile($this->basePath('plugins/datatables/jquery.dataTables.min.js'));
33
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-bs4/js/dataTables.bootstrap4.min.js'));
34
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/dataTables.responsive.min.js'));
35
$this->inlineScript()->appendFile($this->basePath('plugins/datatables-responsive/js/responsive.bootstrap4.min.js'));
36
 
37
 
38
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap4-toggle/css/bootstrap4-toggle.min.css'));
39
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap4-toggle/js/bootstrap4-toggle.min.js'));
40
 
41
$this->inlineScript()->appendFile($this->basePath('plugins/bootstrap-confirmation/dist/bootstrap-confirmation.js'));
42
$this->headLink()->appendStylesheet($this->basePath('plugins/bootstrap-checkbox/awesome-bootstrap-checkbox.css'));
43
 
44
$this->inlineScript()->appendFile($this->basePath('plugins/select2/js/select2.js'));
45
$this->inlineScript()->appendFile($this->basePath('plugins/select2/js/i18n/es.js'));
46
$this->headLink()->appendStylesheet($this->basePath('plugins/select2/css/select2.css'));
47
 
48
$this->headLink()->appendStylesheet($this->basePath('plugins/select2-bootstrap4-theme/select2-bootstrap4.css'));
49
 
50
 
51
 
52
$status_active = \LeadersLinked\Model\Competency::STATUS_ACTIVE;
53
 
54
$this->inlineScript()->captureStart();
55
echo <<<JS
56
    jQuery( document ).ready(function( $ ) {
57
 
58
$.validator.setDefaults({
59
            debug: true,
60
            highlight: function(element) {
61
                $(element).addClass('is-invalid');
62
            },
63
            unhighlight: function(element) {
64
                $(element).removeClass('is-invalid');
65
            },
66
            errorElement: 'span',
67
            errorClass: 'error invalid-feedback',
68
            errorPlacement: function(error, element) {
54 steven 69
                const child = element.children(':first-child');
61 steven 70
                if(element[0].localName == 'input'){
64 steven 71
                    let _error = error
72
                    _error[0].style.display = 'block'
63 steven 73
                    _error.insertBefore(element);
61 steven 74
                }
75
                else if(element.parent('.form-group').length) {
1 www 76
                    error.insertAfter(element);
77
                } else if(element.parent('.toggle').length) {
78
                    error.insertAfter(element.parent().parent());
79
                } else {
80
                    error.insertAfter(element.parent());
81
                }
82
            }
83
        });
84
 
85
 
86
        $.fn.showFormErrorValidator = function(fieldname, errors) {
87
            var field = $(fieldname);
88
            if(field) {
89
                $(field).addClass('is-invalid');
90
                var error = $('<span id="' + fieldname +'-error" class="error invalid-feedback">' + errors + '</div>');
91
                if(field.parent('.form-group').length) {
92
                    error.insertAfter(field);
93
                } else  if(field.parent('.toggle').length) {
94
                    error.insertAfter(field.parent().parent());
95
                } else {
96
                    error.insertAfter(field.parent());
97
                }
98
            }
99
        };
100
 
101
 
102
 
103
 
104
        var allowEdit   = $allowEdit;
105
        var allowDelete = $allowDelete;
106
 
107
        var gridTable = $('#gridTable').dataTable( {
108
            'processing': true,
109
            'serverSide': true,
110
            'searching': true,
111
            'order': [[ 0, 'asc' ]],
112
            'ordering':  true,
113
            'ordenable' : true,
114
            'responsive': true,
115
            'select' : false,
116
        	'paging': true,
117
            'pagingType': 'simple_numbers',
118
    		'ajax': {
119
    			'url' : '$routeDatatable',
120
    			'type' : 'get',
121
                'beforeSend': function (request) {
122
                  NProgress.start();
123
                },
124
                'dataFilter': function(response) {
125
                    var response = jQuery.parseJSON( response );
126
 
127
                    var json                = {};
128
                    json.recordsTotal       = 0;
129
                    json.recordsFiltered    = 0;
130
                    json.data               = [];
131
 
132
 
133
                    if(response.success) {
134
                        json.recordsTotal       = response.data.total;
135
                        json.recordsFiltered    = response.data.total;
136
                        json.data               = response.data.items;
137
                    } else {
138
                        $.fn.showError(response.data)
139
                    }
140
 
141
                    return JSON.stringify( json );
142
                }
143
    		},
144
            'language' : {
145
                'sProcessing':     'LABEL_DATATABLE_SPROCESSING',
146
                'sLengthMenu':     'LABEL_DATATABLE_SLENGTHMENU',
147
                'sZeroRecords':    'LABEL_DATATABLE_SZERORECORDS',
148
                'sEmptyTable':     'LABEL_DATATABLE_SEMPTYTABLE',
149
                'sInfo':           'LABEL_DATATABLE_SINFO',
150
                'sInfoEmpty':      'LABEL_DATATABLE_SINFOEMPTY',
151
                'sInfoFiltered':   'LABEL_DATATABLE_SINFOFILTERED',
152
                'sInfoPostFix':    '',
153
                'sSearch':         'LABEL_DATATABLE_SSEARCH',
154
                'sUrl':            '',
155
                'sInfoThousands':  ',',
156
                'sLoadingRecords': 'LABEL_DATATABLE_SLOADINGRECORDS',
157
                'oPaginate': {
158
                    'sFirst':    'LABEL_DATATABLE_SFIRST',
159
                    'sLast':     'LABEL_DATATABLE_SLAST',
160
                    'sNext':     'LABEL_DATATABLE_SNEXT',
161
                    'sPrevious': 'LABEL_DATATABLE_SPREVIOUS'
162
                },
163
                'oAria': {
164
                    'sSortAscending':  ': LABEL_DATATABLE_SSORTASCENDING',
165
                    'sSortDescending': ':LABEL_DATATABLE_SSORTDESCENDING'
166
                },
167
            },
168
            'drawCallback': function( settings ) {
169
                NProgress.done();
170
                $('button.btn-delete').confirmation({
171
                    rootSelector: 'button.btn-delete',
172
                    title : 'LABEL_ARE_YOU_SURE',
173
                    singleton : true,
174
                    btnOkLabel: 'LABEL_YES',
175
                    btnCancelLabel: 'LABEL_NO',
176
                    onConfirm: function(value) {
177
                        action = $(this).data('href');
178
                        NProgress.start();
179
                        $.ajax({
180
                            'dataType'  : 'json',
181
                            'accept'    : 'application/json',
182
                            'method'    : 'post',
183
                            'url'       :  action,
184
                        }).done(function(response) {
185
                            if(response['success']) {
186
                                $.fn.showSuccess(response['data']);
187
                                gridTable.api().ajax.reload(null, false);
188
                            } else {
189
                                $.fn.showError(response['data']);
190
                            }
191
                        }).fail(function( jqXHR, textStatus, errorThrown) {
192
                            $.fn.showError(textStatus);
193
                        }).always(function() {
194
                            NProgress.done();
195
                        });
196
                    },
197
                });
198
            },
199
            'aoColumns': [
200
                { 'mDataProp': 'type' },
201
                { 'mDataProp': 'name' },
202
                { 'mDataProp': 'status' },
203
                { 'mDataProp': 'actions' },
204
    	    ],
205
            'columnDefs': [
206
                {
207
                    'targets': 0,
208
                    'className' : 'text-vertical-middle',
209
                },
210
                {
211
                    'targets': 1,
212
                    'className' : 'text-vertical-middle',
213
                },
214
                {
215
                    'targets': -2,
216
                    'orderable': false,
217
                    'className' : 'text-center',
218
                      'render' : function ( data, type, row ) {
219
 
220
                        checked = data == 'a' ? ' checked="checked" ' : '';
221
                        return '<div class="checkbox checkbox-success">' +
222
                            '<input class="styled" type="checkbox" ' + checked + ' disabled="disabled">' +
223
                            '<label ></label></div>';
224
                    }
225
                },
226
                {
227
                    'targets': -1,
228
                    'orderable': false,
229
                    'render' : function ( data, type, row ) {
230
                        s = '';
231
 
232
                        if(allowEdit) {
233
                            s = s + '<button class="btn btn-primary btn-edit" data-href="' + data['link_edit']+ '" data-toggle="tooltip" title="LABEL_EDIT"><i class="fa fa-pencil"></i> LABEL_EDIT </button>&nbsp;';
234
                        }
235
                        if(allowDelete) {
236
                            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;';
237
                        }
238
                        return s;
239
                    }
240
                }
241
              ],
242
        });
243
 
244
 
245
        var validator = $('#form').validate({
246
            debug: true,
247
            onclick: false,
248
            onkeyup: false,
249
            ignore: [],
250
            rules: {
251
                'competency_type_id': {
252
                    required: true,
253
                },
254
                'name': {
255
                    required: true,
256
                    maxlength:128,
257
                },
258
                'description': {
259
                    updateCkeditor:function() {
260
                        CKEDITOR.instances.description.updateElement();
261
                    },
262
                    required: true,
263
                },
28 efrain 264
 
1 www 265
                'status': {
266
                    required: false,
267
 
268
                },
269
            },
270
            submitHandler: function(form)
271
            {
272
                $.ajax({
273
                    'dataType'  : 'json',
274
                    'accept'    : 'application/json',
275
                    'method'    : 'post',
276
                    'url'       :  $('#form').attr('action'),
277
                    'data'      :  $('#form').serialize()
278
                }).done(function(response) {
279
                    NProgress.start();
280
                    if(response['success']) {
281
                        $.fn.showSuccess(response['data']);
282
 
283
                        $('#modal').modal('hide');
284
 
285
 
286
                         gridTable.api().ajax.reload(null, false);
287
                    } else {
288
                        validator.resetForm();
289
                        if(jQuery.type(response['data']) == 'string') {
290
                            $.fn.showError(response['data']);
291
                        } else  {
292
                            $.each(response['data'], function( fieldname, errors ) {
293
                                $.fn.showFormErrorValidator('#form #' + fieldname, errors);
294
                            });
295
                        }
296
                    }
297
                }).fail(function( jqXHR, textStatus, errorThrown) {
298
                   $.fn.showError(textStatus);
299
                }).always(function() {
300
                    NProgress.done();
301
                });
302
                return false;
303
            },
304
            invalidHandler: function(form, validator) {
305
 
306
            }
307
        });
308
 
309
        $('body').on('click', 'button.btn-add', function(e) {
310
            e.preventDefault();
311
 
312
            $('span[id="form-title"]').html('LABEL_ADD');
313
            $('#form').attr('action', '$routeAdd');
314
            $('#form #name').val('');
315
            $('#form #competency_type_id').val('').trigger('change');
316
            $('#form #status').bootstrapToggle('on');
317
            CKEDITOR.instances.description.setData('');
318
 
319
            validator.resetForm();
320
            $('#modal').modal('show');
28 efrain 321
 
322
            return false;
1 www 323
        });
324
 
325
        $('body').on('click', 'button.btn-edit', function(e) {
326
            e.preventDefault();
327
            NProgress.start();
328
            var action = $(this).data('href');
329
 
330
            $.ajax({
331
                'dataType'  : 'json',
332
                'method'    : 'get',
333
                'url'       :  action,
334
            }).done(function(response) {
335
                if(response['success']) {
336
 
337
                    $('span[id="form-title"]').html('LABEL_EDIT');
338
                    $('#form').attr('action', action);
339
                    $('#form #name').val(response['data']['name']);
340
                    $('#form #competency_type_id').val(response['data']['competency_type_id']).trigger('change');
341
                    $('#form #status').bootstrapToggle(response['data']['status'] == '$status_active' ? 'on' : 'off')
342
                    CKEDITOR.instances.description.setData(response['data']['description']);
343
                    validator.resetForm();
344
 
345
                    $('#modal').modal('show');
346
 
347
                } else {
348
                    $.fn.showError(response['data']);
349
                }
350
            }).fail(function( jqXHR, textStatus, errorThrown) {
351
                $.fn.showError(textStatus);
352
            }).always(function() {
353
                NProgress.done();
354
            });
28 efrain 355
 
356
            return false;
1 www 357
        });
358
 
359
        $('body').on('click', 'button.btn-refresh', function(e) {
360
            e.preventDefault();
361
            gridTable.api().ajax.reload(null, false);
28 efrain 362
 
363
            return false;
1 www 364
        });
28 efrain 365
 
366
        $('body').on('click', 'button.btn-import', function(e) {
367
            e.preventDefault();
368
 
369
            NProgress.start();
370
 
371
 
372
            $.ajax({
373
                'dataType'  : 'json',
374
                'method'    : 'post',
375
                'url'       : '$routeImport',
376
            }).done(function(response) {
377
                if(response['success']) {
378
                    $.fn.showSuccess(response['data']);
379
                    gridTable.api().ajax.reload(null, false);
380
                } else {
381
                    $.fn.showError(response['data']);
382
                }
383
            }).fail(function( jqXHR, textStatus, errorThrown) {
384
                $.fn.showError(textStatus);
385
            }).always(function() {
386
                NProgress.done();
387
            });
388
 
389
            return false;
390
        });
1 www 391
 
392
 
393
        $('body').on('click', 'button.btn-cancel', function(e) {
394
            e.preventDefault();
395
            $('#modal').modal('hide');
396
        });
397
 
398
        $('#form #competency_type_id').select2({
399
            theme: 'bootstrap4',
400
            width: '100%',
401
        });
402
 
403
 
404
 
405
        $('#form #status').bootstrapToggle({'on' : 'LABEL_ACTIVE',  'off' : 'LABEL_INACTIVE', 'width' : '160px', 'height' : '40px'});
28 efrain 406
        CKEDITOR.replace( 'description' );
862 geraldo 407
 
408
 
409
     /**
410
     * Clicked on add new conduct
411
     */
412
    $('body').on('click', 'button[id="btn-add-conduct"]', function(e) {
413
        e.preventDefault();
414
        validatorFormSection.resetForm();
415
        $('#form-conduct #conduct-id').val('');
416
        $('#form-conduct #conduct-description').val('');
417
        $('#form-conduct #conduct-level').val('0');
418
        $('#modal-conduct h4[class="modal-title"]').html('LABEL_ADD LABEL_CONDUCT');
419
        $('#modal-conduct').modal('show');
1 www 420
    });
862 geraldo 421
    /**
422
     * Clicked on edit conduct
423
     */
424
    $('body').on('click', 'button.btn-edit-conduct', function(e) {
425
        e.preventDefault();
426
        var slug = $(this).data('conduct');
427
        var conduct;
428
        var showForm = false;
429
        for (i = 0; i < objFormGenerator.conducts.length; i++) {
430
            conduct = objFormGenerator.conducts[i];
431
            if (slug == conduct.slug_conduct) {
432
                validatorFormSection.resetForm();
433
                $('#form-conduct #conduct-id').val(conduct.slug_conduct);
434
                $('#form-conduct #conduct-description').val(conduct.description);
435
                $('#form-conduct #conduct-level').val(conduct.level);
436
                return;
437
            }
438
        }
439
        if (showForm) {
440
            $('#modal-conduct h4[class="modal-title"]').html('LABEL_EDIT LABEL_CONDUCT');
441
            $('#modal-conduct').modal('show');
442
        }
443
    });
444
    /**
445
     * Clicked on remove conduct
446
     */
447
    $('body').on('click', 'button.btn-delete-conduct', function(e) {
448
        e.preventDefault();
449
        var slug = $(this).data('conduct');
450
        bootbox.confirm({
451
            title: "LABEL_DELETE LABEL_CONDUCT",
452
            message: "LABEL_QUESTION_DELETE",
453
            buttons: {
454
                cancel: {
455
                    label: '<i class="fa fa-times"></i> LABEL_CANCEL'
456
                },
457
                confirm: {
458
                    label: '<i class="fa fa-check"></i> LABEL_ACCEPT'
459
                }
460
            },
461
            callback: function(result) {
462
                if (result) {
463
 
464
                }
465
            }
466
        });
467
    });
468
 
469
 
470
    });
1 www 471
JS;
472
$this->inlineScript()->captureEnd();
473
?>
474
 
475
 
476
 
477
 
478
 
479
<!-- Content Header (Page header) -->
480
<section class="content-header">
481
	<div class="container-fluid">
482
    	<div class="row mb-2">
483
        	<div class="col-sm-12">
484
            	<h1>LABEL_COMPETENCIES</h1>
485
			</div>
486
		</div>
487
	</div><!-- /.container-fluid -->
488
</section>
489
 
490
<section class="content">
491
	<div class="container-fluid">
492
    	<div class="row">
493
        	<div class="col-12">
494
				<div class="card">
495
					<div class="card-body">
20 steven 496
        	    		<table id="gridTable" class="table   table-hover">
1 www 497
                      		<thead>
498
        						<tr>
499
        							<th>LABEL_TYPE</th>
500
                                	<th>LABEL_NAME</th>
501
                                  	<th>LABEL_ACTIVE</th>
502
                                  	<th>LABEL_ACTIONS</th>
503
                                </tr>
504
                       		</thead>
505
                         	<tbody>
506
                         	</tbody>
507
                    	</table>
508
                   	</div>
509
                   	<div class="card-footer clearfix">
510
                   		<div style="float:right;">
511
							<button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH  </button>
28 efrain 512
							<?php if($allowImport) : ?>
513
							<button type="button" class="btn btn-primary btn-import"><i class="fa fa-upload"></i> LABEL_IMPORT </button>
514
							<?php endif; ?>
1 www 515
							<?php if($allowAdd) : ?>
516
							<button type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i> LABEL_ADD </button>
517
							<?php endif; ?>
518
						</div>
519
                 	</div>
520
          		</div>
521
           	</div>
522
        </div>
523
 	</div>
524
</section>
525
 
526
<!-- The Modal -->
527
<div class="modal" id="modal">
528
	<div class="modal-dialog  modal-xl">
529
    	<div class="modal-content">
530
 
531
            <!-- Modal Header -->
532
      		<div class="modal-header">
533
        		<h4 class="modal-title">LABEL_COMPETENCIES - <span id="form-title"></span></h4>
534
        		<button type="button" class="close" data-dismiss="modal">&times;</button>
535
      		</div>
536
 
537
            <!-- Modal body -->
538
      		<div class="modal-body">
539
       			 <?php
540
                    $form = $this->form;
541
            		$form->setAttributes([
542
                        'method'    => 'post',
543
                        'name'      => 'form',
544
                        'id'        => 'form'
545
                    ]);
546
 
547
                    $form->prepare();
548
                    echo $this->form()->openTag($form);
47 steven 549
                    ?>
550
                        <div
551
                            class="row"
552
                        >
58 steven 553
                            <div class="col-md-4 col-sm-12 col-12">
49 steven 554
                                <div class="form-group m-0">
47 steven 555
                                   <?php
49 steven 556
                                        $element = $form->get('competency_type_id');
557
                                        $element->setOptions(['label' => 'LABEL_TYPE']);
558
 
559
                                        echo $this->formLabel($element);
560
                                        echo $this->formSelect($element);
47 steven 561
                                   ?>
562
                               </div>
563
                            </div>
58 steven 564
                            <div class="col-md-6 col-sm-12 col-12">
49 steven 565
                                <div class="form-group m-0">
47 steven 566
                                    <?php
49 steven 567
                                        $element = $form->get('name');
568
                                        $element->setOptions(['label' => 'LABEL_NAME']);
569
                                        $element->setAttributes(['class' => 'form-control']);
570
 
571
                                        echo $this->formLabel($element);
572
                                        echo $this->formText($element);
47 steven 573
                                    ?>
574
                                </div>
575
                            </div>
576
                            <div
577
                                class="col-md col-sm-12 col-12 d-flex align-items-center justify-content-center"
578
                            >
579
                                <div class="form-group m-0">
580
                                    <label>LABEL_STATUS</label>
581
                                    <br />
582
                                    <?php
583
                                        $element = $form->get('status');
584
                                        $element->setOptions(['label' => 'LABEL_STATUS']);
585
                                        // echo $this->formLabel($element);
586
                                        echo $this->formCheckbox($element);
587
                                    ?>
588
                                </div>
589
                            </div>
48 steven 590
                        </div>
591
                        <div
592
                            class="row"
593
                        >
594
                            <div class="col-md col-sm-12 col-12">
595
                                <div class="form-group">
596
                                    <?php
597
                                        $element = $form->get('description');
598
                                        $element->setOptions(['label' => 'LABEL_DESCRIPTION']);
599
                                        $element->setAttributes(['class' => 'form-control']);
600
 
601
                                        echo $this->formLabel($element);
602
                                        echo $this->formTextArea($element);
603
                                    ?>
604
                                </div>
605
                            </div>
858 geraldo 606
 
48 steven 607
                        </div>
608
                        <?php echo $this->form()->closeTag($form); ?>
861 geraldo 609
                        <br/>
860 geraldo 610
                <div class="row">
611
                    <div class="col-xs-12 col-md-12 text-right">
862 geraldo 612
                        <button class="btn btn-primary" id="btn-add-conduct" data-toggle="tooltip" title="LABEL_ADD LABEL_CONDUCT"><i class="fa fa-plus" aria-hidden="true"></i> LABEL_ADD LABEL_CONDUCT</button>
860 geraldo 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>
861 geraldo 621
                    </div>
622
 
48 steven 623
 
1 www 624
            <!-- Modal footer -->
48 steven 625
            <div class="modal-footer">
626
                <button type="submit" form="form" class="btn btn-primary">LABEL_SAVE</button>
1 www 627
        		<button type="button" class="btn btn-danger" data-dismiss="modal">Cerrar</button>
628
      		</div>
629
 
630
    	</div>
631
	</div>
632
</div>
633
 
634
 
861 geraldo 635
<div  id="modal-conduct" class="modal" tabindex="-1" role="dialog">
636
   <div class="modal-dialog modal-lg" role="document">
637
      <form action="#" name="form-conduct" id="form-conduct">
862 geraldo 638
         <input type="hidden" name="conduct-id" id="conduct-id" value="" />
861 geraldo 639
         <div class="modal-content">
640
            <div class="modal-header">
641
               <h4 class="modal-title">LABEL_ADD LABEL_CONDUCT</h4>
642
               <button type="button" class="close" data-dismiss="modal" aria-label="Close">
643
               <span aria-hidden="true">&times;</span>
644
               </button>
645
            </div>
646
            <div class="modal-body">
647
               <div class="form-group">
648
                  <label for="conduct-name">LABEL_DESCRIPTION</label>
649
                  <input type="text" name="conduct-name" id="conduct-name" class="form-control" maxlength="50" value="" />
650
               </div>
651
               <div class="form-group">
652
                  <label for="conduct-value">LABEL_NIVEL</label>
653
                  <select class="form-control">
654
                     <option value="0">No aplica</option>
655
                     <option value="1" selected="">Uno</option>
656
                     <option value="2">Dos</option>
657
                     <option value="3">Tres</option>
658
                     <option value="4">Cuatro</option>
659
                  </select>
660
               </div>
661
            </div>
662
            <div class="modal-footer">
663
               <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
664
               <button type="button" class="btn btn-secondary" data-dismiss="modal">LABEL_CLOSE</button>
665
            </div>
666
         </div>
667
      </form>
668
   </div>
669
</div>
670
 
1 www 671