Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 17064 Rev 17065
Línea 227... Línea 227...
227
                    'targets': -2,
227
                    'targets': -2,
228
                    'orderable': false,
228
                    'orderable': false,
229
                    'render' : function ( data, type, row ) {
229
                    'render' : function ( data, type, row ) {
230
                        s = '';
230
                        s = '';
Línea 231... Línea 231...
231
 
231
 
232
						/* if( data['marketplace'] )  {          
232
						if( data['marketplace'] )  {          
233
                            s = s + '&nbsp; <img class="btn-view-image-marketplace" data-href="' + data['marketplace'] + '" data-toggle="tooltip" src="'+data['marketplace']+'" title="LABEL_VIEW" style="width: 40px; object-fit: cover; height: 40px;" /> '
233
                            s = s + '&nbsp; <img class="btn-view-image-marketplace" data-href="' + data['marketplace'] + '" data-toggle="tooltip" src="'+data['marketplace']+'" title="LABEL_VIEW" style="width: 40px; object-fit: cover; height: 40px;" /> '
234
                        }  else {
234
                        }  else {
235
                            s = s + '';    
235
                            s = s + '';    
Línea 236... Línea 236...
236
                        } */ 
236
                        } 
237
						
237
						
238
                        if( data['image'] )  {
238
                        if( data['image'] )  {
239
                            s = s + '&nbsp; <img class="btn-view-image-app" data-href="' + data['image'] + '" data-toggle="tooltip" src="'+data['image']+'" title="LABEL_VIEW" style="width: 40px; object-fit: cover; height: 40px;" /> '  
239
                            s = s + '&nbsp; <img class="btn-view-image-app" data-href="' + data['image'] + '" data-toggle="tooltip" src="'+data['image']+'" title="LABEL_VIEW" style="width: 40px; object-fit: cover; height: 40px;" /> '  
Línea 472... Línea 472...
472
        }
472
        }
473
    });
473
    });
Línea 474... Línea 474...
474
 
474
 
475
 
475
 
Línea 476... Línea 476...
476
 
476
 
477
        /* $('body').on('click', '.btn-view-image-marketplace', function(e) {
477
        $('body').on('click', '.btn-view-image-marketplace', function(e) {
478
            e.preventDefault();
478
            e.preventDefault();
479
    
479
    
Línea 480... Línea 480...
480
            $('#image-marketplace').attr('src', $(this).data('href'));
480
            $('#image-marketplace').attr('src', $(this).data('href'));
481
            $('#modalPreviewMarketPlace').modal('show');
481
            $('#modalPreviewMarketPlace').modal('show');
Línea 482... Línea 482...
482
            return false;
482
            return false;
Línea 505... Línea 505...
505
            $('#form-add #status').val('');
505
            $('#form-add #status').val('');
506
            $('#form-add #cost').val('');
506
            $('#form-add #cost').val('');
507
            $('#form-add #form-row-cost').hide();
507
            $('#form-add #form-row-cost').hide();
508
            $('#form-add #file').fileinput('reset');
508
            $('#form-add #file').fileinput('reset');
509
            $('#form-add #file').val('');
509
            $('#form-add #file').val('');
510
            /* $('#form-add #marketplace').fileinput('reset');
510
            $('#form-add #marketplace').fileinput('reset');
511
            $('#form-add #marketplace').val(''); */
511
            $('#form-add #marketplace').val('');
Línea 512... Línea 512...
512
    
512
    
513
            CKEDITOR.instances.description_add.setData('');
513
            CKEDITOR.instances.description_add.setData('');
Línea 514... Línea 514...
514
            validatorAdd.resetForm();
514
            validatorAdd.resetForm();
Línea 552... Línea 552...
552
                        $('#form-edit #cost').val('');
552
                        $('#form-edit #cost').val('');
553
                    }
553
                    }
Línea 554... Línea 554...
554
 
554
 
555
                    $('#form-edit #file').fileinput('reset');
555
                    $('#form-edit #file').fileinput('reset');
556
                    $('#form-edit #file').val('');
556
                    $('#form-edit #file').val('');
557
                    /* $('#form-edit #marketplace').fileinput('reset');
557
                    $('#form-edit #marketplace').fileinput('reset');
Línea 558... Línea 558...
558
                    $('#form-edit #marketplace').val(''); */
558
                    $('#form-edit #marketplace').val('');
559
    
559
    
Línea 560... Línea 560...
560
                    CKEDITOR.instances.description_edit.setData(response['data']['description']);
560
                    CKEDITOR.instances.description_edit.setData(response['data']['description']);
Línea 751... Línea 751...
751
                maxFileCount: 1,
751
                maxFileCount: 1,
752
                msgPlaceholder:  'LABEL_RECOMMENDED_SIZE $image_size',
752
                msgPlaceholder:  'LABEL_RECOMMENDED_SIZE $image_size',
753
                allowedFileExtensions: ['jpeg', 'jpg', 'png'],
753
                allowedFileExtensions: ['jpeg', 'jpg', 'png'],
754
            });
754
            });
Línea 755... Línea 755...
755
 
755
 
756
  /* $('#form-add #marketplace').fileinput({
756
  $('#form-add #marketplace').fileinput({
757
                theme: 'fa',
757
                theme: 'fa',
758
                language: 'es',
758
                language: 'es',
759
                showUpload: false,
759
                showUpload: false,
760
                dropZoneEnabled: false,
760
                dropZoneEnabled: false,
761
                maxFileCount: 1,
761
                maxFileCount: 1,
762
                msgPlaceholder: 'LABEL_RECOMMENDED_SIZE $marketplace_size',
762
                msgPlaceholder: 'LABEL_RECOMMENDED_SIZE $marketplace_size',
763
                allowedFileExtensions: ['jpeg', 'jpg', 'png'],
763
                allowedFileExtensions: ['jpeg', 'jpg', 'png'],
Línea 764... Línea 764...
764
            }); */
764
            });
765
    
765
    
766
            $('#form-edit #file').fileinput({
766
            $('#form-edit #file').fileinput({
767
                theme: 'fa',
767
                theme: 'fa',
Línea 771... Línea 771...
771
                maxFileCount: 1,
771
                maxFileCount: 1,
772
                msgPlaceholder: 'LABEL_RECOMMENDED_SIZE $image_size',
772
                msgPlaceholder: 'LABEL_RECOMMENDED_SIZE $image_size',
773
                allowedFileExtensions: ['jpeg', 'jpg', 'png'],
773
                allowedFileExtensions: ['jpeg', 'jpg', 'png'],
774
            });
774
            });
Línea 775... Línea 775...
775
 
775
 
776
            /* $('#form-edit #marketplace').fileinput({
776
            $('#form-edit #marketplace').fileinput({
777
                theme: 'fa',
777
                theme: 'fa',
778
                language: 'es',
778
                language: 'es',
779
                showUpload: false,
779
                showUpload: false,
780
                dropZoneEnabled: false,
780
                dropZoneEnabled: false,
781
                maxFileCount: 1,
781
                maxFileCount: 1,
782
                msgPlaceholder:  'LABEL_RECOMMENDED_SIZE $marketplace_size',
782
                msgPlaceholder:  'LABEL_RECOMMENDED_SIZE $marketplace_size',
783
                allowedFileExtensions: ['jpeg', 'jpg', 'png'],
783
                allowedFileExtensions: ['jpeg', 'jpg', 'png'],
Línea 784... Línea 784...
784
            }); */
784
            });
785
       
785
       
786
        $('body').on('click', 'button.btn-cancel', function(e) {
786
        $('body').on('click', 'button.btn-cancel', function(e) {
787
            e.preventDefault();
787
            e.preventDefault();
Línea 934... Línea 934...
934
                        echo $this->formLabel($element);
934
                        echo $this->formLabel($element);
935
                        echo $this->formFile($element);
935
                        echo $this->formFile($element);
936
                        ?>
936
                        ?>
937
            	</div>
937
            	</div>
938
           	</div> 
938
           	</div> 
939
           	<!-- <div class="row">
939
           	<div class="row">
940
	 	         <div class="col-12 mt-3">
940
	 	         <div class="col-12 mt-3">
941
                        <?php
941
                        <?php
942
                        $element = $form->get('marketplace');
942
                        $element = $form->get('marketplace');
943
                        $element->setOptions(['label' => 'LABEL_MARKETPLACE']);
943
                        $element->setOptions(['label' => 'LABEL_MARKETPLACE']);
944
                        $element->setAttributes(['class' => 'form-control']);
944
                        $element->setAttributes(['class' => 'form-control']);
945
                        $element->setAttributes(['accept' => 'image/jpg,image/jpeg,image/png']);
945
                        $element->setAttributes(['accept' => 'image/jpg,image/jpeg,image/png']);
946
                        echo $this->formLabel($element);
946
                        echo $this->formLabel($element);
947
                        echo $this->formFile($element);
947
                        echo $this->formFile($element);
948
                        ?>
948
                        ?>
949
          		</div>
949
          		</div>
950
          	</div>  -->
950
          	</div> 
951
	 	</div>
951
	 	</div>
952
	 	<div class="card-footer text-right">
952
	 	<div class="card-footer text-right">
953
			<button type="submit" class="btn btn-primary">LABEL_SAVE</button>
953
			<button type="submit" class="btn btn-primary">LABEL_SAVE</button>
954
      		<button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button>
954
      		<button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button>
955
	 	</div>
955
	 	</div>
Línea 1061... Línea 1061...
1061
                        echo $this->formLabel($element);
1061
                        echo $this->formLabel($element);
1062
                        echo $this->formFile($element);
1062
                        echo $this->formFile($element);
1063
                        ?>
1063
                        ?>
1064
            	</div>
1064
            	</div>
1065
           	</div> 
1065
           	</div> 
1066
           	<!-- <div class="row">
1066
           	<div class="row">
1067
	 	         <div class="col-12 mt-3">
1067
	 	         <div class="col-12 mt-3">
1068
                        <?php
1068
                        <?php
1069
                        $element = $form->get('marketplace');
1069
                        $element = $form->get('marketplace');
1070
                        $element->setOptions(['label' => 'LABEL_MARKETPLACE']);
1070
                        $element->setOptions(['label' => 'LABEL_MARKETPLACE']);
1071
                        $element->setAttributes(['class' => 'form-control']);
1071
                        $element->setAttributes(['class' => 'form-control']);
1072
                        $element->setAttributes(['accept' => 'image/jpg,image/jpeg,image/png']);
1072
                        $element->setAttributes(['accept' => 'image/jpg,image/jpeg,image/png']);
1073
                        echo $this->formLabel($element);
1073
                        echo $this->formLabel($element);
1074
                        echo $this->formFile($element);
1074
                        echo $this->formFile($element);
1075
                        ?>
1075
                        ?>
1076
          		</div>
1076
          		</div>
1077
          	</div>  -->
1077
          	</div> 
1078
	 	</div>
1078
	 	</div>
1079
	 	<div class="card-footer text-right">
1079
	 	<div class="card-footer text-right">
1080
			<button type="submit" class="btn btn-primary">LABEL_SAVE</button>
1080
			<button type="submit" class="btn btn-primary">LABEL_SAVE</button>
1081
      		<button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button>
1081
      		<button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button>
1082
	 	</div>
1082
	 	</div>
Línea 1088... Línea 1088...
1088
 
1088
 
1089
 
1089
 
1090
 
1090
 
1091
 
1091
 
1092
<!-- The Modal -->
1092
<!-- The Modal -->
1093
<!-- <div class="modal" id="modalPreviewMarketPlace">
1093
<div class="modal" id="modalPreviewMarketPlace">
1094
	<div class="modal-dialog">
1094
	<div class="modal-dialog">
Línea 1108... Línea 1108...
1108
			<div class="modal-footer text-right">
1108
			<div class="modal-footer text-right">
1109
				<button type="button" class="btn btn-danger" data-dismiss="modal">LABEL_CLOSE</button>
1109
				<button type="button" class="btn btn-danger" data-dismiss="modal">LABEL_CLOSE</button>
1110
			</div>
1110
			</div>
1111
		</div>
1111
		</div>
1112
	</div>
1112
	</div>
1113
</div> -->
1113
</div>
Línea 1114... Línea 1114...
1114
 
1114
 
1115
 
1115
 
1116
<!-- The Modal -->
1116
<!-- The Modal -->