Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 17121 Rev 17122
Línea 582... Línea 582...
582
        $('body').on('click', 'button.btn-refresh', function(e) {
582
        $('body').on('click', 'button.btn-refresh', function(e) {
583
            e.preventDefault();
583
            e.preventDefault();
584
            gridTable.api().ajax.reload(null, false);
584
            gridTable.api().ajax.reload(null, false);
585
        });
585
        });
Línea 586... Línea 586...
586
 
586
 
587
        $('#btn-select-behavior').click(function(e) {
587
        $('#btn-select-capsule').click(function(e) {
Línea 588... Línea 588...
588
            e.preventDefault();
588
            e.preventDefault();
Línea 589... Línea 589...
589
 
589
 
590
            var id  = $('#capsule_uuid option:selected').val(); 
590
            var id  = $('#capsule_uuid option:selected').val(); 
591
 
591
 
Línea 592... Línea 592...
592
            if(!id) {
592
            if(!id) {
593
                return false;
593
                return false;
594
            }
594
            }
Línea 595... Línea 595...
595
 
595
 
596
            var name = $('#capsule_uuid option:selected').text();
596
            var name = $('#capsule_uuid option:selected').text();
597
            var key         = '#tr_behavior_id_' + id ;
597
            var key         = '#tr_capsule_id_' + id ;
598
            var element     = $(key)
598
            var element     = $(key)
Línea 599... Línea 599...
599
 
599
 
600
            if(element.length > 0) {
600
            if(element.length > 0) {
601
                $.fn.showError( 'ERROR_BEHAVIOR_WAS_PREVIOUSLY_ADDED');
601
                $.fn.showError( 'ERROR_CAPSULE_WAS_PREVIOUSLY_ADDED');
Línea 602... Línea 602...
602
                return false;
602
                return false;
603
            }
603
            }
604
 
604
 
605
 
605
 
Línea 606... Línea 606...
606
            if(name.length > 50) {
606
            if(name.length > 50) {
607
                name = name.substr(0, 50) + '...';
607
                name = name.substr(0, 50) + '...';
Línea 783... Línea 783...
783
                </div>
783
                </div>
784
         		<div class="col-4 mt-3">
784
         		<div class="col-4 mt-3">
785
                 	<button type="button" class="btn btn-primary" id="btn-select-capsule" data-toggle="tooltip" title="LABEL_ADD LABEL_CAPSULE">LABEL_ADD LABEL_CAPSULE</button>
785
                 	<button type="button" class="btn btn-primary" id="btn-select-capsule" data-toggle="tooltip" title="LABEL_ADD LABEL_CAPSULE">LABEL_ADD LABEL_CAPSULE</button>
786
       			</div>
786
       			</div>
787
     		</div>
787
     		</div>
-
 
788
            <div class="row">
-
 
789
                <div class="col-12 mt-3">
-
 
790
                    <table id="table-capsules" class="table table-bordered">
-
 
791
                        <thead>
-
 
792
                            <tr>
-
 
793
                                <th>LABEL_NAME</th>
-
 
794
                                <th>LABEL_ACTIONS</th>
-
 
795
                            </tr>
-
 
796
                        </thead>
-
 
797
                        <tbody>
-
 
798
                        </tbody>
-
 
799
                    </table>
-
 
800
                </div>
-
 
801
            </div>
Línea 788... Línea 802...
788
 
802
 
789
	 	</div>
803
	 	</div>
790
	 	<div class="card-footer text-right">
804
	 	<div class="card-footer text-right">
791
	 	     <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
805
	 	     <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
Línea 904... Línea 918...
904
 
918
 
905
<script id="trCapsuleTemplate" type="text/x-jsrender">
919
<script id="trCapsuleTemplate" type="text/x-jsrender">
Línea 906... Línea 920...
906
    <tr id="tr_capsule_id_{{:id}}">
920
    <tr id="tr_capsule_id_{{:id}}">
907
        
921
        
908
       <td class="text-left">
922
       <td class="text-left">
909
        <input type="hidden" class="capsule_uuid" name="capsule_uuid[]" value="{{:id}}" />      
923
        <input type="hidden" class="capsule_id" name="capsule_id[]" value="{{:id}}" />      
910
         {{:name}}
924
         {{:name}}
911
       </td>   
925
       </td>   
912
       <td>
926
       <td>