Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16992 Rev 17328
Línea 431... Línea 431...
431
            }).always(function() {
431
            }).always(function() {
432
                NProgress.done();
432
                NProgress.done();
433
            });
433
            });
434
        });
434
        });
Línea 435... Línea -...
435
 
-
 
436
        $('#form-invite #user_uuid').typeahead({
-
 
437
            source: function (query, process) {
-
 
438
                return $.get('/typeahead', { query: query }, function (data) {
-
 
439
                    return process(data.options);
-
 
440
                });
-
 
441
            }
-
 
442
        });
-
 
443
 
-
 
444
 
-
 
445
 
435
 
446
        $('#form-invite #user_uuid').autoComplete({
436
        $('#form-invite #user_uuid').autoComplete({
447
            resolver: 'custom',
437
            resolver: 'custom',
Línea 448... Línea 438...
448
            events: {
438
            events: {
Línea 835... Línea 825...
835
?>
825
?>
Línea 836... Línea 826...
836
 
826
 
837
 
827
 
838
 
828
 
839
<div class="container">
829
<div class="container">
840
	<div class= "card">
830
    <div class="card">
841
		<div class="card-header">
831
        <div class="card-header">
842
			<h6 class="card-title">LABEL_USERS_FOR_COMPANY</h6>
832
            <h6 class="card-title">LABEL_USERS_FOR_COMPANY</h6>
843
		</div>
833
        </div>
844
		<div class="card-body">
834
        <div class="card-body">
845
		
835
 
846
    		
836
 
847
    		<form name="form-filter" id="form-filter">
837
            <form name="form-filter" id="form-filter">
848
    			<div class="row">
838
                <div class="row">
849
          			<div class="col-12  mt-3">
839
                    <div class="col-12  mt-3">
850
                   		<label for="status">LABEL_STATUS</label>
840
                        <label for="status">LABEL_STATUS</label>
851
                  		<select id="status" name="status" class="form-control">
841
                        <select id="status" name="status" class="form-control">
852
    						<option value="">LABEL_ALL</option>
842
                            <option value="">LABEL_ALL</option>
853
                         	<option value="<?php echo CompanyUser::STATUS_PENDING ?>">LABEL_PENDING</option>
843
                            <option value="<?php echo CompanyUser::STATUS_PENDING ?>">LABEL_PENDING</option>
854
                        	<option value="<?php echo CompanyUser::STATUS_ACCEPTED ?>">LABEL_ACCEPTED</option>
844
                            <option value="<?php echo CompanyUser::STATUS_ACCEPTED ?>">LABEL_ACCEPTED</option>
855
                           	<option value="<?php echo CompanyUser::STATUS_ADMIN_WILL_ADD ?>">LABEL_ADMIN_WILL_ADD</option>
845
                            <option value="<?php echo CompanyUser::STATUS_ADMIN_WILL_ADD ?>">LABEL_ADMIN_WILL_ADD</option>
856
                          	<option value="<?php echo CompanyUser::STATUS_SENT ?>">LABEL_INVITED</option>
846
                            <option value="<?php echo CompanyUser::STATUS_SENT ?>">LABEL_INVITED</option>
857
                            <option value="<?php echo CompanyUser::STATUS_CANCELLED ?>">LABEL_CANCELLED</option>
847
                            <option value="<?php echo CompanyUser::STATUS_CANCELLED ?>">LABEL_CANCELLED</option>
858
                     		<option value="<?php echo CompanyUser::STATUS_REJECTED ?>">LABEL_REJECTED</option>
848
                            <option value="<?php echo CompanyUser::STATUS_REJECTED ?>">LABEL_REJECTED</option>
859
                      	</select>
849
                        </select>
860
                  	</div>
850
                    </div>
861
         		</div>
851
                </div>
862
    	 	</form>
852
            </form>
863
    	 	<div class="row">
853
            <div class="row">
864
          		<div class="col-12  mt-3">
854
                <div class="col-12  mt-3">
865
    				<table id="gridTable" class="table table-bordered">
855
                    <table id="gridTable" class="table table-bordered">
866
                        <thead>
856
                        <thead>
867
                 			<tr>
857
                            <tr>
868
                           		<th>LABEL_FIRST_NAME</th>
858
                                <th>LABEL_FIRST_NAME</th>
869
                           		<th>LABEL_LAST_NAME</th>
859
                                <th>LABEL_LAST_NAME</th>
870
                               	<th>LABEL_EMAIL</th>
860
                                <th>LABEL_EMAIL</th>
871
                           		<th>LABEL_DETAILS</th>
861
                                <th>LABEL_DETAILS</th>
872
                               	<th>LABEL_ACTIONS</th>
862
                                <th>LABEL_ACTIONS</th>
873
                           	</tr>
863
                            </tr>
874
    					</thead>
864
                        </thead>
875
           				<tbody>
865
                        <tbody>
876
                     	</tbody>
866
                        </tbody>
877
                 	</table>
-
 
878
               	</div>
-
 
879
            </div>
-
 
880
		</div>
-
 
881
     	<div class="card-footer text-right">
-
 
882
    		<button type="button" class="btn btn-sm btn-info btn-refresh"><i class="fa fa-sync"></i> LABEL_REFRESH</button>
-
 
883
        	<?php if ($allowUpload) : ?>
-
 
884
            <button type="button" class="btn btn-sm btn-primary btn-upload"><i class="fa fa-upload"></i> LABEL_UPLOAD </button>
-
 
885
     		<?php endif; ?>
-
 
886
           	<?php if ($allowInvite) : ?>
867
                    </table>
-
 
868
                </div>
-
 
869
            </div>
-
 
870
        </div>
-
 
871
        <div class="card-footer text-right">
-
 
872
            <button type="button" class="btn btn-sm btn-info btn-refresh"><i class="fa fa-sync"></i> LABEL_REFRESH</button>
-
 
873
            <?php if ($allowUpload) : ?>
-
 
874
                <button type="button" class="btn btn-sm btn-primary btn-upload"><i class="fa fa-upload"></i> LABEL_UPLOAD </button>
-
 
875
            <?php endif; ?>
-
 
876
            <?php if ($allowInvite) : ?>
887
           	<button type="button" class="btn btn-sm btn-primary btn-invite"><i class="fa fa-plus"></i> LABEL_INVITE </button>
877
                <button type="button" class="btn btn-sm btn-primary btn-invite"><i class="fa fa-plus"></i> LABEL_INVITE </button>
888
    		<?php endif; ?>
878
            <?php endif; ?>
Línea 889... Línea 879...
889
        </div>
879
        </div>
890
   	</div>     
880
    </div>
Línea 901... Línea 891...
901
                <h6 class="modal-title">LABEL_INVITE</h6>
891
                <h6 class="modal-title">LABEL_INVITE</h6>
902
            </div>
892
            </div>
Línea 903... Línea 893...
903
 
893
 
904
            <!-- Modal body -->
894
            <!-- Modal body -->
905
            <form name="form-invite" id="form-invite">
895
            <form name="form-invite" id="form-invite">
906
            <div class="modal-body">
896
                <div class="modal-body">
907
                
897
 
908
                    <input type="hidden" name="user_uuid_selected" id="user_uuid_selected" />
898
                    <input type="hidden" name="user_uuid_selected" id="user_uuid_selected" />
909
                    <div class="row">
899
                    <div class="row">
910
                    	<div class="col-12  mt-3">
900
                        <div class="col-12  mt-3">
911
                        <label for="user_uuid">LABEL_USER (LABEL_MIN_LENGTH_3)</label>
901
                            <label for="user_uuid">LABEL_USER (LABEL_MIN_LENGTH_3)</label>
912
                        <br/>
902
                            <br />
913
                        <input autocomplete="off" type="text" name="user_uuid" id="user_uuid" class="form-control" data-noresults-text="LABEL_AUTOCOMPLETE_USERS_NOT_FOUND">
903
                            <input autocomplete="off" type="text" name="user_uuid" id="user_uuid" class="form-control" data-noresults-text="LABEL_AUTOCOMPLETE_USERS_NOT_FOUND">
914
                    	</div>
904
                        </div>
Línea 915... Línea 905...
915
                    </div>	
905
                    </div>
916
 
906
 
917
 
907
 
918
                    
908
 
919
                
909
 
920
            </div>
910
                </div>
921
            <div class="modal-footer text-right">
911
                <div class="modal-footer text-right">
922
            	<button type="submit" class="btn btn-sm btn-primary">LABEL_INVITE</button>
912
                    <button type="submit" class="btn btn-sm btn-primary">LABEL_INVITE</button>
923
         		<button type="button" class="btn btn-sm btn-light btn-cancel-modal">LABEL_CANCEL</button>
913
                    <button type="button" class="btn btn-sm btn-light btn-cancel-modal">LABEL_CANCEL</button>
924
          	 </div>
914
                </div>
925
            </form>
915
            </form>
Línea 937... Línea 927...
937
            <!-- Modal Header -->
927
            <!-- Modal Header -->
938
            <div class="modal-header">
928
            <div class="modal-header">
939
                <h6 class="modal-title">LABEL_UPLOAD</h6>
929
                <h6 class="modal-title">LABEL_UPLOAD</h6>
940
            </div>
930
            </div>
Línea 941... Línea 931...
941
 
931
 
942
			 <?php
932
            <?php
943
                $form = $this->formUploadUsers;
933
            $form = $this->formUploadUsers;
944
                $form->setAttributes([
934
            $form->setAttributes([
945
                    'method'    => 'post',
935
                'method'    => 'post',
946
                    'name'      => 'form-upload-users',
936
                'name'      => 'form-upload-users',
947
                    'id'        => 'form-upload-users'
937
                'id'        => 'form-upload-users'
948
                ]);
938
            ]);
949
 
939
 
950
                $form->prepare();
940
            $form->prepare();
951
                echo $this->form()->openTag($form);
941
            echo $this->form()->openTag($form);
952
                ?>
942
            ?>
953
            <!-- Modal body -->
943
            <!-- Modal body -->
954
            <div class="modal-body">
944
            <div class="modal-body">
Línea 955... Línea 945...
955
              
945
 
956
 
946
 
Línea 957... Línea -...
957
                <div class="row">
-
 
958
                	<div class="col-12  mt-3">
-
 
959
 
-
 
960
 
-
 
961
                    <?php
-
 
962
                    $element = $form->get('file');
-
 
963
                    $element->setOptions(['label' => 'LABEL_EXCEL']);
947
                <div class="row">
964
                    echo $this->formLabel($element);
-
 
-
 
948
                    <div class="col-12  mt-3">
965
                    ?>
949
 
966
                    <div class="file-loading">
950
 
967
                        <?php
951
                        <?php
-
 
952
                        $element = $form->get('file');
-
 
953
                        $element->setOptions(['label' => 'LABEL_EXCEL']);
-
 
954
                        echo $this->formLabel($element);
-
 
955
                        ?>
-
 
956
                        <div class="file-loading">
-
 
957
                            <?php
968
 
958
 
969
                        $element->setAttributes(['class' => 'form-control', 'accept' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel']);
959
                            $element->setAttributes(['class' => 'form-control', 'accept' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel']);
970
                        echo $this->formFile($element);
960
                            echo $this->formFile($element);
Línea 971... Línea 961...
971
                        ?>
961
                            ?>
972
                        </div>
962
                        </div>
973
                    </div>
963
                    </div>
974
                </div>
964
                </div>
975
 
965
 
976
 
966
 
977
 
967
 
978
      
968
 
979
            </div>
969
            </div>
980
          	<div class="modal-footer text-right">
970
            <div class="modal-footer text-right">
Línea 1003... Línea 993...
1003
            <div class="modal-body">
993
            <div class="modal-body">
1004
                <form>
994
                <form>
1005
                    <input type="hidden" name="table-upload-users-key" id="table-upload-users-key">
995
                    <input type="hidden" name="table-upload-users-key" id="table-upload-users-key">
1006
                </form>
996
                </form>
1007
                <div class="row">
997
                <div class="row">
1008
                	<div class="col-12  mt-3" style="height: 300px;overflow: scroll;">
998
                    <div class="col-12  mt-3" style="height: 300px;overflow: scroll;">
1009
                    	<table id="gridTableUploadUsers" style="width: 100%" class="table table-bordered">
999
                        <table id="gridTableUploadUsers" style="width: 100%" class="table table-bordered">
1010
                            <thead>
1000
                            <thead>
1011
                                <tr>
1001
                                <tr>
1012
                                    <th>LABEL_FIRST_NAME</th>
1002
                                    <th>LABEL_FIRST_NAME</th>
1013
                                    <th>LABEL_LAST_NAME</th>
1003
                                    <th>LABEL_LAST_NAME</th>
1014
                                    <th>LABEL_EMAIL</th>
1004
                                    <th>LABEL_EMAIL</th>
Línea 1017... Línea 1007...
1017
                                </tr>
1007
                                </tr>
1018
                            </thead>
1008
                            </thead>
1019
                            <tbody>
1009
                            <tbody>
1020
                            </tbody>
1010
                            </tbody>
1021
                        </table>
1011
                        </table>
1022
                    
1012
 
1023
                	</div>
1013
                    </div>
1024
                </div>
1014
                </div>
Línea 1025... Línea 1015...
1025
 
1015
 
Línea 1045... Línea 1035...
1045
            <!-- Modal Header -->
1035
            <!-- Modal Header -->
1046
            <div class="modal-header">
1036
            <div class="modal-header">
1047
                <h6 class="modal-title">LABEL_USER_FOR_COMPANY - LABEL_EDIT</h6>
1037
                <h6 class="modal-title">LABEL_USER_FOR_COMPANY - LABEL_EDIT</h6>
1048
            </div>
1038
            </div>
Línea 1049... Línea 1039...
1049
 
1039
 
1050
			<form name="form-edit" id="form-edit">
1040
            <form name="form-edit" id="form-edit">
1051
            <!-- Modal body -->
1041
                <!-- Modal body -->
1052
            <div class="modal-body">
1042
                <div class="modal-body">
1053
                
1043
 
1054
                    <div class="row">
1044
                    <div class="row">
1055
                        <div class="col-md-12 col-sm-12  mt-3">
1045
                        <div class="col-md-12 col-sm-12  mt-3">
1056
                        	<div class="form-check mb-3">
1046
                            <div class="form-check mb-3">
1057
                        	 	<input type="checkbox" name="backend" id="backend" value="y" class="form-check-input" style="width: 20px; height: 20px">                              <label for="backend" class="form-check-label">LABEL_ACCESS_BACKEND</label>
1047
                                <input type="checkbox" name="backend" id="backend" value="y" class="form-check-input" style="width: 20px; height: 20px"> <label for="backend" class="form-check-label">LABEL_ACCESS_BACKEND</label>
1058
                               
1048
 
1059
                            </div>
1049
                            </div>
1060
                        </div>
1050
                        </div>
1061
                    </div>
1051
                    </div>
1062
                    <div class="row">
1052
                    <div class="row">
Línea 1073... Línea 1063...
1073
                            </table>
1063
                            </table>
Línea 1074... Línea 1064...
1074
 
1064
 
1075
                        </div>
1065
                        </div>
Línea 1076... Línea 1066...
1076
                    </div>
1066
                    </div>
1077
 
1067
 
1078
           
1068
 
1079
            </div>
1069
                </div>
1080
         	<div class="modal-footer text-right">
1070
                <div class="modal-footer text-right">
1081
                        <button type="submit" class="btn btn-sm btn-primary">LABEL_SAVE</button>
1071
                    <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>
1072
                    <button type="button" class="btn btn-sm btn-light btn-cancel-modal">LABEL_CANCEL</button>
1083
                    </div>
1073
                </div>
1084
                </form>
1074
            </form>
1085
        </div>
1075
        </div>
Línea 1096... Línea 1086...
1096
            <!-- Modal Header -->
1086
            <!-- Modal Header -->
1097
            <div class="modal-header">
1087
            <div class="modal-header">
1098
                <h6 class="modal-title">LABEL_USERS</h6>
1088
                <h6 class="modal-title">LABEL_USERS</h6>
1099
            </div>
1089
            </div>
Línea 1100... Línea 1090...
1100
 
1090
 
1101
 <?php
1091
            <?php
1102
                $form = $this->formChangePassword;
1092
            $form = $this->formChangePassword;
1103
                $form->setAttributes([
1093
            $form->setAttributes([
1104
                    'method'    => 'post',
1094
                'method'    => 'post',
1105
                    'name'      => 'form-change-password',
1095
                'name'      => 'form-change-password',
1106
                    'id'        => 'form-change-password'
1096
                'id'        => 'form-change-password'
1107
                ]);
1097
            ]);
1108
 
1098
 
1109
                $form->prepare();
1099
            $form->prepare();
1110
                echo $this->form()->openTag($form);
1100
            echo $this->form()->openTag($form);
1111
                ?>
1101
            ?>
1112
            <div class="modal-body">
1102
            <div class="modal-body">
1113
               
1103
 
1114
               	<div class="row">
1104
                <div class="row">
1115
               		<div class="col-12 mt-3">
1105
                    <div class="col-12 mt-3">
1116
                    <?php
1106
                        <?php
1117
                    $element = $form->get('first_name');
1107
                        $element = $form->get('first_name');
1118
                    $element->setOptions(['label' => 'LABEL_FIRST_NAME']);
1108
                        $element->setOptions(['label' => 'LABEL_FIRST_NAME']);
1119
                    $element->setAttributes(['class' => 'form-control', 'readonly' => 'readonly']);
1109
                        $element->setAttributes(['class' => 'form-control', 'readonly' => 'readonly']);
1120
 
1110
 
1121
                    echo $this->formLabel($element);
1111
                        echo $this->formLabel($element);
1122
                    echo $this->formText($element);
1112
                        echo $this->formText($element);
1123
                    ?>
1113
                        ?>
1124
                    </div>
1114
                    </div>
1125
                </div>
1115
                </div>
1126
               	<div class="row">
1116
                <div class="row">
1127
               		<div class="col-12 mt-3">
1117
                    <div class="col-12 mt-3">
1128
                    <?php
1118
                        <?php
1129
                    $element = $form->get('last_name');
1119
                        $element = $form->get('last_name');
1130
                    $element->setOptions(['label' => 'LABEL_LAST_NAME']);
1120
                        $element->setOptions(['label' => 'LABEL_LAST_NAME']);
1131
                    $element->setAttributes(['class' => 'form-control', 'readonly' => 'readonly']);
1121
                        $element->setAttributes(['class' => 'form-control', 'readonly' => 'readonly']);
1132
 
1122
 
1133
                    echo $this->formLabel($element);
1123
                        echo $this->formLabel($element);
1134
                    echo $this->formText($element);
1124
                        echo $this->formText($element);
1135
                    ?>
1125
                        ?>
1136
                    </div>
1126
                    </div>
1137
                </div>
1127
                </div>
1138
               	<div class="row">
1128
                <div class="row">
1139
               		<div class="col-12 mt-3">
1129
                    <div class="col-12 mt-3">
1140
                    <?php
1130
                        <?php
1141
                    $element = $form->get('email');
1131
                        $element = $form->get('email');
1142
                    $element->setOptions(['label' => 'LABEL_EMAIL']);
1132
                        $element->setOptions(['label' => 'LABEL_EMAIL']);
1143
                    $element->setAttributes(['class' => 'form-control', 'readonly' => 'readonly']);
1133
                        $element->setAttributes(['class' => 'form-control', 'readonly' => 'readonly']);
1144
 
1134
 
1145
                    echo $this->formLabel($element);
1135
                        echo $this->formLabel($element);
1146
                    echo $this->formText($element);
-
 
1147
                    ?>
-
 
1148
                    </div>
-
 
1149
                </div>
-
 
1150
               	<div class="row">
-
 
1151
               		<div class="col-12 mt-3">
-
 
1152
                    <?php
-
 
1153
                    $element = $form->get('password');
-
 
1154
                    $element->setOptions(['label' => 'LABEL_PASSWORD']);
-
 
1155
                    $element->setAttributes(['class' => 'form-control']);
-
 
1156
 
-
 
1157
                    echo $this->formLabel($element);
-
 
1158
                    echo $this->formPassword($element);
-
 
1159
                    ?>
-
 
1160
                    </div>
-
 
1161
                </div>
-
 
1162
               	<div class="row">
-
 
1163
               		<div class="col-12 mt-3">
-
 
1164
                    <?php
-
 
1165
                    $element = $form->get('confirmation');
-
 
1166
                    $element->setOptions(['label' => 'LABEL_CONFIRMATION']);
-
 
1167
                    $element->setAttributes(['class' => 'form-control']);
-
 
1168
 
-
 
1169
                    echo $this->formLabel($element);
-
 
1170
                    echo $this->formPassword($element);
1136
                        echo $this->formText($element);
1171
                    ?>
1137
                        ?>
1172
                    </div>
1138
                    </div>
-
 
1139
                </div>
-
 
1140
                <div class="row">
-
 
1141
                    <div class="col-12 mt-3">
-
 
1142
                        <?php
-
 
1143
                        $element = $form->get('password');
-
 
1144
                        $element->setOptions(['label' => 'LABEL_PASSWORD']);
-
 
1145
                        $element->setAttributes(['class' => 'form-control']);
-
 
1146
 
-
 
1147
                        echo $this->formLabel($element);
-
 
1148
                        echo $this->formPassword($element);
-
 
1149
                        ?>
-
 
1150
                    </div>
-
 
1151
                </div>
-
 
1152
                <div class="row">
-
 
1153
                    <div class="col-12 mt-3">
-
 
1154
                        <?php
-
 
1155
                        $element = $form->get('confirmation');
-
 
1156
                        $element->setOptions(['label' => 'LABEL_CONFIRMATION']);
-
 
1157
                        $element->setAttributes(['class' => 'form-control']);
-
 
1158
 
-
 
1159
                        echo $this->formLabel($element);
-
 
1160
                        echo $this->formPassword($element);
-
 
1161
                        ?>
-
 
1162
                    </div>
-
 
1163
                </div>
Línea 1173... Línea -...
1173
                </div>
-
 
1174
 
1164
 
1175
 
1165
 
1176
                
1166
 
1177
            </div>
1167
            </div>
1178
            <div class="modal-footer text-right">
1168
            <div class="modal-footer text-right">
1179
                    <button type="submit" class="btn btn-sm btn-primary">LABEL_SAVE</button>
1169
                <button type="submit" class="btn btn-sm btn-primary">LABEL_SAVE</button>
Línea 1180... Línea 1170...
1180
                    <button type="button" class="btn btn-sm btn-light btn-cancel-modal">LABEL_CANCEL</button>
1170
                <button type="button" class="btn btn-sm btn-light btn-cancel-modal">LABEL_CANCEL</button>
1181
                </div>
1171
            </div>
1182
                <?php echo $this->form()->closeTag($form); ?>
1172
            <?php echo $this->form()->closeTag($form); ?>
1183
 
1173