Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 1389 Rev 1390
Línea 648... Línea 648...
648
         </div>
648
         </div>
649
      </form>
649
      </form>
650
   </div>
650
   </div>
651
</div>
651
</div>
652
<!-- Create/Edit Form-->
652
<!-- Create/Edit Form-->
653
<!-- section Modal -->
-
 
654
<div  id="modal-section" class="modal" tabindex="-1" role="dialog">
-
 
655
   <div class="modal-dialog modal-lg" role="document">
-
 
656
      <form action="#" name="form-section" id="form-section">
-
 
657
         <input type="hidden" name="id-section" id="id-section" />
-
 
658
         <div class="modal-content">
-
 
659
            <div class="modal-header">
-
 
660
               <h4 class="modal-title">LABEL_ADD LABEL_SECTION</h4>
-
 
661
               <button type="button" class="close" data-dismiss="modal" aria-label="Close">
-
 
662
               <span aria-hidden="true">&times;</span>
-
 
663
               </button>
-
 
664
            </div>
-
 
665
            <div class="modal-body">
-
 
666
               <div class="form-group">
-
 
667
                  <label for="title-section">LABEL_FIRST_NAME</label>
-
 
668
                  <input type="text" name="title-section" id="title-section" class="form-control" maxlength="50" value="" />
-
 
669
               </div>
-
 
670
               <div class="form-group">
-
 
671
                  <label for="text-section">LABEL_TEXT</label>
-
 
672
                  <textarea  name="text-section" id="text-section" rows="5" class="form-control"></textarea>
-
 
673
               </div>
-
 
674
               <div class="form-group">
-
 
675
                  <label for="type-section">LABEL_TYPE</label>
-
 
676
                  <select name="type-section" id="type-section" class="form-control">
-
 
677
                     <option value="simple">Simple</option>
-
 
678
                     <option value="multiple">Multiple</option>
-
 
679
                  </select>
-
 
680
               </div>
-
 
681
            </div>
-
 
682
            <div class="modal-footer">
-
 
683
               <button type="button" id="btn-save-section" class="btn btn-primary">LABEL_SAVE</button>
-
 
684
               <button type="button" class="btn btn-secondary" data-dismiss="modal">LABEL_CLOSE</button>
-
 
685
            </div>
-
 
686
         </div>
-
 
687
      </form>
-
 
688
   </div>
-
 
689
</div>
-
 
690
<!-- End Modal section -->
-
 
691
<!-- Modal Options -->
-
 
692
<div  id="modal-option" class="modal" tabindex="-1" role="dialog">
-
 
693
   <div class="modal-dialog modal-lg" role="document">
-
 
694
      <form action="#" name="form-option" id="form-option">
-
 
695
         <input type="hidden" name="section-option" id="section-option" value="" />
-
 
696
         <input type="hidden" name="id-option" id="id-option" value="" />
-
 
697
         <div class="modal-content">
-
 
698
            <div class="modal-header">
-
 
699
               <h4 class="modal-title">LABEL_OPTION</h4>
-
 
700
               <button type="button" class="close" data-dismiss="modal" aria-label="Close">
-
 
701
               <span aria-hidden="true">&times;</span>
-
 
702
               </button>
-
 
703
            </div>
-
 
704
            <div class="modal-body">
-
 
705
               <div class="form-group">
-
 
706
                  <label for="text-option">LABEL_TEXT</label>
-
 
707
                  <!--  ckeditor -->
-
 
708
                  <textarea  name="text-option" id="text-option" rows="5" class="form-control"></textarea>
-
 
709
               </div>
-
 
710
            </div>
-
 
711
            <div class="modal-footer">
-
 
712
               <button type="button" class="btn btn-primary" id="btn-save-option">LABEL_SAVE</button>
-
 
713
               <button type="button" class="btn btn-secondary" data-dismiss="modal">LABEL_CLOSE</button>
-
 
714
            </div>
-
 
715
         </div>
-
 
716
      </form>
-
 
717
   </div>
-
 
718
</div>
-
 
719
 
-
 
720
   <!-- End Modal Options -->
-
 
721
   <!---Template Sections --->
-
 
722
   <script id="sectionTemplate" type="text/x-jsrender">
-
 
723
   <div class="panel panel-default" id="panel-{{:id_section}}">
-
 
724
   <div class="panel-heading">
-
 
725
   <h4 class="panel-title" style="font-size: 18px;">
-
 
726
         <a class="accordion-toggle" data-toggle="collapse" aria-expanded="true" data-parent="#panel-{{:id_section}}" href="#collapse-{{:id_section}}">
-
 
727
         <span class="section-name{{:id_section}}">
-
 
728
         {{:title}}
-
 
729
         </span>
-
 
730
         </a>
-
 
731
      </h4>
-
 
732
   </div>
-
 
733
   <div id="collapse-{{:id_section}}" class="panel-collapse in collapse show">
-
 
734
      <div class="panel-body">
-
 
735
         <div class="table-responsive">
-
 
736
            <table class="table table-bordered">
-
 
737
               <thead>
-
 
738
                  <tr>
-
 
739
                     <th style="width: 10%;">LABEL_ELEMENT</th>
-
 
740
                     <th style="width: 30%;">LABEL_TEXT</th>
-
 
741
                     <th style="width: 10%;">LABEL_TYPE</th>
-
 
742
                     <th style="width: 50%;">LABEL_ACTIONS</th>
-
 
743
                  </tr>
-
 
744
               </thead>
-
 
745
               <tbody>
-
 
746
                  <tr>
-
 
747
                     <td class="text-left">LABEL_SECTION</td>
-
 
748
                     <td class="text-left">{{:title}}</td>
-
 
749
                     <td>
-
 
750
                        {{if type == 'simple'}} Simple {{/if}}
-
 
751
                        {{if type == 'multiple'}} Multiple {{/if}}
-
 
752
                     </td>
-
 
753
                     <td>
-
 
754
                        <button  type="button" class="btn btn-default btn-edit-section" data-section="{{:id_section}}" data-toggle="tooltip"  data-original-title="LABEL_EDIT LABEL_SECTION"><i class="fa fa-edit" aria-hidden="true"></i> LABEL_EDIT LABEL_SECTION </button>
-
 
755
                        <button  type="button" class="btn btn-default btn-delete-section" data-section="{{:id_section}}" data-toggle="tooltip"  data-original-title="LABEL_DELETE LABEL_SECTION"><i class="fa fa-ban" aria-hidden="true"></i> LABEL_DELETE LABEL_SECTION </button> 
-
 
756
                        {{if type == 'multiple'}}
-
 
757
                        <button type="button" class="btn btn-default btn-add-option" data-section="{{:id_section}}" data-toggle="tooltip"  data-original-title="LABEL_ADD  LABEL_OPTION"><i class="fa fa-plus" aria-hidden="true"></i> LABEL_ADD  LABEL_OPTION </button> 
-
 
758
                        {{/if}}
-
 
759
                     </td>
-
 
760
                  </tr>
-
 
761
                  {{for options}}
-
 
762
                  <tr >
-
 
763
                     <td class="text-left">--LABEL_OPTION</td>
-
 
764
                     <td class="text-left">
-
 
765
                        {{:title}}
-
 
766
                     </td>
-
 
767
                     <td></td>
-
 
768
                     <td>
-
 
769
                        <button type="button"  class="btn btn-default btn-edit-option" data-section="{{:id_section}}" data-option="{{:id_option}}" data-toggle="tooltip"  data-original-title="LABEL_EDIT LABEL_OPTION"><i class="fa fa-edit" aria-hidden="true"></i> LABEL_EDIT LABEL_OPTION</button> 
-
 
770
                        <button type="button" class="btn btn-default btn-delete-option" data-section="{{:id_section}}" data-option="{{:id_option}}" data-toggle="tooltip"  data-original-title="LABEL_DELETE LABEL_OPTION"><i class="fa fa-ban" aria-hidden="true"></i> LABEL_DELETE LABEL_OPTION</button> 
-
 
771
                     </td>
-
 
772
                  </tr>
-
 
773
                  {{/for}}
-
 
774
               </tbody>
-
 
775
            </table>
-
 
776
         </div>
-
 
777
      </div>
-
 
778
   </div>
-
 
779
</div>
-
 
780
   </script>
-
 
781
   <!-- End Template Sections-->
-
 
Línea 782... Línea -...
782
 
-
 
783
  <!---Template Competencies --->
-
 
784
   <script id="sectionCompetencies" type="text/x-jsrender">
-
 
785
   <div class="panel panel-default" id="panel-{{:competency_id}}">
-
 
786
   <div class="panel-heading">
-
 
787
      <h4 class="panel-title" style="font-size: 18px;">
-
 
788
         <a class="accordion-toggle" data-toggle="collapse" aria-expanded="true" data-parent="#panel-{{:competency_id}}" href="#collapse-{{:competency_id}}">
-
 
789
         <span class="competency-name{{:competency_id}}">
-
 
790
         {{:~getType(competency_type_id).name}} - {{:name}}
-
 
791
         </span>
-
 
792
         </a>
-
 
793
      </h4>
-
 
794
   </div>
-
 
795
   <div id="collapse-{{:competency_id}}" class="panel-collapse in collapse show">
-
 
796
      <div class="panel-body">
-
 
797
         <div class="table-responsive">
-
 
798
            <table class="table table-bordered">
-
 
799
               <thead>
-
 
800
                  <tr>
-
 
801
                     <th style="width: 80%;">LABEL_CONDUCT</th>
-
 
802
                     <th style="width: 20%;">LABEL_LEVEL</th>
-
 
803
                  </tr>
-
 
804
               </thead>
-
 
805
               <tbody>
-
 
806
                  {{for behaviors}}
-
 
807
                  <tr >
-
 
808
                     <td class="text-left">
-
 
809
                        {{:description}}
-
 
810
                     </td>
-
 
811
                     <td>
-
 
812
                        {{if level == '0'}} LABEL_NA {{/if}} 
-
 
813
                        {{if level == '1' }} LABEL_LEVEL_ONE {{/if}} 
-
 
814
                        {{if level == '2' }} LABEL_LEVEL_TWO {{/if}} 
-
 
815
                        {{if level == '3' }} LABEL_LEVEL_THREE {{/if}} 
-
 
816
                        {{if level == '4' }} LABEL_LEVEL_FOUR {{/if}} 
-
 
817
                     </td>
-
 
818
 
-
 
819
              
-
 
820
                  </tr>
-
 
821
                  {{/for}}
-
 
822
               </tbody>
-
 
823
            </table>
-
 
824
         </div>
-
 
825
      </div>
-
 
826
   </div>
-
 
827
</div>
-
 
828
   </script>
-
 
829
    <!-- End Template Competencies-->
-
 
830
   
653
 
831
</section>
654
</section>