Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16845 Rev 16864
Línea 613... Línea 613...
613
JS;
613
JS;
614
$this->inlineScript()->captureEnd();
614
$this->inlineScript()->captureEnd();
615
?>
615
?>
Línea 616... Línea 616...
616
 
616
 
617
<div class="container">
617
<div class="container">
618
        <div class="row" id="row-listing">
618
	<div class="card" id="row-listing">
-
 
619
	 	<div class="card-header">
-
 
620
	 		<h6 class="card-title">LABEL_FAST_SURVEYS</h6>
619
            <div class="col-12">
621
	 	</div>
620
                <div class="card">
622
	 	<div class="card-body">
621
                	<h6 class="card-title">LABEL_FAST_SURVEYS</h6>
623
	 		<div class="row">
-
 
624
	 	         <div class="col-12 mt-3">
622
                    <div class="card-body">
625
	 	         
623
                        <table id="gridTable" class="table table-striped table-bordered">
626
	 	          <table id="gridTable" class="table table-striped table-bordered">
624
                            <thead>
627
                            <thead>
625
                                <tr>
628
                                <tr>
626
                                    <th>LABEL_QUESTION</th>
629
                                    <th>LABEL_QUESTION</th>
627
                                    <th>LABEL_DETAILS</th>
630
                                    <th>LABEL_DETAILS</th>
Línea 630... Línea 633...
630
                                </tr>
633
                                </tr>
631
                            </thead>
634
                            </thead>
632
                            <tbody>
635
                            <tbody>
633
                            </tbody>
636
                            </tbody>
634
                        </table>
637
                        </table>
-
 
638
	 	         
635
                    </div>
639
	 	         </div>
636
                    <div class="card-footer clearfix">
640
	 	     </div>
-
 
641
	 	</div>
637
                        <div style="float:right;">
642
	 	<div class="card-footer text-right">
638
                            <button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH </button>
643
	 		<button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH </button>
639
                            <?php if ($allowAdd) : ?>
644
       		<?php if ($allowAdd) : ?>
640
                                <button type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i> LABEL_ADD </button>
645
         	<button type="button" class="btn btn-primary btn-add"><i class="fa fa-plus"></i> LABEL_ADD </button>
641
                            <?php endif; ?>
646
        	<?php endif; ?>
642
 
647
	 	     
643
                        </div>
-
 
644
                    </div>
-
 
645
                </div>
-
 
646
            </div>
648
	 	</div>
647
        </div>
649
	</div>
648
        
650
	
649
		<div class="row" id="row-form" style="display: none">
651
	<div class="card" id="row-form" style="display: none">
650
            <div class="col-12">
652
	 	<div class="card-header">
651
                <div class="card">
-
 
652
                	<div class="card-header" ><h2 id="card-form-title"></h2>
653
	 		<h6 class="card-title" id="card-form-title"></h6>
653
                    </div>
654
	 	</div>
654
                    <?php
655
	 	 <?php
655
                    $form = $this->form;
656
                    $form = $this->form;
656
                    $form->setAttributes([
657
                    $form->setAttributes([
657
                        'method'    => 'post',
658
                        'method'    => 'post',
658
                        'name'      => 'form',
659
                        'name'      => 'form',
659
                        'id'        => 'form',
660
                        'id'        => 'form',
660
                    ]);
661
                    ]);
Línea 661... Línea 662...
661
    
662
    
662
                    $form->prepare();
663
                    $form->prepare();
663
                    echo $this->form()->openTag($form);
664
                    echo $this->form()->openTag($form);
664
                    ?>
665
                    ?>
-
 
666
	 	<div class="card-body">
665
                    <div class="card-body">
667
	 		<div class="row">
666
                   		<div class="form-group">
668
	 	         <div class="col-12 mt-3">
667
                            <?php
669
                            <?php
668
                            $element = $form->get('question');
670
                            $element = $form->get('question');
669
                            $element->setOptions(['label' => 'LABEL_QUESTION']);
671
                            $element->setOptions(['label' => 'LABEL_QUESTION']);
Línea 670... Línea 672...
670
                            $element->setAttributes(['class' => 'form-control']);
672
                            $element->setAttributes(['class' => 'form-control']);
671
        
673
        
672
                            echo $this->formLabel($element);
674
                            echo $this->formLabel($element);
673
                            echo $this->formText($element);
675
                            echo $this->formText($element);
-
 
676
                            ?>
-
 
677
	 	         </div>
674
                            ?>
678
	 	     </div>
675
                        </div>
679
	 		<div class="row">
676
               			<div class="form-group">
680
	 	         <div class="col-12 mt-3">
677
                            <?php
681
                            <?php
678
                            $element = $form->get('number_of_answers');
682
                            $element = $form->get('number_of_answers');
Línea 679... Línea 683...
679
                            $element->setOptions(['label' => 'LABEL_NUMBER_OF_ANSWERS']);
683
                            $element->setOptions(['label' => 'LABEL_NUMBER_OF_ANSWERS']);
680
                            $element->setAttributes(['class' => 'form-control']);
684
                            $element->setAttributes(['class' => 'form-control']);
681
        
685
        
682
                            echo $this->formLabel($element);
686
                            echo $this->formLabel($element);
-
 
687
                            echo $this->formSelect($element);
-
 
688
                            ?>
683
                            echo $this->formSelect($element);
689
	 	         </div>
684
                            ?>
690
	 	     </div>
685
                        </div>
691
	 		<div class="row">
686
                    	 <div class="form-group">
692
	 	         <div class="col-12 mt-3">
687
                            <?php
693
                            <?php
Línea 688... Línea 694...
688
                            $element = $form->get('answer1');
694
                            $element = $form->get('answer1');
689
                            $element->setOptions(['label' => 'LABEL_ANSWER1']);
695
                            $element->setOptions(['label' => 'LABEL_ANSWER1']);
690
                            $element->setAttributes(['class' => 'form-control']);
696
                            $element->setAttributes(['class' => 'form-control']);
691
        
697
        
-
 
698
                            echo $this->formLabel($element);
-
 
699
                            echo $this->formText($element);
692
                            echo $this->formLabel($element);
700
                            ?>
693
                            echo $this->formText($element);
701
	 	         </div>
694
                            ?>
702
	 	     </div>
695
                        </div>
703
	 		<div class="row">
696
                    	<div class="form-group">
704
	 	         <div class="col-12 mt-3">
Línea 697... Línea 705...
697
                            <?php
705
                            <?php
698
                            $element = $form->get('answer2');
706
                            $element = $form->get('answer2');
699
                            $element->setOptions(['label' => 'LABEL_ANSWER2']);
707
                            $element->setOptions(['label' => 'LABEL_ANSWER2']);
700
                            $element->setAttributes(['class' => 'form-control']);
708
                            $element->setAttributes(['class' => 'form-control']);
-
 
709
        
-
 
710
                            echo $this->formLabel($element);
701
        
711
                            echo $this->formText($element);
-
 
712
                            ?>
702
                            echo $this->formLabel($element);
713
	 	         </div>
703
                            echo $this->formText($element);
714
	 	     </div>
704
                            ?>
715
	 	     
705
                        </div>
716
	 		<div class="row" id="form-group-answer3">
Línea 706... Línea 717...
706
                    	 <div class="form-group" id="form-group-answer3">
717
	 	         <div class="col-12 mt-3">
707
                            <?php
718
                            <?php
708
                            $element = $form->get('answer3');
719
                            $element = $form->get('answer3');
709
                            $element->setOptions(['label' => 'LABEL_ANSWER3']);
720
                            $element->setOptions(['label' => 'LABEL_ANSWER3']);
-
 
721
                            $element->setAttributes(['class' => 'form-control']);
710
                            $element->setAttributes(['class' => 'form-control']);
722
        
-
 
723
                            echo $this->formLabel($element);
711
        
724
                            echo $this->formText($element);
712
                            echo $this->formLabel($element);
725
                            ?>
713
                            echo $this->formText($element);
726
	 	         </div>
714
                            ?>
727
	 	     </div>
Línea 715... Línea 728...
715
                        </div>
728
	 		<div class="row" id="form-group-answer4">
716
                    	 <div class="form-group" id="form-group-answer4">
729
	 	         <div class="col-12 mt-3">
717
                            <?php
730
                            <?php
718
                            $element = $form->get('answer4');
731
                            $element = $form->get('answer4');
-
 
732
                            $element->setOptions(['label' => 'LABEL_ANSWER4']);
719
                            $element->setOptions(['label' => 'LABEL_ANSWER4']);
733
                            $element->setAttributes(['class' => 'form-control']);
-
 
734
        
720
                            $element->setAttributes(['class' => 'form-control']);
735
                            echo $this->formLabel($element);
721
        
736
                            echo $this->formText($element);
722
                            echo $this->formLabel($element);
737
                            ?>
723
                            echo $this->formText($element);
738
	 	         </div>
Línea 724... Línea 739...
724
                            ?>
739
	 	     </div>
725
                        </div>
740
	 		<div class="row" id="form-group-answer5">
726
                    	<div class="form-group" id="form-group-answer5">
741
	 	         <div class="col-12 mt-3">
727
                            <?php
742
                            <?php
-
 
743
                            $element = $form->get('answer5');
-
 
744
                            $element->setOptions(['label' => 'LABEL_ANSWER5']);
728
                            $element = $form->get('answer5');
745
                            $element->setAttributes(['class' => 'form-control']);
729
                            $element->setOptions(['label' => 'LABEL_ANSWER5']);
746
        
730
                            $element->setAttributes(['class' => 'form-control']);
747
                            echo $this->formLabel($element);
731
        
748
                            echo $this->formText($element);
732
                            echo $this->formLabel($element);
749
                            ?>
Línea 733... Línea 750...
733
                            echo $this->formText($element);
750
	 	         </div>
734
                            ?>
751
	 	     </div>
735
                        </div>
752
	 		<div class="row">
736
                      	<div class="form-group">
753
	 	         <div class="col-12 mt-3">
-
 
754
                            <?php
-
 
755
                            $element = $form->get('privacy');
737
                            <?php
756
                            $element->setOptions(['label' => 'LABEL_PRIVACY']);
738
                            $element = $form->get('privacy');
757
                            $element->setAttributes(['class' => 'form-control']);
739
                            $element->setOptions(['label' => 'LABEL_PRIVACY']);
758
                            
740
                            $element->setAttributes(['class' => 'form-control']);
759
                            echo $this->formLabel($element);
741
                            
760
                            echo $this->formSelect($element);
Línea 742... Línea 761...
742
                            echo $this->formLabel($element);
761
                            ?>
743
                            echo $this->formSelect($element);
762
	 	         </div>
744
                            ?>
763
	 	     </div>
745
                        </div>
764
	 		<div class="row">
-
 
765
	 	         <div class="col-12 mt-3">
-
 
766
                            <?php
746
                      	<div class="form-group">
767
                            $element = $form->get('result_type');
747
                            <?php
768
                            $element->setOptions(['label' => 'LABEL_RESULT_TYPE']);
748
                            $element = $form->get('result_type');
769
                            $element->setAttributes(['class' => 'form-control']);
749
                            $element->setOptions(['label' => 'LABEL_RESULT_TYPE']);
770
                            
750
                            $element->setAttributes(['class' => 'form-control']);
771
                            echo $this->formLabel($element);
Línea 751... Línea 772...
751
                            
772
                            echo $this->formSelect($element);
752
                            echo $this->formLabel($element);
773
                            ?>
753
                            echo $this->formSelect($element);
774
	 	         </div>
754
                            ?>
775
	 	     </div>
-
 
776
	 		<div class="row">
-
 
777
	 	         <div class="col-12 mt-3">
755
                        </div>
778
                            <?php
756
                    	<div class="form-group">
779
                            $element = $form->get('duration_days');
757
                            <?php
780
                            $element->setOptions(['label' => 'LABEL_DURATION_DAYS']);
758
                            $element = $form->get('duration_days');
781
                            $element->setAttributes(['class' => 'form-control']);
759
                            $element->setOptions(['label' => 'LABEL_DURATION_DAYS']);
782
        
Línea 760... Línea 783...
760
                            $element->setAttributes(['class' => 'form-control']);
783
                            echo $this->formLabel($element);
761
        
784
                            echo $this->formNumber($element);
762
                            echo $this->formLabel($element);
785
                            ?>
763
                            echo $this->formNumber($element);
786
	 	         </div>
-
 
787
	 	     </div>
-
 
788
	 		<div class="row">
764
                            ?>
789
	 	         <div class="col-12 mt-3">
765
                        </div>
790
                            <?php
766
                  		<div class="form-group">
791
                            $element = $form->get('duration_hours');
767
                            <?php
792
                            $element->setOptions(['label' => 'LABEL_DURATION_HOURS']);
768
                            $element = $form->get('duration_hours');
793
                            $element->setAttributes(['class' => 'form-control']);
Línea 769... Línea 794...
769
                            $element->setOptions(['label' => 'LABEL_DURATION_HOURS']);
794
        
770
                            $element->setAttributes(['class' => 'form-control']);
795
                            echo $this->formLabel($element);
771
        
796
                            echo $this->formNumber($element);
772
                            echo $this->formLabel($element);
797
                            ?>
773
                            echo $this->formNumber($element);
798
	 	         </div>
-
 
799
	 	     </div>
774
                            ?>
800
	 		<div class="row">
775
                        </div>
801
	 	         <div class="col-12 mt-3">
776
                      	<div class="form-group">
802
                            <?php
-
 
803
                            $element = $form->get('duration_minutes');
777
                            <?php
804
                            $element->setOptions(['label' => 'LABEL_DURATION_MINUTES']);
778
                            $element = $form->get('duration_minutes');
805
                            $element->setAttributes(['class' => 'form-control']);
779
                            $element->setOptions(['label' => 'LABEL_DURATION_MINUTES']);
-
 
780
                            $element->setAttributes(['class' => 'form-control']);
-
 
781
        
806
        
-
 
807
                            echo $this->formLabel($element);
782
                            echo $this->formLabel($element);
808
                            echo $this->formNumber($element);
783
                            echo $this->formNumber($element);
809
                            ?>
784
                            ?>
-
 
785
                        </div>
-
 
786
                    </div>
810
	 	         </div>
787
               		<div class="card-footer text-right">
811
	 	     </div>
788
                   		<button type="submit" class="btn btn-primary">LABEL_SAVE</button>
812
	 	</div>
789
                        <button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button>
813
	 	<div class="card-footer text-right">
-
 
814
                 		<button type="submit" class="btn btn-primary">LABEL_SAVE</button>
790
                    </div>
815
                        <button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button>
791
                     <?php echo $this->form()->closeTag($form); ?>
816
    
792
                </div>
817
	 	</div>
793
           </div>
818
	 	 <?php echo $this->form()->closeTag($form); ?>
794
       </div>  
819
	</div>
795
       
820
	
-
 
821
	
796
   		<div class="row" id="row-chart" style="display: none">
822
	<div class="card"  id="row-chart" style="display: none">
797
            <div class="col-12">
823
	 	<div class="card-header">
798
                <div class="card">
-
 
799
                    <div class="card-header">
-
 
800
                        <h2 id="chart-question"></h2>
824
	 		<h6 class="card-title" id="chart-question"></h6>
801
                    </div>
825
	 	</div>
802
                    <div class="card-body">
826
	 	<div class="card-body">
803
                        <div class="row">
827
	 		<div class="row">
804
                            <div class="col-lg-12 col-12 chart">
828
	 	         <div class="col-12 mt-3">
-
 
829
	 	         	<div class="col-lg-12 col-12 chart">