Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16768 Rev 16815
Línea 1... Línea 1...
1
<?php 
1
<?php
2
$acl            = $this->viewModel()->getRoot()->getVariable('acl');
2
$acl            = $this->viewModel()->getRoot()->getVariable('acl');
3
$currentUser    = $this->currentUserHelper();
3
$currentUser    = $this->currentUserHelper();
Línea 4... Línea 4...
4
 
4
 
Línea 626... Línea 626...
626
 
626
 
627
 
627
 
628
});
628
});
629
JS;
-
 
630
$this->inlineScript()->captureEnd();
629
JS;
631
$this->headLink()->appendStylesheet('/css/style.css');
-
 
Línea -... Línea 630...
-
 
630
$this->inlineScript()->captureEnd();
632
?>
631
?>
633
  
632
 
634
 
633
 
635
		
634
 
636
		
635
 
637
			
636
 
638
			
637
 
639
			
638
 
640
<!-- Content Header (Page header) -->
639
<!-- Content Header (Page header) -->
641
<section class="content-header">
640
<section class="content-header">
642
	<div class="container-fluid">
641
    <div class="container-fluid">
643
    	<div class="row mb-2">
642
        <div class="row mb-2">
644
        	<div class="col-sm-12">
643
            <div class="col-sm-12">
645
            	<h1>LABEL_USERS</h1>
644
                <h1>LABEL_USERS</h1>
646
			</div>
645
            </div>
Línea 647... Línea 646...
647
		</div>
646
        </div>
648
	</div><!-- /.container-fluid -->
647
    </div><!-- /.container-fluid -->
649
</section>
648
</section>
650
 
649
 
651
<section class="content">
650
<section class="content">
652
	<div class="container-fluid">
651
    <div class="container-fluid">
653
    	<div class="row">
652
        <div class="row">
654
        	<div class="col-12">
653
            <div class="col-12">
655
				<div class="card">     
654
                <div class="card">
656
					<div class="card-header">
655
                    <div class="card-header">
657
					  	<?php 
656
                        <?php
658
                        $form = $this->formFilter;
657
                        $form = $this->formFilter;
659
                		$form->setAttributes([
658
                        $form->setAttributes([
660
                            'method'    => 'post',
659
                            'method'    => 'post',
661
                            'name'      => 'form-filter',
660
                            'name'      => 'form-filter',
662
                            'id'        => 'form-filter'
661
                            'id'        => 'form-filter'
663
                        ]);
662
                        ]);
664
        
663
 
665
                        $form->prepare();
-
 
666
                        echo $this->form()->openTag($form);
-
 
667
                        ?>			
-
 
668
                    <table class="table">
-
 
669
                        <thead>
664
                        $form->prepare();
670
                            
-
 
671
                        </thead>
-
 
672
                        <tbody>
-
 
673
                            <tr>
-
 
674
                            	<th>LABEL_PRIVATE_NETWORKS</th>
-
 
675
                                <td>
-
 
676
                             		<?php 
-
 
677
                                    $element = $form->get('network_id');
-
 
678
                                    $element->setAttributes(['class' => 'form-control']); 
-
 
679
                                    echo $this->formSelect($element);
-
 
Línea 680... Línea 665...
680
                                    ?>
665
                        echo $this->form()->openTag($form);
681
                                </td>
666
                        ?>
682
                            </tr>
-
 
683
                        </tbody>
-
 
684
 
667
                        <table class="table">
685
            		</table>
668
                            <thead>
686
       				<?php echo $this->form()->closeTag($form); ?>
669
 
687
					
670
                            </thead>
688
					</div>
671
                            <tbody>
689
					<div class="card-body">
672
                                <tr>
690
        	    		<table id="gridTable" class="table   table-hover">
673
                                    <th>LABEL_PRIVATE_NETWORKS</th>
691
                      		<thead>
674
                                    <td>
692
        						<tr>
675
                                        <?php
693
                                	<th>LABEL_FIRST_NAME</th>
676
                                        $element = $form->get('network_id');
-
 
677
                                        $element->setAttributes(['class' => 'form-control']);
-
 
678
                                        echo $this->formSelect($element);
-
 
679
                                        ?>
-
 
680
                                    </td>
-
 
681
                                </tr>
-
 
682
                            </tbody>
-
 
683
 
-
 
684
                        </table>
-
 
685
                        <?php echo $this->form()->closeTag($form); ?>
-
 
686
 
-
 
687
                    </div>
-
 
688
                    <div class="card-body">
-
 
689
                        <table id="gridTable" class="table   table-hover">
-
 
690
                            <thead>
-
 
691
                                <tr>
-
 
692
                                    <th>LABEL_FIRST_NAME</th>
694
                                	<th>LABEL_LAST_NAME</th>
693
                                    <th>LABEL_LAST_NAME</th>
695
                                	<th>LABEL_EMAIL</th>
694
                                    <th>LABEL_EMAIL</th>
696
                                  	<th>LABEL_DETAILS</th>
695
                                    <th>LABEL_DETAILS</th>
697
                                  	<th>LABEL_ACTIONS</th>
696
                                    <th>LABEL_ACTIONS</th>
698
                                </tr>
697
                                </tr>
699
                       		</thead>
698
                            </thead>
700
                         	<tbody>
699
                            <tbody>
701
                         	</tbody>
700
                            </tbody>
702
                    	</table>
701
                        </table>
703
                   	</div>
702
                    </div>
704
                   	<div class="card-footer clearfix">
703
                    <div class="card-footer clearfix">
705
                   		<div style="float:right;">
704
                        <div style="float:right;">
706
                   			 <?php if ($allowUpload) : ?>
705
                            <?php if ($allowUpload) : ?>
707
           						<button type="button" class="btn btn-sm btn-primary btn-upload"><i class="fa fa-upload"></i> LABEL_UPLOAD </button>
706
                                <button type="button" class="btn btn-sm btn-primary btn-upload"><i class="fa fa-upload"></i> LABEL_UPLOAD </button>
708
                             <?php endif; ?>
707
                            <?php endif; ?>
709
							<button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH  </button>
708
                            <button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH </button>
710
						</div>
709
                        </div>
711
                 	</div>
710
                    </div>
Línea 712... Línea 711...
712
          		</div>
711
                </div>
713
           	</div>     
712
            </div>
714
        </div>          
713
        </div>
715
 	</div>
714
    </div>
Línea 716... Línea 715...
716
</section> 	
715
</section>
717
 
716
 
718
 
717
 
719
<!-- The Modal -->
718
<!-- The Modal -->
720
<div class="modal" id="modalChangePassword">
719
<div class="modal" id="modalChangePassword">
Línea 721... Línea 720...
721
	<div class="modal-dialog">
720
    <div class="modal-dialog">
722
    	<div class="modal-content">
721
        <div class="modal-content">
723
 
722
 
724
            <!-- Modal Header -->
723
            <!-- Modal Header -->
725
      		<div class="modal-header">
724
            <div class="modal-header">
726
        		<h4 class="modal-title">LABEL_USERS</h4>
725
                <h4 class="modal-title">LABEL_USERS</h4>
727
        		<button type="button" class="close" data-dismiss="modal">&times;</button>
726
                <button type="button" class="close" data-dismiss="modal">&times;</button>
728
      		</div>
727
            </div>
729
 
728
 
730
            <!-- Modal body -->
729
            <!-- Modal body -->
731
      		<div class="modal-body">
730
            <div class="modal-body">
732
       			 <?php 
731
                <?php
733
                    $form = $this->formChangePassword;
732
                $form = $this->formChangePassword;
734
            		$form->setAttributes([
733
                $form->setAttributes([
735
                        'method'    => 'post',
734
                    'method'    => 'post',
736
                        'name'      => 'form-change-password',
735
                    'name'      => 'form-change-password',
737
                        'id'        => 'form-change-password'
736
                    'id'        => 'form-change-password'
738
                    ]);
737
                ]);
739
    
738
 
740
                    $form->prepare();
739
                $form->prepare();
741
                    echo $this->form()->openTag($form);
740
                echo $this->form()->openTag($form);
742
                    ?>			
741
                ?>
743
                        <div class="form-group">
742
                <div class="form-group">
744
        					<?php 
743
                    <?php
745
                            $element = $form->get('first_name');
744
                    $element = $form->get('first_name');
746
                            $element->setOptions(['label' => 'LABEL_FIRST_NAME']);
745
                    $element->setOptions(['label' => 'LABEL_FIRST_NAME']);
747
                            $element->setAttributes(['class' => 'form-control', 'readonly' => 'readonly']); 
746
                    $element->setAttributes(['class' => 'form-control', 'readonly' => 'readonly']);
748
                                            
747
 
749
                            echo $this->formLabel($element);
748
                    echo $this->formLabel($element);
750
                            echo $this->formText($element);
749
                    echo $this->formText($element);
751
                            ?>
750
                    ?>
752
						</div>
751
                </div>
753
						<div class="form-group">
752
                <div class="form-group">
754
        					<?php 
753
                    <?php
755
                            $element = $form->get('last_name');
754
                    $element = $form->get('last_name');
756
                            $element->setOptions(['label' => 'LABEL_LAST_NAME']);
755
                    $element->setOptions(['label' => 'LABEL_LAST_NAME']);
757
                            $element->setAttributes(['class' => 'form-control', 'readonly' => 'readonly']); 
756
                    $element->setAttributes(['class' => 'form-control', 'readonly' => 'readonly']);
758
                                            
757
 
759
                            echo $this->formLabel($element);
758
                    echo $this->formLabel($element);
760
                            echo $this->formText($element);
759
                    echo $this->formText($element);
761
                            ?>
760
                    ?>
762
						</div>
761
                </div>
763
						<div class="form-group">
762
                <div class="form-group">
764
        					<?php 
763
                    <?php
765
                            $element = $form->get('email');
764
                    $element = $form->get('email');
766
                            $element->setOptions(['label' => 'LABEL_EMAIL']);
765
                    $element->setOptions(['label' => 'LABEL_EMAIL']);
767
                            $element->setAttributes(['class' => 'form-control', 'readonly' => 'readonly']); 
766
                    $element->setAttributes(['class' => 'form-control', 'readonly' => 'readonly']);
768
                                            
767
 
769
                            echo $this->formLabel($element);
768
                    echo $this->formLabel($element);
770
                            echo $this->formText($element);
769
                    echo $this->formText($element);
771
                            ?>
770
                    ?>
772
						</div>		
771
                </div>
773
    					<div class="form-group">
772
                <div class="form-group">
774
        					<?php 
773
                    <?php
775
                            $element = $form->get('password');
774
                    $element = $form->get('password');
776
                            $element->setOptions(['label' => 'LABEL_PASSWORD']);
775
                    $element->setOptions(['label' => 'LABEL_PASSWORD']);
777
                            $element->setAttributes(['class' => 'form-control']); 
776
                    $element->setAttributes(['class' => 'form-control']);
778
                                            
777
 
-
 
778
                    echo $this->formLabel($element);
-
 
779
                    echo $this->formPassword($element);
-
 
780
                    ?>
-
 
781
                </div>
-
 
782
                <div class="form-group">
Línea 779... Línea -...
779
                            echo $this->formLabel($element);
-
 
780
                            echo $this->formPassword($element);
-
 
781
                            ?>
-
 
782
						</div>
-
 
Línea 783... Línea -...
783
						<div class="form-group">
-
 
784
                    	<?php 
783
                    <?php
785
                            $element = $form->get('confirmation');
784
                    $element = $form->get('confirmation');
786
                            $element->setOptions(['label' => 'LABEL_CONFIRMATION']);
785
                    $element->setOptions(['label' => 'LABEL_CONFIRMATION']);
787
                            $element->setAttributes(['class' => 'form-control']); 
786
                    $element->setAttributes(['class' => 'form-control']);
788
 
787
 
789
                            echo $this->formLabel($element);
788
                    echo $this->formLabel($element);
Línea 790... Línea 789...
790
                            echo $this->formPassword($element);
789
                    echo $this->formPassword($element);
791
                        ?>
790
                    ?>
792
						</div>
791
                </div>
793
 
792
 
794
								
793
 
795
        				<div class="form-group">
794
                <div class="form-group">
796
                    		<button type="submit" class="btn btn-primary">LABEL_SAVE</button>
795
                    <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
797
                    		<button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button>
796
                    <button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button>
Línea 798... Línea 797...
798
                   		</div>
797
                </div>
799
     	      		<?php echo $this->form()->closeTag($form); ?>
798
                <?php echo $this->form()->closeTag($form); ?>
800
      		</div>
799
            </div>
Línea 909... Línea 908...
909
 
908
 
910
 
909
 
911
 
910
 
912
<!-- The Modal -->
911
<!-- The Modal -->
Línea 913... Línea 912...
913
<div class="modal" id="modalChangeType">
912
<div class="modal" id="modalChangeType">
914
	<div class="modal-dialog">
913
    <div class="modal-dialog">
915
    	<div class="modal-content">
914
        <div class="modal-content">
916
 
915
 
917
            <!-- Modal Header -->
916
            <!-- Modal Header -->
Línea 918... Línea 917...
918
      		<div class="modal-header">
917
            <div class="modal-header">
919
        		<h4 class="modal-title">LABEL_USERS</h4>
918
                <h4 class="modal-title">LABEL_USERS</h4>
920
        		<button type="button" class="close" data-dismiss="modal">&times;</button>
919
                <button type="button" class="close" data-dismiss="modal">&times;</button>
921
      		</div>
920
            </div>
922
 
921
 
923
            <!-- Modal body -->
922
            <!-- Modal body -->
924
      		<div class="modal-body">
923
            <div class="modal-body">
925
       			 <?php 
924
                <?php
926
                    $form = $this->formChangeType;
925
                $form = $this->formChangeType;
927
            		$form->setAttributes([
926
                $form->setAttributes([
928
                        'method'    => 'post',
927
                    'method'    => 'post',
929
                        'name'      => 'form-change-type',
928
                    'name'      => 'form-change-type',
930
                        'id'        => 'form-change-type'
929
                    'id'        => 'form-change-type'
931
                    ]);
930
                ]);
932
    
931
 
933
                    $form->prepare();
932
                $form->prepare();
934
                    echo $this->form()->openTag($form);
933
                echo $this->form()->openTag($form);
935
                    ?>			
934
                ?>
936
                        <div class="form-group">
935
                <div class="form-group">
937
        					<?php 
936
                    <?php
938
                            $element = $form->get('usertype_id');
937
                    $element = $form->get('usertype_id');
939
                            $element->setOptions(['label' => 'LABEL_USER_TYPE']);
938
                    $element->setOptions(['label' => 'LABEL_USER_TYPE']);
940
                            $element->setAttributes(['class' => 'form-control', 'readonly' => 'readonly']); 
939
                    $element->setAttributes(['class' => 'form-control', 'readonly' => 'readonly']);
941
                                            
940
 
942
                            echo $this->formLabel($element);
941
                    echo $this->formLabel($element);
943
                            echo $this->formSelect($element);
942
                    echo $this->formSelect($element);
944
                            ?>
943
                    ?>
945
						</div>
944
                </div>
946
        				<div class="form-group">
945
                <div class="form-group">
Línea 947... Línea 946...
947
                    		<button type="submit" class="btn btn-primary">LABEL_SAVE</button>
946
                    <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
948
                    		<button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button>
947
                    <button type="button" class="btn btn-light btn-cancel">LABEL_CANCEL</button>
949
                   		</div>
948
                </div>
950
     	      		<?php echo $this->form()->closeTag($form); ?>
949
                <?php echo $this->form()->closeTag($form); ?>
951
      		</div>
-
 
952
 
-
 
953
            <!-- Modal footer -->
-
 
954
      		<div class="modal-footer">
-
 
Línea -... Línea 950...
-
 
950
            </div>
-
 
951
 
955
        		<button type="button" class="btn btn-danger" data-dismiss="modal">Cerrar</button>
952
            <!-- Modal footer -->
956
      		</div>
953
            <div class="modal-footer">