Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 766 Rev 767
Línea 983... Línea 983...
983
        
983
        
984
        $("#image-box").modal('hide');
984
        $("#image-box").modal('hide');
985
        return false;
985
        return false;
Línea -... Línea 986...
-
 
986
    });
-
 
987
 
-
 
988
    $('.btn-header-image-open').on("click", function(e){
-
 
989
        e.preventDefault();
-
 
990
        $('#form-header-image #image').fileinput('reset');
-
 
991
        $('#form-header-image #image').val('');
-
 
992
        validatorImage.resetForm();
-
 
993
        $("#image-header-box").modal('show');
-
 
994
        return false;
986
    });
995
    });
987
 
996
 
Línea -... Línea 997...
-
 
997
    $('.btn-header-image-close').on("click", function(e){
-
 
998
        e.preventDefault();
-
 
999
        
-
 
1000
        $("#image-header-box").modal('hide');
-
 
1001
        return false;
-
 
1002
    });
-
 
1003
 
-
 
1004
 
-
 
1005
    $('.btn-header-image-open').on("click", function(e){
-
 
1006
        e.preventDefault();
-
 
1007
        $('#form-header-image #image').fileinput('reset');
-
 
1008
        $('#form-header-image #image').val('');
-
 
1009
        validatorImage.resetForm();
-
 
1010
        $("#image-box").modal('show');
-
 
1011
        return false;
-
 
1012
    });
-
 
1013
 
-
 
1014
    $('.btn-header-image-close').on("click", function(e){
-
 
1015
        e.preventDefault();
-
 
1016
        $("#image-box").modal('hide');
-
 
1017
        return false;
-
 
1018
    });
-
 
1019
 
-
 
1020
 
988
    $('.btn-image-explorer').on("click", function(e){
1021
 
989
        e.preventDefault();
1022
    $('.btn-image-explorer').on("click", function(e){
990
        
1023
        e.preventDefault();
Línea 1710... Línea 1743...
1710
          	</div>
1743
          	</div>
1711
      	<?php echo $this->form()->closeTag($form); ?>	
1744
      	<?php echo $this->form()->closeTag($form); ?>	
1712
    	</div>
1745
    	</div>
1713
	</div>
1746
	</div>
1714
</div>
1747
</div>
-
 
1748
 
-
 
1749
 
-
 
1750
 
-
 
1751
<div class="modal" tabindex="-1" role="dialog" id="image-header-box">
-
 
1752
	<div class="modal-dialog" role="document">
-
 
1753
	      		<?php 
-
 
1754
			$form = $this->formImage;
-
 
1755
            $form->setAttributes([
-
 
1756
                'method' => 'post',
-
 
1757
                'action' => $routeImageUpload,
-
 
1758
                'name' => 'form-image',
-
 
1759
                'id' => 'form-image',
-
 
1760
                'enctype' => 'multipart/form-data' 
-
 
1761
            ]);
-
 
1762
            $form->prepare();
-
 
1763
            echo $this->form()->openTag($form);
-
 
1764
            ?> 
-
 
1765
    	<div class="modal-content">
-
 
1766
      		<div class="modal-header">
-
 
1767
        		<h3 class="modal-title">LABEL_CHANGE</h3>
-
 
1768
      		</div>
-
 
1769
      		<div class="modal-body">
-
 
1770
	            <div class="form-group">
-
 
1771
                   <div class="file-loading">
-
 
1772
                 		<?php 
-
 
1773
 
-
 
1774
                            $element = $form->get('image');
-
 
1775
                            $element->setAttributes(['class' => 'form-control', 'accept' => 'image/jpeg,image/png']);
-
 
1776
                            $element->setOptions(['label' => 'LABEL_IMAGE']);
-
 
1777
                            echo $this->formLabel($element);
-
 
1778
                            echo $this->formFile($element);
-
 
1779
                        ?>
-
 
1780
                    </div>
-
 
1781
                </div>
-
 
1782
          	</div>
-
 
1783
          	
-
 
1784
         	<div class="modal-footer">
-
 
1785
    			<button type="submit" class="btn btn-primary">LABEL_UPLOAD</button>
-
 
1786
    			<button type="button" class="btn btn-default btn-header-image-close">LABEL_CANCEL</button>
-
 
1787
          	</div>
-
 
1788
      	<?php echo $this->form()->closeTag($form); ?>	
-
 
1789
    	</div>
-
 
1790
	</div>
-
 
1791
</div>
Línea 1715... Línea 1792...
1715
 
1792
 
1716
 
1793