Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 1237 Rev 1243
Línea 513... Línea 513...
513
                getType: filterTypeById
513
                getType: filterTypeById
514
            })) :
514
            })) :
515
            $("#competencies-job").html('');
515
            $("#competencies-job").html('');
516
    }
516
    }
517
    /**
517
    /**
518
     * Render Competencies data
518
     * Render Subordinate data
519
     */
519
     */
520
    const renderSubordinateData = (data) => {
520
    const renderSubordinateData = (data) => {
521
        data.length > 0 ?
521
        data.length > 0 ?
522
            $("#subordinate").html($("#sectionJob").render(data)) :
522
            $("#subordinate").html($("#sectionJob").render(data)) :
523
            $("#subordinate").html('');
523
            $("#subordinate").html('');
Línea 870... Línea 870...
870
</div>
870
</div>
871
<!---end modal behavior --->
871
<!---end modal behavior --->
Línea 872... Línea 872...
872
 
872
 
873
 <!---Template Competencies --->
873
 <!---Template Competencies --->
874
 <script id="sectionTemplate" type="text/x-jsrender">
874
 <script id="sectionTemplate" type="text/x-jsrender">
875
   <div class="panel panel-default" id="panel-{{:competency_id}}">
875
 <div class="panel panel-default" id="panel-{{:competency_id}}">
876
   <div class="panel-heading">
876
   <div class="panel-heading">
877
      <h4 class="panel-title" style="    font-size: 18px;">
877
      <h4 class="panel-title" style="    font-size: 18px;">
878
         <a class="accordion-toggle" data-toggle="collapse" aria-expanded="true" data-parent="#panel-{{:competency_id}}" href="#collapse-{{:competency_id}}">
878
         <a class="accordion-toggle" data-toggle="collapse" aria-expanded="true" data-parent="#panel-{{:competency_id}}" href="#collapse-{{:competency_id}}">
879
         <span class="section-name{{:competency_id}}">
879
         <span class="section-name{{:competency_id}}">
Línea 893... Línea 893...
893
                     <th style="width: 10%;">LABEL_LEVEL</th>
893
                     <th style="width: 10%;">LABEL_LEVEL</th>
894
                     <th style="width: 20%;">LABEL_ACTIONS</th>
894
                     <th style="width: 20%;">LABEL_ACTIONS</th>
895
                  </tr>
895
                  </tr>
896
               </thead>
896
               </thead>
897
               <tbody>
897
               <tbody>
898
                  <tr class="tr-section">
898
                  <tr>
899
                     <td class="text-left">LABEL_COMPETENCY</td>
899
                     <td class="text-left">LABEL_COMPETENCY</td>
900
                     <td class="text-left">{{:name}}</td>
900
                     <td class="text-left">{{:name}}</td>
901
                     <td>
901
                     <td>
902
                        {{if type == 'simple'}} Simple {{/if}}
-
 
903
                        {{if type == 'multiple'}} Multiple {{/if}}
-
 
904
                     </td>
902
                     </td>
905
                     <td>
903
                     <td>
906
              
-
 
907
                        <button  type="button" class="btn btn-default btn-delete-competency" data-competency="{{:competency_id}}" data-toggle="tooltip"  data-original-title="LABEL_DELETE LABEL_COMPETENCY"><i class="fa fa-ban" aria-hidden="true"></i> LABEL_DELETE LABEL_COMPETENCY </button> 
904
                        <button  type="button" class="btn btn-default btn-delete-competency" data-competency="{{:competency_id}}" data-toggle="tooltip"  data-original-title="LABEL_DELETE LABEL_COMPETENCY"><i class="fa fa-ban" aria-hidden="true"></i> LABEL_DELETE LABEL_COMPETENCY </button> 
908
            
-
 
909
                     </td>
905
                     </td>
910
                  </tr>
906
                  </tr>
911
                  {{for behaviors}}
907
                  {{for behaviors}}
912
                  <tr >
908
                  <tr >
913
                     <td class="text-left">--LABEL_CONDUCT</td>
909
                     <td class="text-left">--LABEL_CONDUCT</td>
914
                     <td class="text-left">
910
                     <td class="text-left">
915
                        {{:description}}
911
                        {{:description}}
916
                     </td>
912
                     </td>
917
                     <td>
913
                     <td>
918
          {{if level == '0'}} LABEL_NA {{/if}} 
914
                        {{if level == '0'}} LABEL_NA {{/if}} 
919
          {{if level == '1' }} LABEL_LEVEL_ONE {{/if}} 
915
                        {{if level == '1' }} LABEL_LEVEL_ONE {{/if}} 
920
          {{if level == '2' }} LABEL_LEVEL_TWO {{/if}} 
916
                        {{if level == '2' }} LABEL_LEVEL_TWO {{/if}} 
921
          {{if level == '3' }} LABEL_LEVEL_THREE {{/if}} 
917
                        {{if level == '3' }} LABEL_LEVEL_THREE {{/if}} 
922
          {{if level == '4' }} LABEL_LEVEL_FOUR {{/if}} 
918
                        {{if level == '4' }} LABEL_LEVEL_FOUR {{/if}} 
923
       </td>
919
                     </td>
924
                     <td>
920
                     <td>
925
                        <button type="button"  class="btn btn-default btn-edit-behavior" data-competency="{{:competency_id}}" data-behavior="{{:behavior_id}}" data-toggle="tooltip"  data-original-title="LABEL_EDIT LABEL_LEVEL"><i class="fa fa-edit" aria-hidden="true"></i> LABEL_EDIT LABEL_LEVEL</button> 
921
                        <button type="button"  class="btn btn-default btn-edit-behavior" data-competency="{{:competency_id}}" data-behavior="{{:behavior_id}}" data-toggle="tooltip"  data-original-title="LABEL_EDIT LABEL_LEVEL"><i class="fa fa-edit" aria-hidden="true"></i> LABEL_EDIT LABEL_LEVEL</button> 
926
           
-
 
927
                     </td>
922
                     </td>
928
                  </tr>
923
                  </tr>
929
                  {{/for}}
924
                  {{/for}}
930
               </tbody>
925
               </tbody>
931
            </table>
926
            </table>
Línea 936... Línea 931...
936
   </script>
931
   </script>
Línea 937... Línea 932...
937
 
932
 
938
 
933
 
939
   <script id="sectionJob" type="text/x-jsrender">
934
   <script id="sectionJob" type="text/x-jsrender">
940
   <tr>
935
   <tr>
941
       <td class="text-left">{{:name}}</td>   
-
 
942
       <td>
936
   <td class="text-left">{{:name}}</td>
943
         
937
   <td>
944
           <button type="button" class="btn btn-default btn-delete-subordinate" data-subordinate="{{:job_description_id}}" data-toggle="tooltip"  data-original-title="LABEL_DELETE"><i class="fa fa-ban" aria-hidden="true"></i> LABEL_DELETE</button>   
938
      <button type="button" class="btn btn-default btn-delete-subordinate" data-subordinate="{{:job_description_id}}" data-toggle="tooltip"  data-original-title="LABEL_DELETE"><i class="fa fa-ban" aria-hidden="true"></i> LABEL_DELETE</button>   
945
       </td>
939
   </td>
Línea 946... Línea 940...
946
   </tr>
940
</tr>