Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 8362 | Rev 12135 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 8362 Rev 11960
Línea 393... Línea 393...
393
    }
393
    }
394
});
394
});
395
JS;
395
JS;
Línea 396... Línea 396...
396
 
396
 
-
 
397
$this->inlineScript()->captureEnd();
-
 
398
 
-
 
399
$js = <<<JS
-
 
400
	const backendVariables= {
-
 
401
        add_link: "$routeAdd",
-
 
402
        table_link: "$routeDatatable",
-
 
403
        dashboard_link: "$routeDashboard",
-
 
404
        permisions: {
-
 
405
            allowAdd: $allowAdd,
-
 
406
            allowDelete: $allowDelete,
-
 
407
            allowEdit: $allowEdit,
-
 
408
            allowReport: $allowReport
-
 
409
        }
-
 
410
	}	
-
 
411
JS;
-
 
412
 
-
 
413
$this->inlineScript()->appendScript($js);
-
 
414
$this->headLink()->appendStylesheet('/react-bundles/performance_evaluations/forms/main.css');
397
$this->inlineScript()->captureEnd();
415
$this->inlineScript()->appendFile('/react-bundles/performance_evaluations/forms/formsBundle.js');
-
 
416
?>
-
 
417
 
-
 
418
<div id="evaluations-forms">
-
 
419
</div>
398
?>
420
 
399
<!-- Content Header (Page header) -->
421
<!-- Content Header (Page header) -->
400
<section class="content-header">
422
<section class="content-header">
401
   <div class="container-fluid">
423
    <div class="container-fluid">
402
      <div class="row mb-2">
424
        <div class="row mb-2">
403
         <div class="col-sm-12">
425
            <div class="col-sm-12">
404
            <h1>LABEL_PERFORMANCE_EVALUATION</h1>
426
                <h1>LABEL_PERFORMANCE_EVALUATION</h1>
405
         </div>
427
            </div>
406
      </div>
428
        </div>
407
   </div>
429
    </div>
408
   <!-- /.container-fluid -->
430
    <!-- /.container-fluid -->
409
</section>
431
</section>
410
<section class="content">
432
<section class="content">
411
<div class="container-fluid" id="row-lists">
433
    <div class="container-fluid" id="row-lists">
412
   <div class="row">
434
        <div class="row">
413
      <div class="col-12">
435
            <div class="col-12">
414
         <div class="card">
436
                <div class="card">
415
            <div class="card-body">
437
                    <div class="card-body">
416
               <table id="gridTable" class="table   table-hover">
438
                        <table id="gridTable" class="table   table-hover">
417
                  <thead>
439
                            <thead>
418
                     <tr>
440
                                <tr>
419
                        <th style="width:25%">LABEL_NAME</th>
441
                                    <th style="width:25%">LABEL_NAME</th>
420
                        <th style="width:20%">LABEL_JOB_DESCRIPTION</th>
442
                                    <th style="width:20%">LABEL_JOB_DESCRIPTION</th>
421
                        <th style="width:10%">LABEL_ACTIVE</th>
443
                                    <th style="width:10%">LABEL_ACTIVE</th>
422
                        <th style="width:25%">LABEL_ACTIONS</th>
444
                                    <th style="width:25%">LABEL_ACTIONS</th>
423
                     </tr>
445
                                </tr>
424
                  </thead>
446
                            </thead>
425
                  <tbody></tbody>
447
                            <tbody></tbody>
426
               </table>
448
                        </table>
427
            </div>
449
                    </div>
428
            <div class="card-footer clearfix">
450
                    <div class="card-footer clearfix">
429
               <div style="float:right;">
451
                        <div style="float:right;">
430
                  <button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH </button>
452
                            <button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH </button>
431
                  <?php if ($allowAdd) : ?>
453
                            <?php if ($allowAdd) : ?>
432
                  <button type="button" class="btn btn-primary btn-add-form"><i class="fa fa-plus"></i> LABEL_ADD </button>
454
                                <button type="button" class="btn btn-primary btn-add-form"><i class="fa fa-plus"></i> LABEL_ADD </button>
433
                  <?php endif; ?>
455
                            <?php endif; ?>
434
               </div>
-
 
435
            </div>
-
 
436
         </div>
-
 
437
      </div>
-
 
438
   </div>
-
 
439
</div>
-
 
440
<!-- Create/Edit Form -->
-
 
441
<div class="row" id="row-form" style="display: none; padding: 16px;">
-
 
442
   <div class="col-xs-12 col-md-12">
-
 
443
      <form action="#" name="form-main" id="form-main">
-
 
444
         <div class="form-group">
-
 
445
            <label for="form-name">LABEL_FIRST_NAME</label>
-
 
446
            <input type="text" name="form-name" id="form-name" class="form-control" maxlength="50" />
-
 
447
         </div>
-
 
448
         <div class="form-group">
-
 
449
            <label for="job_description_id">LABEL_POSITION_EVALUATED</label>
-
 
450
            <select name="job_description_id" id="job_description_id" class="form-control">
-
 
451
               <option value="">LABEL_SELECT</option>
-
 
452
               <?php foreach ($jobsDescription as $rs): ?>
-
 
453
               <option value="<?php echo $rs->uuid;?>"><?php echo $rs->name;?></option>
-
 
454
               <?php endforeach; ?>
-
 
455
            </select>
-
 
456
         </div>
-
 
457
         <div class="form-group">
-
 
458
            <label for="form-description">LABEL_DESCRIPTION</label>
-
 
459
            <!--  ckeditor -->
-
 
460
            <textarea  name="form-description" id="form-description" rows="5" class="ckeditor form-control"></textarea>
-
 
461
         </div>
-
 
462
         <div class="form-group">
-
 
463
            <label for="form-status">LABEL_STATUS</label>
-
 
464
            <select name="form-status" id="form-status" class="form-control">
-
 
465
               <option value="<?php echo $status_inactive; ?>">LABEL_INACTIVE</option>
-
 
466
               <option value="<?php echo $status_active; ?>">LABEL_ACTIVE</option>
-
 
467
            </select>
-
 
468
         </div>
-
 
469
       
-
 
470
         <br />	
-
 
471
         <div class="row">
-
 
472
            <div class="col-xs-12 col-md-12">
-
 
473
               <div class="panel-group" id="rows"></div>
-
 
474
            </div>
-
 
475
         </div>
-
 
476
         <div class="form-group" id="competencies-to-job" style="display:none">
-
 
477
            <div class="row">
-
 
478
               <div class="col-xs-12 col-md-12">
-
 
479
                  <hr>
-
 
480
                  <h4 style="font-size: 18px;font-weight: bold;">LABEL_COMPETENCIES_TO_JOB:</h4>
456
                        </div>
481
                  <br>
-
 
482
                  <div class="panel-group" id="rows-job-competencies"></div>
457
                    </div>
483
               </div>
458
                </div>
484
            </div>
459
            </div>
-
 
460
        </div>
-
 
461
    </div>
-
 
462
    <!-- Create/Edit Form -->
-
 
463
    <div class="row" id="row-form" style="display: none; padding: 16px;">
-
 
464
        <div class="col-xs-12 col-md-12">
-
 
465
            <form action="#" name="form-main" id="form-main">
-
 
466
                <div class="form-group">
-
 
467
                    <label for="form-name">LABEL_FIRST_NAME</label>
-
 
468
                    <input type="text" name="form-name" id="form-name" class="form-control" maxlength="50" />
-
 
469
                </div>
-
 
470
                <div class="form-group">
-
 
471
                    <label for="job_description_id">LABEL_POSITION_EVALUATED</label>
-
 
472
                    <select name="job_description_id" id="job_description_id" class="form-control">
-
 
473
                        <option value="">LABEL_SELECT</option>
-
 
474
                        <?php foreach ($jobsDescription as $rs) : ?>
-
 
475
                            <option value="<?php echo $rs->uuid; ?>"><?php echo $rs->name; ?></option>
-
 
476
                        <?php endforeach; ?>
-
 
477
                    </select>
-
 
478
                </div>
-
 
479
                <div class="form-group">
-
 
480
                    <label for="form-description">LABEL_DESCRIPTION</label>
-
 
481
                    <!--  ckeditor -->
-
 
482
                    <textarea name="form-description" id="form-description" rows="5" class="ckeditor form-control"></textarea>
-
 
483
                </div>
-
 
484
                <div class="form-group">
-
 
485
                    <label for="form-status">LABEL_STATUS</label>
-
 
486
                    <select name="form-status" id="form-status" class="form-control">
-
 
487
                        <option value="<?php echo $status_inactive; ?>">LABEL_INACTIVE</option>
-
 
488
                        <option value="<?php echo $status_active; ?>">LABEL_ACTIVE</option>
-
 
489
                    </select>
-
 
490
                </div>
-
 
491
 
-
 
492
                <br />
-
 
493
                <div class="row">
-
 
494
                    <div class="col-xs-12 col-md-12">
-
 
495
                        <div class="panel-group" id="rows"></div>
-
 
496
                    </div>
-
 
497
                </div>
-
 
498
                <div class="form-group" id="competencies-to-job" style="display:none">
-
 
499
                    <div class="row">
-
 
500
                        <div class="col-xs-12 col-md-12">
-
 
501
                            <hr>
-
 
502
                            <h4 style="font-size: 18px;font-weight: bold;">LABEL_COMPETENCIES_TO_JOB:</h4>
-
 
503
                            <br>
-
 
504
                            <div class="panel-group" id="rows-job-competencies"></div>
-
 
505
                        </div>
-
 
506
                    </div>
485
         </div>
507
                </div>
486
         <div class="form-group">
508
                <div class="form-group">
487
            <button type="button" form="form-main" class="btn btn-info btn-form-save-continue">LABEL_SAVE & LABEL_CONTINUE</button>
509
                    <button type="button" form="form-main" class="btn btn-info btn-form-save-continue">LABEL_SAVE & LABEL_CONTINUE</button>
488
            <button type="button" class="btn btn-primary btn-form-save-close">LABEL_SAVE & LABEL_CLOSE</button>
510
                    <button type="button" class="btn btn-primary btn-form-save-close">LABEL_SAVE & LABEL_CLOSE</button>
489
            <button type="button" class="btn btn-secondary btn-edit-cancel">LABEL_CANCEL</button>
511
                    <button type="button" class="btn btn-secondary btn-edit-cancel">LABEL_CANCEL</button>
490
         </div>
512
                </div>
491
      </form>
513
            </form>
492
   </div>
514
        </div>
493
</div>
515
    </div>
Línea 494... Línea 516...
494
<!-- Create/Edit Form-->
516
    <!-- Create/Edit Form-->
495
 
517
 
496
 
518
 
497
  <!---Template Competencies --->
519
    <!---Template Competencies --->
498
   <script id="sectionCompetencies" type="text/x-jsrender">
520
    <script id="sectionCompetencies" type="text/x-jsrender">
499
   <div class="panel panel-default" id="panel-{{:competency_id}}">
521
        <div class="panel panel-default" id="panel-{{:competency_id}}">
500
   <div class="panel-heading">
522
   <div class="panel-heading">
501
      <h4 class="panel-title" style="font-size: 18px;">
523
      <h4 class="panel-title" style="font-size: 18px;">
Línea 539... Línea 561...
539
      </div>
561
      </div>
540
   </div>
562
   </div>
541
</div>
563
</div>
542
   </script>
564
   </script>
543
    <!-- End Template Competencies-->
565
    <!-- End Template Competencies-->
544
   
566
 
545
</section>
567
</section>
546
568