Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 6642 Rev 6643
Línea 657... Línea 657...
657
                required: false,
657
                required: false,
658
                extension: 'webm,mp4,webm',
658
                extension: 'webm,mp4,webm',
659
                accept: 'video/webm,video/mpeg,video/mp4'
659
                accept: 'video/webm,video/mpeg,video/mp4'
660
            },
660
            },
661
            'background': {
661
            'background': {
662
                required: true
662
                required: false,
-
 
663
                extension: 'jpg|jpeg|png',
-
 
664
                accept: 'image/jpg,image/jpeg,image/png'
663
            },
665
            },
664
            'order' : {
666
            'order' : {
665
                required: true,
667
                required: true,
666
                digits: true,
668
                digits: true,
667
                min: 1,
669
                min: 1,
Línea 687... Línea 689...
687
                'contentType': false,
689
                'contentType': false,
688
            }).done(function(response) {
690
            }).done(function(response) {
689
                if(response['success']) {
691
                if(response['success']) {
690
                    $.fn.showSuccess(response['data']);
692
                    $.fn.showSuccess(response['data']);
Línea 691... Línea 693...
691
                       
693
                       
692
                    $('body, html').animate({scrollTop: '0px'}, 300);
-
 
693
					$('#content1').css('display','block');
-
 
694
                    $('.contenido').html(''); 
-
 
-
 
694
                    $('#company-microlearning-slide-video-edit-box').modal('hide');
695
            		seleccionarCampo.css('display','none');
695
                    
696
                    gridTable.api().ajax.reload(null, false);
696
                    gridTable.api().ajax.reload(null, false);
697
                } else {
697
                } else {
698
                    validatorVideoEdit.resetForm();
698
                    validatorVideoEdit.resetForm();
699
                    if(jQuery.type(response['data']) == 'string') {
699
                    if(jQuery.type(response['data']) == 'string') {
Línea 3349... Línea 3349...
3349
 					
3349
 					
3350
		
3350
		
-
 
3351
 
-
 
3352
 
3351
 
3353
<!-- The Modal -->
3352
 
3354
<div class="modal" id="company-microlearning-slide-video-edit-box">
3353
<!-- The Modal -->
3355
	<div class="modal-dialog   modal-xl">
3354
<div id="company-microlearning-slide-video-edit-box">
3356
    	<div class="modal-content">
3355
        	<?php 
3357
        	<?php 
Línea 3365... Línea 3367...
3365
    	    $element = $form->get('type');
3367
    	    $element = $form->get('type');
3366
    	    echo $this->formHidden($element);
3368
    	    echo $this->formHidden($element);
Línea 3367... Línea 3369...
3367
    	    
3369
    	    
Línea -... Línea 3370...
-
 
3370
    	    ?> 
3368
    	    ?> 
3371
 
3369
 
3372
            <!-- Modal Header -->
-
 
3373
      		<div class="modal-header">
-
 
3374
        		<h4 class="modal-title">LABEL_EDIT_VIDEO_SLIDE</h4>
Línea 3370... Línea 3375...
3370
              <div class="d-flex justify-content-center tituloEditor">
3375
        		<button type="button" class="close" data-dismiss="modal">&times;</button>
3371
              <h4>LABEL_EDIT_VIDEO_SLIDE</h4>
3376
      		</div>
3372
 
3377
 
3373
             </div>
3378
            <!-- Modal body --> 
3374
            <div class="grid-padre">
3379
            <div class="modal-body">
3375
				<div class="form-group  grid-1-2">
3380
				<div class="form-group">
3376
    				<?php 
3381
    				<?php 
3377
                        $element = $form->get('name');
3382
                        $element = $form->get('name');
3378
                        $element->setAttributes(['class' => 'form-control']);
3383
                        $element->setAttributes(['class' => 'form-control']);
3379
                        $element->setOptions(['label' => 'LABEL_NAME']);
3384
                        $element->setOptions(['label' => 'LABEL_NAME']);
3380
                        echo $this->formLabel($element);
3385
                        echo $this->formLabel($element);
3381
                        echo $this->formText($element);
3386
                        echo $this->formText($element);
3382
                    ?>
3387
                    ?>
3383
				</div>
3388
				</div>
3384
				<div class="form-group  grid-1-2">
3389
				<div class="form-group">
3385
    				<?php 
3390
    				<?php 
3386
                        $element = $form->get('order');
3391
                        $element = $form->get('order');
3387
                        $element->setAttributes(['class' => 'form-control']);
3392
                        $element->setAttributes(['class' => 'form-control']);
3388
                        $element->setOptions(['label' => 'LABEL_ORDER']);
3393
                        $element->setOptions(['label' => 'LABEL_ORDER']);
3389
                        echo $this->formLabel($element);
3394
                        echo $this->formLabel($element);
3390
                        echo $this->formText($element);
3395
                        echo $this->formText($element);
3391
                    ?>
3396
                    ?>
3392
				</div>
3397
				</div>
3393
				<div class="form-group  grid-1-2">
3398
				<div class="form-group">
3394
                
3399
                	
3395
                 		<?php 
3400
                 		<?php 
3396
                        $element = $form->get('file');
3401
                        $element = $form->get('file');
3397
                        $element->setAttributes(['class' => 'form-control']);
3402
                        $element->setAttributes(['class' => 'form-control']);
3398
                        $element->setOptions(['label' => 'LABEL_VIDEO']);
3403
                        $element->setOptions(['label' => 'LABEL_VIDEO']);
3399
                        $element->setAttributes(['accept' => 'video/webm,video/mpeg,video/mp4']);
3404
                        $element->setAttributes(['accept' => 'video/webm,video/mpeg,video/mp4']);
3400
                        echo $this->formLabel($element);
3405
                        echo $this->formLabel($element);
3401
                        ?>
3406
                        ?>
3402
                        <div class="file-loading">
3407
                        <div class="file-loading">
-
 
3408
                        <?php echo $this->formFile($element);?>
-
 
3409
                        </div>
-
 
3410
                	
-
 
3411
          		</div>
-
 
3412
          		<div class="form-group">
-
 
3413
                	
-
 
3414
                 		<?php 
-
 
3415
                        $element = $form->get('background');
-
 
3416
                        $element->setAttributes(['class' => 'form-control']);
-
 
3417
                        $element->setOptions(['label' => 'LABEL_IMAGE_BACKGROUND']);
-
 
3418
                        $element->setAttributes(['accept' => 'image/jpg,image/jpeg,image/png']);
-
 
3419
                        echo $this->formLabel($element);
-
 
3420
                        ?>
-
 
3421
                        <div class="file-loading">
3403
                        <?php echo $this->formFile($element);?>
3422
                        <?php echo $this->formFile($element);?>
3404
                        </div>
-
 
3405
                
-
 
3406
          		</div>
-
 
3407
                  <?php 
-
 
3408
                    $element = $form->get('background');
-
 
3409
					$element->setAttributes([ 'class' => 'background']);
-
 
3410
                    echo $this->formHidden($element); 
3423
                        </div>
3411
                ?>
3424
                	
-
 
3425
          		</div>
-
 
3426
      		</div>
-
 
3427
		
-
 
3428
            <!-- Modal footer -->
-
 
3429
      		<div class="modal-footer">
3412
          		<div class="contenido form-group " id="contenido"></div>
3430
      			<button type="submit" class="btn btn-primary">LABEL_SAVE</button>
-
 
3431
        		<button type="button" class="btn btn-danger" data-dismiss="modal">Cerrar</button>
3413
      		</div>
3432
          	</div>
3414
      		
3433
          	<?php echo $this->form()->closeTag($form); ?>