Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 889 Rev 890
Línea 494... Línea 494...
494
    const renderData = (data) => $("#rows").html($("#behaviorTemplate").render(data));
494
    const renderData = (data) => $("#rows").html($("#behaviorTemplate").render(data));
495
});
495
});
496
JS;
496
JS;
497
$this->inlineScript()->captureEnd();
497
$this->inlineScript()->captureEnd();
498
?>
498
?>
499
  
-
 
500
			
499
  	
501
			
-
 
502
			
-
 
503
			
-
 
504
<!-- Content Header (Page header) -->
500
<!-- Content Header (Page header) -->
505
<section class="content-header">
501
<section class="content-header">
506
	<div class="container-fluid">
502
   <div class="container-fluid">
507
    	<div class="row mb-2">
503
      <div class="row mb-2">
508
        	<div class="col-sm-12">
504
         <div class="col-sm-12">
509
            	<h1>LABEL_COMPETENCIES</h1>
505
            <h1>LABEL_COMPETENCIES</h1>
-
 
506
         </div>
510
			</div>
507
      </div>
511
		</div>
508
   </div>
512
	</div><!-- /.container-fluid -->
509
   <!-- /.container-fluid -->
513
</section>
510
</section>
514
 
-
 
515
<section class="content" id="row-list">
511
<section class="content" id="row-list">
516
	<div class="container-fluid">
512
   <div class="container-fluid">
517
    	<div class="row">
513
      <div class="row">
518
        	<div class="col-12">
514
         <div class="col-12">
519
				<div class="card">                    
515
            <div class="card">
520
					<div class="card-body">
516
               <div class="card-body">
521
        	    		<table id="gridTable" class="table   table-hover">
517
                  <table id="gridTable" class="table   table-hover">
522
                      		<thead>
518
                     <thead>
523
        						<tr>
519
                        <tr>
524
        							<th>LABEL_TYPE</th>
520
                           <th>LABEL_TYPE</th>
525
                                	<th>LABEL_NAME</th>
521
                           <th>LABEL_NAME</th>
526
                                  	<th>LABEL_ACTIVE</th>
522
                           <th>LABEL_ACTIVE</th>
527
                                  	<th>LABEL_ACTIONS</th>
523
                           <th>LABEL_ACTIONS</th>
528
                                </tr>
524
                        </tr>
529
                       		</thead>
525
                     </thead>
530
                         	<tbody>
526
                     <tbody>
531
                         	</tbody>
527
                     </tbody>
532
                    	</table>
528
                  </table>
533
                   	</div>
529
               </div>
534
                   	<div class="card-footer clearfix">
530
               <div class="card-footer clearfix">
535
                   		<div style="float:right;">
531
                  <div style="float:right;">
536
							<button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH  </button>
532
                     <button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH  </button>
537
							<?php if($allowImport) : ?>
533
                     <?php if($allowImport) : ?>
538
							<button type="button" class="btn btn-primary btn-import"><i class="fa fa-upload"></i> LABEL_IMPORT </button>
534
                     <button type="button" class="btn btn-primary btn-import"><i class="fa fa-upload"></i> LABEL_IMPORT </button>
539
							<?php endif; ?>
535
                     <?php endif; ?>
540
							<?php if($allowAdd) : ?>
536
                     <?php if($allowAdd) : ?>
541
							<button type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i> LABEL_ADD </button>
537
                     <button type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i> LABEL_ADD </button>
542
							<?php endif; ?>
538
                     <?php endif; ?>
543
						</div>
539
                  </div>
544
                 	</div>
540
               </div>
545
          		</div>
541
            </div>
546
           	</div>     
542
         </div>
547
        </div>          
543
      </div>
548
 	</div>
544
   </div>
549
</section> 	
545
</section>
Línea 550... Línea 546...
550
 
546
 
-
 
547
<!-- The Form creation -->
551
<!-- The Form creation -->
548
 
552
<section class="content" id="row-form" style="display: none">
549
<section class="content" id="row-form" style="display: none">
553
   <div class="container-fluid">
550
   <div class="container-fluid">
554
      <div class="row">
551
   <div class="row">
555
      <div class="col-md-12 col-sm-12 col-12">
552
   <div class="col-md-12 col-sm-12 col-12">
556
         <div class="panel">
-
 
557
            
-
 
558
            <!-- Modal body -->
553
      <div class="panel">
559
            <div class="panel-body">
554
         <div class="panel-body">
560
               <?php 
555
            <?php 
561
                  $form = $this->form;
556
               $form = $this->form;
562
                  $form->setAttributes([
557
               $form->setAttributes([
563
                      'method'    => 'post',
558
                   'method'    => 'post',
564
                      'name'      => 'form',
559
                   'name'      => 'form',
565
                      'id'        => 'form'
560
                   'id'        => 'form'
566
                  ]);
561
               ]);
567
                  
562
               
568
                  $form->prepare();
563
               $form->prepare();
569
                  echo $this->form()->openTag($form);
564
               echo $this->form()->openTag($form);
570
                  ?>
565
               ?>
571
               <div   class="row">
566
            <div   class="row">
572
                  <div class="col-md-4 col-sm-12 col-12">
567
               <div class="col-md-4 col-sm-12 col-12">
573
                     <div class="from-group">
568
                  <div class="from-group">
574
                        <?php 
569
                     <?php 
575
                           $element = $form->get('competency_type_id');
570
                        $element = $form->get('competency_type_id');
576
                           $element->setOptions(['label' => 'LABEL_TYPE']);
571
                        $element->setOptions(['label' => 'LABEL_TYPE']);
577
                                           
572
                                        
578
                           echo $this->formLabel($element);
573
                        echo $this->formLabel($element);
579
                           echo $this->formSelect($element);
574
                        echo $this->formSelect($element);
580
                           ?>
-
 
581
                     </div>
575
                        ?>
-
 
576
                  </div>
582
                  </div>
577
               </div>
583
                  <div class="col-md-4 col-sm-12 col-12">
578
               <div class="col-md-4 col-sm-12 col-12">
584
                     <div class="from-group">
579
                  <div class="from-group">
585
                        <?php 
580
                     <?php 
586
                           $element = $form->get('name');
581
                        $element = $form->get('name');
587
                           $element->setOptions(['label' => 'LABEL_NAME']);
582
                        $element->setOptions(['label' => 'LABEL_NAME']);
588
                           $element->setAttributes(['class' => 'form-control']); 
583
                        $element->setAttributes(['class' => 'form-control']); 
589
                                           
584
                                        
590
                           echo $this->formLabel($element);
585
                        echo $this->formLabel($element);
591
                           echo $this->formText($element);
586
                        echo $this->formText($element);
592
                           ?>
-
 
593
                     </div>
587
                        ?>
-
 
588
                  </div>
594
                  </div>
589
               </div>
595
                  <div class="col-md-4 col-sm-12 col-12">
590
               <div class="col-md-4 col-sm-12 col-12">
596
                     <div class="from-group">
591
                  <div class="from-group">
597
                        <label>LABEL_STATUS</label>
592
                     <label>LABEL_STATUS</label>
598
                        <br />
593
                     <br />
599
                        <?php 
594
                     <?php 
600
                           $element = $form->get('status');
595
                        $element = $form->get('status');
601
                           $element->setOptions(['label' => 'LABEL_STATUS']);
596
                        $element->setOptions(['label' => 'LABEL_STATUS']);
602
                           // echo $this->formLabel($element);
597
                        // echo $this->formLabel($element);
603
                           echo $this->formCheckbox($element);
598
                        echo $this->formCheckbox($element);
604
                           ?>
-
 
605
                     </div>
599
                        ?>
606
                  </div>
-
 
607
            
-
 
-
 
600
                  </div>
608
               
601
               </div>
609
                  <div class="col-md col-sm-12 col-12">
602
               <div class="col-md col-sm-12 col-12">
610
                     <div class="form-group">
603
                  <div class="form-group">
611
                        <?php
604
                     <?php
612
                           $element = $form->get('description');
605
                        $element = $form->get('description');
613
                           $element->setOptions(['label' => 'LABEL_DESCRIPTION']);
606
                        $element->setOptions(['label' => 'LABEL_DESCRIPTION']);
614
                           $element->setAttributes(['class' => 'form-control']); 
607
                        $element->setAttributes(['class' => 'form-control']); 
615
                           
608
                        
616
                           echo $this->formLabel($element);
609
                        echo $this->formLabel($element);
617
                           echo $this->formTextArea($element);
610
                        echo $this->formTextArea($element);
618
                           ?>
-
 
619
                     </div>
611
                        ?>
620
                  </div>
-
 
-
 
612
                  </div>
621
           
613
               </div>
622
               <?php echo $this->form()->closeTag($form); ?>
-
 
623
              
-
 
624
           
614
               <?php echo $this->form()->closeTag($form); ?>
625
                  <div class="col-xs-12 col-md-12 text-right">
615
               <div class="col-xs-12 col-md-12 text-right">
626
                     <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>
616
                  <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>
627
                  </div>
-
 
628
             
-
 
629
           
617
               </div>
630
                  <div class="col-xs-12 col-md-12">
618
               <div class="col-xs-12 col-md-12">
631
<br/>
619
                  <br/>
632
                  <div class="table-responsive">
620
                  <div class="table-responsive">
633
                    <table class="table table-bordered">
621
                     <table class="table table-bordered">
634
                        <thead>
622
                        <thead>
635
                            <tr>
-
 
636
 
623
                           <tr>
637
                                <th style="width: 40%;">LABEL_DESCRIPTION</th>
624
                              <th style="width: 40%;">LABEL_DESCRIPTION</th>
638
                                <th style="width: 20%;">LABEL_LEVEL</th>
625
                              <th style="width: 20%;">LABEL_LEVEL</th>
639
                                <th style="width: 20%;">LABEL_ACTIONS</th>
626
                              <th style="width: 20%;">LABEL_ACTIONS</th>
640
                            </tr>
627
                           </tr>
641
                        </thead>
-
 
642
                        
628
                        </thead>
643
                        <tbody id="rows"></tbody>
629
                        <tbody id="rows"></tbody>
644
                </table>
-
 
645
 
-
 
646
              
630
                     </table>
647
                  </div>
631
                  </div>
648
                  <div class="col-xs-12 col-md-12">
632
                  <div class="col-xs-12 col-md-12">
649
                  <div class="form-group">
633
                     <div class="form-group">
650
               <button type="submit" form="form" class="btn btn-primary">LABEL_SAVE</button>
634
                        <button type="submit" form="form" class="btn btn-primary">LABEL_SAVE</button>
-
 
635
                        <button type="button" class="btn btn-secondary btn-edit-cancel">LABEL_CANCEL</button>
651
               <button type="button" class="btn btn-secondary btn-edit-cancel">LABEL_CANCEL</button>
636
                     </div>
652
            </div>
637
                  </div>
653
                </div>
638
               </div>
654
            </div>
-
 
655
            <!-- Modal footer -->
-
 
656
           
639
            </div>
657
         </div>
640
         </div>
658
      </div>
-
 
659
                </div>
641
      </div>
660
   </div>
642
   </div>
Línea -... Línea 643...
-
 
643
</section>
-
 
644
 
Línea -... Línea 645...
-
 
645
<!---end form--->
661
</section>
646
 
662
 
647
 
663
 
648
<!--start modal conduct-->
664
<div  id="modal-conduct" class="modal" tabindex="-1" role="dialog">
649
<div  id="modal-conduct" class="modal" tabindex="-1" role="dialog">
665
   <div class="modal-dialog modal-lg" role="document">
650
   <div class="modal-dialog modal-lg" role="document">
Línea 679... Línea 664...
679
                  <input type="text" name="conduct-description" id="conduct-description" class="form-control" maxlength="50" value="" />
664
                  <input type="text" name="conduct-description" id="conduct-description" class="form-control" maxlength="50" value="" />
680
               </div>
665
               </div>
681
               <div class="form-group">
666
               <div class="form-group">
682
                  <label for="conduct-value">LABEL_LEVEL</label>
667
                  <label for="conduct-value">LABEL_LEVEL</label>
683
                  <select class="form-control" id="conduct-level" name="conduct-level">
668
                  <select class="form-control" id="conduct-level" name="conduct-level">
684
                  <option value="0">LABEL_NA</option>
669
                     <option value="0">LABEL_NA</option>
685
                                    <option value="1">LABEL_LEVEL_ONE</option>
670
                     <option value="1">LABEL_LEVEL_ONE</option>
686
                                    <option value="2">LABEL_LEVEL_TWO</option>
671
                     <option value="2">LABEL_LEVEL_TWO</option>
687
                                    <option value="3">LABEL_LEVEL_THREE</option>
672
                     <option value="3">LABEL_LEVEL_THREE</option>
688
                                    <option value="4">LABEL_LEVEL_FOUR</option>
673
                     <option value="4">LABEL_LEVEL_FOUR</option>
689
                  </select>
674
                  </select>
690
               </div>
675
               </div>
691
            </div>
676
            </div>
692
            <div class="modal-footer">
677
            <div class="modal-footer">
693
               <button type="button" class="btn btn-primary btn-conduct-submit">LABEL_SAVE</button>
678
               <button type="button" class="btn btn-primary btn-conduct-submit">LABEL_SAVE</button>
Línea 695... Línea 680...
695
            </div>
680
            </div>
696
         </div>
681
         </div>
697
      </form>
682
      </form>
698
   </div>
683
   </div>
699
</div>
684
</div>
-
 
685
<!---end modal conduct --->
-
 
686
 
-
 
687
 
-
 
688
<!--start template--->
Línea 700... Línea 689...
700
 
689
 
-
 
690
<script id="behaviorTemplate" type="text/x-jsrender">
-
 
691
   <tr>
-
 
692
       <td class="text-left">{{:description}}</td>
-
 
693
       <td>
-
 
694
          {{if level == '0'}} LABEL_NA {{/if}} 
-
 
695
          {{if level == '1' }} LABEL_LEVEL_ONE {{/if}} 
-
 
696
          {{if level == '2' }} LABEL_LEVEL_TWO {{/if}} 
-
 
697
          {{if level == '3' }} LABEL_LEVEL_THREE {{/if}} 
-
 
698
          {{if level == '4' }} LABEL_LEVEL_FOUR {{/if}} 
-
 
699
       </td>
-
 
700
   
-
 
701
       <td>
-
 
702
           <button class="btn btn-default btn-edit-conduct" data-conduct="{{:id}}" data-toggle="tooltip"  data-original-title="LABEL_EDIT"><i class="fa fa-edit" aria-hidden="true"></i> LABEL_EDIT</button>
-
 
703
           <button class="btn btn-default btn-delete-conduct" data-conduct="{{:id}}" data-toggle="tooltip"  data-original-title="LABEL_DELETE"><i class="fa fa-ban" aria-hidden="true"></i> LABEL_DELETE</button>   
-
 
704
       </td>
-
 
705
   </tr>
-
 
706
   
Línea 701... Línea -...
701
<script id="behaviorTemplate" type="text/x-jsrender">
-
 
702
 
-
 
703
                            <tr >
-
 
704
                                <td class="text-left">{{:description}}</td>
-
 
705
                                <td>
-
 
706
                                {{if level == '0'}} LABEL_NA {{/if}} 
-
 
707
                                   {{if level == '1' }} LABEL_LEVEL_ONE {{/if}} 
-
 
708
                                   {{if level == '2' }} LABEL_LEVEL_TWO {{/if}} 
-
 
709
                                   {{if level == '3' }} LABEL_LEVEL_THREE {{/if}} 
-
 
710
                                   {{if level == '4' }} LABEL_LEVEL_FOUR {{/if}} 
-
 
711
                                </td>
-
 
712
 
-
 
713
                                <td>
-
 
714
                                    <button class="btn btn-default btn-edit-conduct" data-conduct="{{:id}}" data-toggle="tooltip"  data-original-title="LABEL_EDIT"><i class="fa fa-edit" aria-hidden="true"></i> LABEL_EDIT</button>
-
 
715
                                    <button class="btn btn-default btn-delete-conduct" data-conduct="{{:id}}" data-toggle="tooltip"  data-original-title="LABEL_DELETE"><i class="fa fa-ban" aria-hidden="true"></i> LABEL_DELETE</button> 
-
 
716
                                    
-
 
717
                                </td>
-
 
718
                            </tr>
-
 
719
                          
707
</script>
720
                
708