Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16927 Rev 16929
Línea 30... Línea 30...
30
$this->inlineScript()->appendFile($this->basePath('assets/vendors/nprogress/nprogress.js'));
30
$this->inlineScript()->appendFile($this->basePath('assets/vendors/nprogress/nprogress.js'));
Línea 31... Línea 31...
31
 
31
 
Línea 32... Línea -...
32
$this->inlineScript()->appendFile($this->basePath('assets/vendors/ckeditor/ckeditor.js'));
-
 
33
 
-
 
34
 
-
 
-
 
32
$this->inlineScript()->appendFile($this->basePath('assets/vendors/ckeditor/ckeditor.js'));
-
 
33
 
-
 
34
 
Línea 35... Línea 35...
35
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/jquery.validate.js'));
35
 
36
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/additional-methods.js'));
36
 
Línea 94... Línea 94...
94
                } else {
94
                } else {
95
                    error.insertAfter(element);
95
                    error.insertAfter(element);
96
                }
96
                }
97
            }
97
            }
98
        });
98
        });
99
 
-
 
100
        $.validator.setDefaults({
-
 
101
            debug: true,
-
 
102
            highlight: function(element) {
-
 
103
                $(element).addClass('form-group-has-error');
-
 
104
            },
-
 
105
            unhighlight: function(element) {
-
 
106
                $(element).removeClass('form-group-has-error');
-
 
107
            },
-
 
108
            errorElement: 'div',
-
 
109
            errorClass: 'form-group-invalid-feedback',
-
 
110
            errorPlacement: function(error, element) {
-
 
111
                if(element.parent('.form-group').length) {
-
 
112
                    error.insertAfter(element.parent());
-
 
113
                } else if(element.parent('.toggle').length) {
-
 
114
                    error.insertAfter(element.parent().parent());
-
 
115
                } else {
-
 
116
                    error.insertAfter(element);
-
 
117
                }
-
 
118
            }
-
 
119
        });
-
 
120
    
-
 
121
        $.fn.showFormErrorValidator = function(fieldname, errors) {
-
 
122
            var field = $(fieldname);
-
 
123
            if(field) {
-
 
124
                $(field).addClass('form-group-has-error');
-
 
Línea 125... Línea -...
125
    
-
 
126
 
-
 
127
                var error = $('<div id="' + fieldname +'-error" class="form-group-invalid-feedback">' + errors + '</div>');
-
 
128
                if(field.parent('.form-group').length) {
-
 
129
                    error.insertAfter(field.parent());
-
 
130
                } else  if(field.parent('.toggle').length) {
-
 
131
                    error.insertAfter(field.parent().parent());
-
 
132
                } else {
-
 
133
                    error.insertAfter(field);
-
 
134
                }
-
 
135
            }
-
 
136
        };
-
 
137
 
-
 
138
 
99
    
139
 
100
 
140
        var allowInvite = $allowInvite;
101
        var allowInvite = $allowInvite;
141
        var allowAccept = $allowAccept;
102
        var allowAccept = $allowAccept;
142
        var allowCancel = $allowCancel;
103
        var allowCancel = $allowCancel;
Línea 1106... Línea 1067...
1106
            <!-- Modal Header -->
1067
            <!-- Modal Header -->
1107
            <div class="modal-header">
1068
            <div class="modal-header">
1108
                <h3 class="modal-title">LABEL_USERS</h3>
1069
                <h3 class="modal-title">LABEL_USERS</h3>
1109
            </div>
1070
            </div>
Línea 1110... Línea -...
1110
 
-
 
1111
            <!-- Modal body -->
-
 
1112
            <div class="modal-body">
1071
 
1113
                <?php
1072
 <?php
1114
                $form = $this->formChangePassword;
1073
                $form = $this->formChangePassword;
1115
                $form->setAttributes([
1074
                $form->setAttributes([
1116
                    'method'    => 'post',
1075
                    'method'    => 'post',
1117
                    'name'      => 'form-change-password',
1076
                    'name'      => 'form-change-password',
1118
                    'id'        => 'form-change-password'
1077
                    'id'        => 'form-change-password'
Línea 1119... Línea 1078...
1119
                ]);
1078
                ]);
1120
 
1079
 
1121
                $form->prepare();
1080
                $form->prepare();
-
 
1081
                echo $this->form()->openTag($form);
-
 
1082
                ?>
1122
                echo $this->form()->openTag($form);
1083
            <div class="modal-body">
-
 
1084
               
1123
                ?>
1085
               	<div class="row">
1124
                <div class="form-group">
1086
               		<div class="col-12 mt-3">
1125
                    <?php
1087
                    <?php
1126
                    $element = $form->get('first_name');
1088
                    $element = $form->get('first_name');
Línea 1127... Línea 1089...
1127
                    $element->setOptions(['label' => 'LABEL_FIRST_NAME']);
1089
                    $element->setOptions(['label' => 'LABEL_FIRST_NAME']);
1128
                    $element->setAttributes(['class' => 'form-control', 'readonly' => 'readonly']);
1090
                    $element->setAttributes(['class' => 'form-control', 'readonly' => 'readonly']);
1129
 
1091
 
-
 
1092
                    echo $this->formLabel($element);
1130
                    echo $this->formLabel($element);
1093
                    echo $this->formText($element);
1131
                    echo $this->formText($element);
1094
                    ?>
-
 
1095
                    </div>
1132
                    ?>
1096
                </div>
1133
                </div>
1097
               	<div class="row">
1134
                <div class="form-group">
1098
               		<div class="col-12 mt-3">
1135
                    <?php
1099
                    <?php
Línea 1136... Línea 1100...
1136
                    $element = $form->get('last_name');
1100
                    $element = $form->get('last_name');
1137
                    $element->setOptions(['label' => 'LABEL_LAST_NAME']);
1101
                    $element->setOptions(['label' => 'LABEL_LAST_NAME']);
1138
                    $element->setAttributes(['class' => 'form-control', 'readonly' => 'readonly']);
1102
                    $element->setAttributes(['class' => 'form-control', 'readonly' => 'readonly']);
-
 
1103
 
1139
 
1104
                    echo $this->formLabel($element);
1140
                    echo $this->formLabel($element);
1105
                    echo $this->formText($element);
-
 
1106
                    ?>
1141
                    echo $this->formText($element);
1107
                    </div>
1142
                    ?>
1108
                </div>
1143
                </div>
1109
               	<div class="row">
1144
                <div class="form-group">
1110
               		<div class="col-12 mt-3">
Línea 1145... Línea 1111...
1145
                    <?php
1111
                    <?php
1146
                    $element = $form->get('email');
1112
                    $element = $form->get('email');
1147
                    $element->setOptions(['label' => 'LABEL_EMAIL']);
1113
                    $element->setOptions(['label' => 'LABEL_EMAIL']);
-
 
1114
                    $element->setAttributes(['class' => 'form-control', 'readonly' => 'readonly']);
1148
                    $element->setAttributes(['class' => 'form-control', 'readonly' => 'readonly']);
1115
 
1149
 
1116
                    echo $this->formLabel($element);
-
 
1117
                    echo $this->formText($element);
1150
                    echo $this->formLabel($element);
1118
                    ?>
1151
                    echo $this->formText($element);
1119
                    </div>
1152
                    ?>
1120
                </div>
1153
                </div>
1121
               	<div class="row">
Línea 1154... Línea 1122...
1154
                <div class="form-group">
1122
               		<div class="col-12 mt-3">
1155
                    <?php
1123
                    <?php
1156
                    $element = $form->get('password');
1124
                    $element = $form->get('password');
-
 
1125
                    $element->setOptions(['label' => 'LABEL_PASSWORD']);
1157
                    $element->setOptions(['label' => 'LABEL_PASSWORD']);
1126
                    $element->setAttributes(['class' => 'form-control']);
1158
                    $element->setAttributes(['class' => 'form-control']);
1127
 
-
 
1128
                    echo $this->formLabel($element);
1159
 
1129
                    echo $this->formPassword($element);
1160
                    echo $this->formLabel($element);
1130
                    ?>
1161
                    echo $this->formPassword($element);
1131
                    </div>
1162
                    ?>
1132
                </div>
Línea 1163... Línea 1133...
1163
                </div>
1133
               	<div class="row">
1164
                <div class="form-group">
1134
               		<div class="col-12 mt-3">
1165
                    <?php
1135
                    <?php
-
 
1136
                    $element = $form->get('confirmation');
1166
                    $element = $form->get('confirmation');
1137
                    $element->setOptions(['label' => 'LABEL_CONFIRMATION']);
Línea -... Línea 1138...
-
 
1138
                    $element->setAttributes(['class' => 'form-control']);
-
 
1139
 
1167
                    $element->setOptions(['label' => 'LABEL_CONFIRMATION']);
1140
                    echo $this->formLabel($element);
1168
                    $element->setAttributes(['class' => 'form-control']);
1141
                    echo $this->formPassword($element);
1169
 
1142
                    ?>
1170
                    echo $this->formLabel($element);
1143
                    </div>
1171
                    echo $this->formPassword($element);
1144
                </div>
1172
                    ?>
-
 
Línea 1173... Línea 1145...
1173
                </div>
1145
 
1174
 
1146
 
1175
 
1147
                
1176
                <div class="form-group">
1148
            </div>