Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16822 Rev 16840
Línea 825... Línea 825...
825
    });
825
    });
826
JS;
826
JS;
827
$this->inlineScript()->captureEnd();
827
$this->inlineScript()->captureEnd();
828
?>
828
?>
Línea 829... Línea -...
829
 
-
 
830
<!-- Content Header (Page header) -->
-
 
831
<section class="content-header">
-
 
832
    <div class="container-fluid">
-
 
833
        <div class="row mb-2">
-
 
834
            <div class="col-sm-12">
-
 
835
                <h1>LABEL_USERS_FOR_COMPANY</h1>
-
 
836
            </div>
-
 
837
        </div>
-
 
838
    </div><!-- /.container-fluid -->
-
 
839
</section>
-
 
840
 
-
 
841
<section class="content">
-
 
842
    <div class="container-fluid">
-
 
843
        <div class="row">
-
 
844
            <div class="col-12">
-
 
845
                <div class="card">
-
 
846
                    <div class="card-body">
-
 
847
                        <div class="row">
-
 
848
                            <div class="col-md-12 col-sm-12">
-
 
849
                                <form name="form-filter" id="form-filter">
-
 
850
                                    <div class="form-group">
-
 
851
                                        <label for="status">LABEL_STATUS</label>
-
 
852
                                        <select id="status" name="status" class="form-control">
-
 
853
                                            <option value="">LABEL_ALL</option>
-
 
854
                                            <option value="<?php echo CompanyUser::STATUS_PENDING ?>">LABEL_PENDING</option>
-
 
855
                                            <option value="<?php echo CompanyUser::STATUS_ACCEPTED ?>">LABEL_ACCEPTED</option>
-
 
856
                                            <option value="<?php echo CompanyUser::STATUS_ADMIN_WILL_ADD ?>">LABEL_ADMIN_WILL_ADD</option>
-
 
857
                                            <option value="<?php echo CompanyUser::STATUS_SENT ?>">LABEL_INVITED</option>
-
 
858
                                            <option value="<?php echo CompanyUser::STATUS_CANCELLED ?>">LABEL_CANCELLED</option>
-
 
859
                                            <option value="<?php echo CompanyUser::STATUS_REJECTED ?>">LABEL_REJECTED</option>
-
 
860
                                        </select>
-
 
861
                                    </div>
-
 
862
                                </form>
-
 
863
                            </div>
-
 
864
                            <div class="col-12 text-right p-2">
-
 
865
                                <div style="float:right;">
-
 
866
                                    <button type="button" class="btn btn-sm btn-info btn-refresh"><i class="fa fa-refresh"></i></button>
-
 
867
                                    <?php if ($allowUpload) : ?>
-
 
868
                                        <button type="button" class="btn btn-sm btn-primary btn-upload"><i class="fa fa-upload"></i> LABEL_UPLOAD </button>
-
 
869
                                    <?php endif; ?>
-
 
870
                                    <?php if ($allowInvite) : ?>
-
 
871
                                        <button type="button" class="btn btn-sm btn-primary btn-invite"><i class="fa fa-plus"></i> LABEL_INVITE </button>
-
 
872
                                    <?php endif; ?>
-
 
873
                                </div>
-
 
874
                            </div>
-
 
875
                        </div>
-
 
876
                        <div class="row">
-
 
877
                            <div class="col-md-12 col-sm-12">
-
 
878
                                <table id="gridTable" class="table table-bordered">
-
 
879
                                    <thead>
-
 
880
                                        <tr>
-
 
881
                                            <th>LABEL_FIRST_NAME</th>
-
 
882
                                            <th>LABEL_LAST_NAME</th>
-
 
883
                                            <th>LABEL_EMAIL</th>
-
 
884
                                            <th>LABEL_DETAILS</th>
-
 
885
                                            <th>LABEL_ACTIONS</th>
-
 
886
                                        </tr>
-
 
887
                                    </thead>
-
 
888
                                    <tbody>
-
 
889
                                    </tbody>
-
 
890
                                </table>
-
 
891
                            </div>
-
 
Línea -... Línea 829...
-
 
829
 
-
 
830
 
-
 
831
 
-
 
832
<div class="container">
-
 
833
	<div class="card-body">
-
 
834
		<h6 class="card-title">LABEL_USERS_FOR_COMPANY</h6>
-
 
835
		<form name="form-filter" id="form-filter">
-
 
836
			<div class="row">
-
 
837
      			<div class="col-12 mb-3 mt-3">
-
 
838
               		<label for="status">LABEL_STATUS</label>
-
 
839
              		<select id="status" name="status" class="form-control">
-
 
840
						<option value="">LABEL_ALL</option>
-
 
841
                     	<option value="<?php echo CompanyUser::STATUS_PENDING ?>">LABEL_PENDING</option>
-
 
842
                    	<option value="<?php echo CompanyUser::STATUS_ACCEPTED ?>">LABEL_ACCEPTED</option>
-
 
843
                       	<option value="<?php echo CompanyUser::STATUS_ADMIN_WILL_ADD ?>">LABEL_ADMIN_WILL_ADD</option>
-
 
844
                      	<option value="<?php echo CompanyUser::STATUS_SENT ?>">LABEL_INVITED</option>
-
 
845
                        <option value="<?php echo CompanyUser::STATUS_CANCELLED ?>">LABEL_CANCELLED</option>
-
 
846
                 		<option value="<?php echo CompanyUser::STATUS_REJECTED ?>">LABEL_REJECTED</option>
-
 
847
                  	</select>
-
 
848
              	</div>
-
 
849
     		</div>
-
 
850
	 	</form>
892
                        </div>
851
	 	<div class="row">
-
 
852
      		<div class="col-12 mb-3 mt-3">
-
 
853
				<table id="gridTable" class="table table-bordered">
-
 
854
                    <thead>
-
 
855
             			<tr>
-
 
856
                       		<th>LABEL_FIRST_NAME</th>
893
 
857
                       		<th>LABEL_LAST_NAME</th>
894
 
-
 
895
                    </div>
-
 
896
                    <div class="card-footer clearfix">
858
                           	<th>LABEL_EMAIL</th>
-
 
859
                       		<th>LABEL_DETAILS</th>
-
 
860
                           	<th>LABEL_ACTIONS</th>
897
 
861
                       	</tr>
-
 
862
					</thead>
898
 
863
       				<tbody>
899
                    </div>
864
                 	</tbody>
-
 
865
             	</table>
-
 
866
           	</div>
-
 
867
        </div>
-
 
868
	</div>
-
 
869
 	<div class="card-footer text-right">
-
 
870
		<button type="button" class="btn btn-sm btn-info btn-refresh"><i class="fa fa-refresh"></i></button>
-
 
871
    	<?php if ($allowUpload) : ?>
-
 
872
        <button type="button" class="btn btn-sm btn-primary btn-upload"><i class="fa fa-upload"></i> LABEL_UPLOAD </button>
-
 
873
 		<?php endif; ?>
900
                </div>
874
       	<?php if ($allowInvite) : ?>
901
            </div>
875
       	<button type="button" class="btn btn-sm btn-primary btn-invite"><i class="fa fa-plus"></i> LABEL_INVITE </button>
Línea 902... Línea 876...
902
        </div>
876
		<?php endif; ?>
903
    </div>
877
    </div>
904
</section>
878
</div>
Línea 913... Línea 887...
913
            <div class="modal-header">
887
            <div class="modal-header">
914
                <h3 class="modal-title">LABEL_INVITE</h3>
888
                <h3 class="modal-title">LABEL_INVITE</h3>
915
            </div>
889
            </div>
Línea 916... Línea 890...
916
 
890
 
-
 
891
            <!-- Modal body -->
917
            <!-- Modal body -->
892
            <form name="form-invite" id="form-invite">
918
            <div class="modal-body">
-
 
-
 
893
            <div class="modal-body">
919
                <form name="form-invite" id="form-invite">
894
                
920
                    <input type="hidden" name="user_uuid_selected" id="user_uuid_selected" />
895
                    <input type="hidden" name="user_uuid_selected" id="user_uuid_selected" />
-
 
896
                    <div class="row">
921
                    <div class="form-group">
897
                    	<div class="col-12 mb-3 mt-3">
922
                        <label for="user_uuid">LABEL_USER (LABEL_MIN_LENGTH_3)</label>
898
                        <label for="user_uuid">LABEL_USER (LABEL_MIN_LENGTH_3)</label>
-
 
899
                        <input autocomplete="off" type="text" name="user_uuid" id="user_uuid" class="form-control" data-noresults-text="LABEL_AUTOCOMPLETE_USERS_NOT_FOUND">
923
                        <input autocomplete="off" type="text" name="user_uuid" id="user_uuid" class="form-control" data-noresults-text="LABEL_AUTOCOMPLETE_USERS_NOT_FOUND">
900
                    	</div>
Línea 924... Línea -...
924
                    </div>
-
 
925
 
-
 
926
 
-
 
927
                    <div class="form-group">
-
 
928
                        <button type="submit" class="btn btn-sm btn-primary">LABEL_INVITE</button>
-
 
-
 
901
                    </div>	
-
 
902
 
929
                        <button type="button" class="btn btn-sm btn-light btn-cancel-modal">LABEL_CANCEL</button>
903
 
-
 
904
                    
-
 
905
                
-
 
906
            </div>
-
 
907
            <div class="modal-footer text-right">
-
 
908
            	<button type="submit" class="btn btn-sm btn-primary">LABEL_INVITE</button>
930
                    </div>
909
         		<button type="button" class="btn btn-sm btn-light btn-cancel-modal">LABEL_CANCEL</button>
931
                </form>
910
          	 </div>
932
            </div>
911
            </form>
Línea 944... Línea 923...
944
            <!-- Modal Header -->
923
            <!-- Modal Header -->
945
            <div class="modal-header">
924
            <div class="modal-header">
946
                <h3 class="modal-title">LABEL_UPLOAD</h3>
925
                <h3 class="modal-title">LABEL_UPLOAD</h3>
947
            </div>
926
            </div>
Línea 948... Línea -...
948
 
-
 
949
            <!-- Modal body -->
-
 
950
            <div class="modal-body">
927
 
951
                <?php
928
			 <?php
952
                $form = $this->formUploadUsers;
929
                $form = $this->formUploadUsers;
953
                $form->setAttributes([
930
                $form->setAttributes([
954
                    'method'    => 'post',
931
                    'method'    => 'post',
955
                    'name'      => 'form-upload-users',
932
                    'name'      => 'form-upload-users',
956
                    'id'        => 'form-upload-users'
933
                    'id'        => 'form-upload-users'
Línea 957... Línea 934...
957
                ]);
934
                ]);
958
 
935
 
959
                $form->prepare();
936
                $form->prepare();
-
 
937
                echo $this->form()->openTag($form);
-
 
938
                ?>
-
 
939
            <!-- Modal body -->
Línea 960... Línea 940...
960
                echo $this->form()->openTag($form);
940
            <div class="modal-body">
-
 
941
              
Línea 961... Línea 942...
961
                ?>
942
 
962
 
943
                <div class="row">
963
                <div class="form-group">
944
                	<div class="col-12 mb-3 mt-3">
964
 
945
 
965
 
946
 
966
                    <?php
947
                    <?php
967
                    $element = $form->get('file');
948
                    $element = $form->get('file');
Línea 968... Línea -...
968
                    $element->setOptions(['label' => 'LABEL_EXCEL']);
-
 
969
                    echo $this->formLabel($element);
-
 
970
                    ?>
-
 
971
                    <div class="file-loading">
949
                    $element->setOptions(['label' => 'LABEL_EXCEL']);
972
                        <?php
950
                    echo $this->formLabel($element);
973
 
951
                    ?>
-
 
952
                    <div class="file-loading">
974
 
953
                        <?php
975
 
954
 
Línea -... Línea 955...
-
 
955
                        $element->setAttributes(['class' => 'form-control', 'accept' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel']);
-
 
956
                        echo $this->formFile($element);
976
 
957
                        ?>
977
                        $element->setAttributes(['class' => 'form-control', 'accept' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel']);
958
                        </div>
978
                        echo $this->formFile($element);
959
                    </div>
979
                        ?>
960
                </div>
980
                    </div>
961
 
981
                </div>
-
 
982
 
-
 
983
 
962
 
984
 
963
 
985
                <div class="form-group">
964
      
Línea 1009... Línea 988...
1009
            <!-- Modal body -->
988
            <!-- Modal body -->
1010
            <div class="modal-body">
989
            <div class="modal-body">
1011
                <form>
990
                <form>
1012
                    <input type="hidden" name="table-upload-users-key" id="table-upload-users-key">
991
                    <input type="hidden" name="table-upload-users-key" id="table-upload-users-key">
1013
                </form>
992
                </form>
-
 
993
                <div class="row">
1014
                <div style="height: 300px;overflow: scroll;">
994
                	<div class="col-12 mb-3 mt-3" style="height: 300px;overflow: scroll;">
1015
                    <table id="gridTableUploadUsers" style="width: 100%" class="table table-bordered">
995
                    	<table id="gridTableUploadUsers" style="width: 100%" class="table table-bordered">
1016
                        <thead>
996
                            <thead>
1017
                            <tr>
997
                                <tr>
1018
                                <th>LABEL_FIRST_NAME</th>
998
                                    <th>LABEL_FIRST_NAME</th>
1019
                                <th>LABEL_LAST_NAME</th>
999
                                    <th>LABEL_LAST_NAME</th>
1020
                                <th>LABEL_EMAIL</th>
1000
                                    <th>LABEL_EMAIL</th>
1021
                                <th>LABEL_PASSWORD</th>
1001
                                    <th>LABEL_PASSWORD</th>
1022
                                <th>LABEL_IS_ADULT</th>
1002
                                    <th>LABEL_IS_ADULT</th>
1023
                            </tr>
1003
                                </tr>
1024
                        </thead>
1004
                            </thead>
1025
                        <tbody>
1005
                            <tbody>
1026
                        </tbody>
1006
                            </tbody>
1027
                    </table>
1007
                        </table>
-
 
1008
                    
-
 
1009
                	</div>
1028
                </div>
1010
                </div>
Línea -... Línea 1011...
-
 
1011
 
1029
 
1012
 
Línea 1030... Línea 1013...
1030
            </div>
1013
            </div>
1031
 
1014
 
1032
            <!-- Modal footer -->
1015
            <!-- Modal footer -->
Línea 1048... Línea 1031...
1048
            <!-- Modal Header -->
1031
            <!-- Modal Header -->
1049
            <div class="modal-header">
1032
            <div class="modal-header">
1050
                <h3 class="modal-title">LABEL_USER_FOR_COMPANY - LABEL_EDIT</h3>
1033
                <h3 class="modal-title">LABEL_USER_FOR_COMPANY - LABEL_EDIT</h3>
1051
            </div>
1034
            </div>
Línea -... Línea 1035...
-
 
1035
 
1052
 
1036
			<form name="form-edit" id="form-edit">
1053
            <!-- Modal body -->
1037
            <!-- Modal body -->
1054
            <div class="modal-body">
-
 
-
 
1038
            <div class="modal-body">
1055
                <form name="form-edit" id="form-edit">
1039
                
1056
                    <div class="row">
1040
                    <div class="row">
1057
                        <div class="col-md-12 col-sm-12">
1041
                        <div class="col-md-12 col-sm-12 mb-3 mt-3">
1058
                            <div class="form-group">
1042
                            <div class="form-group">
1059
                                <label for="backend">LABEL_ACCESS_BACKEND</label>
1043
                                <label for="backend">LABEL_ACCESS_BACKEND</label>
1060
                                <input type="checkbox" name="backend" id="backend" value="y" class="form-control" style="width: 20px; height: 20px">
1044
                                <input type="checkbox" name="backend" id="backend" value="y" class="form-control" style="width: 20px; height: 20px">
1061
                            </div>
1045
                            </div>
1062
                        </div>
1046
                        </div>
1063
                    </div>
1047
                    </div>
1064
                    <div class="row">
1048
                    <div class="row">
1065
                        <div class="col-md-12 col-sm-12">
1049
                        <div class="col-md-12 col-sm-12 mb-3 mt-3">
1066
                            <table id="table-roles" class="table table-bordered">
1050
                            <table id="table-roles" class="table table-bordered">
1067
                                <thead>
1051
                                <thead>
1068
                                    <tr>
1052
                                    <tr>
1069
                                        <th>LABEL_NAME</th>
1053
                                        <th>LABEL_NAME</th>
Línea 1075... Línea 1059...
1075
                            </table>
1059
                            </table>
Línea 1076... Línea 1060...
1076
 
1060
 
1077
                        </div>
1061
                        </div>
Línea -... Línea 1062...
-
 
1062
                    </div>
-
 
1063
 
1078
                    </div>
1064
           
1079
 
1065
            </div>
1080
                    <div class="form-group">
1066
         	<div class="modal-footer text-right">
1081
                        <button type="submit" class="btn btn-sm btn-primary">LABEL_SAVE</button>
1067
                        <button type="submit" class="btn btn-sm btn-primary">LABEL_SAVE</button>
1082
                        <button type="button" class="btn btn-sm btn-light btn-cancel-modal">LABEL_CANCEL</button>
1068
                        <button type="button" class="btn btn-sm btn-light btn-cancel-modal">LABEL_CANCEL</button>
1083
                    </div>
-
 
1084
                </form>
-
 
1085
            </div>
1069
                    </div>
1086
 
1070
                </form>
1087
        </div>
1071
        </div>