Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 16918 Rev 16929
Línea 18... Línea 18...
18
 
18
 
19
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/nprogress/nprogress.css'));
19
$this->headLink()->appendStylesheet($this->basePath('assets/vendors/nprogress/nprogress.css'));
Línea 20... Línea -...
20
$this->inlineScript()->appendFile($this->basePath('assets/vendors/nprogress/nprogress.js'));
-
 
21
 
-
 
22
 
-
 
-
 
20
$this->inlineScript()->appendFile($this->basePath('assets/vendors/nprogress/nprogress.js'));
-
 
21
 
-
 
22
 
Línea 23... Línea 23...
23
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/jquery.validate.js'));
23
 
24
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/additional-methods.js'));
24
 
Línea 25... Línea 25...
25
$this->inlineScript()->appendFile($this->basePath('assets/vendors/jquery-validation/localization/messages_es.js'));
25
 
Línea 596... Línea 596...
596
        }).fail(function(jqXHR, textStatus, errorThrown) {
596
        }).fail(function(jqXHR, textStatus, errorThrown) {
597
            $.fn.showError(textStatus);
597
            $.fn.showError(textStatus);
598
        });
598
        });
599
    });
599
    });
Línea 600... Línea -...
600
 
-
 
601
    $.validator.setDefaults({
-
 
602
        debug: true,
-
 
603
        highlight: function(element) {
-
 
604
            $(element).addClass('is-invalid');
-
 
605
        },
-
 
606
        unhighlight: function(element) {
-
 
607
            $(element).removeClass('is-invalid');
-
 
608
        },
-
 
609
        errorElement: 'span',
-
 
610
        errorClass: 'error invalid-feedback',
-
 
611
        errorPlacement: function(error, element) {
-
 
612
            if (element.parent('.form-group').length) {
-
 
613
                error.insertAfter(element);
-
 
614
            } else if (element.parent('.toggle').length) {
-
 
615
                error.insertAfter(element.parent().parent());
-
 
616
            } else {
-
 
617
                error.insertAfter(element.parent());
-
 
618
            }
-
 
619
        }
-
 
Línea 620... Línea 600...
620
    });
600
 
621
 
601
 
622
    var validatorForm = $('#form-main').validate({
602
    var validatorForm = $('#form-main').validate({
623
        debug: true,
603
        debug: true,
Línea 635... Línea 615...
635
            },
615
            },
636
            'status': {
616
            'status': {
637
                required: false,
617
                required: false,
638
            },
618
            },
639
        },
619
        },
640
        highlight: function(element) {
-
 
641
            $(element).closest('.form-group').addClass('has-error');
-
 
642
        },
-
 
643
        unhighlight: function(element) {
-
 
644
            $(element).closest('.form-group').removeClass('has-error');
-
 
645
        },
620
 
646
        errorPlacement: function(error, element) {
-
 
647
            if (element.attr("data-error-container")) {
-
 
648
                error.appendTo(element.attr("data-error-container"));
-
 
649
            } else {
-
 
650
                error.insertAfter(element);
-
 
651
            }
-
 
652
        },
-
 
653
        submitHandler: function(form) {
621
        submitHandler: function(form) {
Línea 654... Línea 622...
654
 
622
 
655
            if(!objFormGenerator.isValid()) {
623
            if(!objFormGenerator.isValid()) {
656
                return false;
624
                return false;
Línea 1202... Línea 1170...
1202
                    <div class="modal-header">
1170
                    <div class="modal-header">
1203
                        <h6 class="modal-title">LABEL_ADD LABEL_SECTION</h6>
1171
                        <h6 class="modal-title">LABEL_ADD LABEL_SECTION</h6>
1204
                         <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="btn-close"></button>
1172
                         <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="btn-close"></button>
1205
                    </div>
1173
                    </div>
1206
                    <div class="modal-body">
1174
                    <div class="modal-body">
1207
                        <div class="form-group">
1175
                        <div class="row">
-
 
1176
                        	<div class="col-12 mt-3">
1208
                            <label for="section-name">LABEL_FIRST_NAME</label>
1177
                            <label for="section-name">LABEL_FIRST_NAME</label>
1209
                            <input type="text" name="section-name" id="section-name" class="form-control" maxlength="50" value="" />
1178
                            <input type="text" name="section-name" id="section-name" class="form-control" maxlength="50" value="" />
-
 
1179
                            </div>
1210
                        </div>
1180
                        </div>
1211
                        <div class="form-group">
1181
                        <div class="row">
-
 
1182
                        	<div class="col-12 mt-3">
1212
                            <label for="section-text">LABEL_TEXT</label>
1183
                            <label for="section-text">LABEL_TEXT</label>
1213
                            <!--  ckeditor -->
1184
                            <!--  ckeditor -->
1214
                            <textarea name="section-text" id="section-text" rows="5" class="ckeditor form-control"></textarea>
1185
                            <textarea name="section-text" id="section-text" rows="5" class="ckeditor form-control"></textarea>
-
 
1186
                            </div>
1215
                        </div>
1187
                        </div>
1216
                    </div>
1188
                    </div>
1217
                    <div class="modal-footer text-right">
1189
                    <div class="modal-footer text-right">
1218
                        <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
1190
                        <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
1219
                        <button type="button" class="btn btn-light " data-bs-dismiss="modal" aria-label="btn-close">LABEL_CLOSE</button>
1191
                        <button type="button" class="btn btn-light " data-bs-dismiss="modal" aria-label="btn-close">LABEL_CLOSE</button>
Línea 1236... Línea 1208...
1236
                        <h6 class="modal-title">LABEL_ADD LABEL_QUESTION</h6>
1208
                        <h6 class="modal-title">LABEL_ADD LABEL_QUESTION</h6>
1237
                         <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="btn-close"></button>
1209
                         <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="btn-close"></button>
Línea 1238... Línea 1210...
1238
 
1210
 
1239
                    </div>
1211
                    </div>
1240
                    <div class="modal-body">
1212
                    <div class="modal-body">
-
 
1213
                        <div class="row">
1241
                        <div class="form-group">
1214
                        	<div class="col-12 mt-3">
1242
                            <label for="question-text">LABEL_TEXT</label>
1215
                            <label for="question-text">LABEL_TEXT</label>
1243
                            <!--  ckeditor -->
1216
                            <!--  ckeditor -->
-
 
1217
                            <textarea name="question-text" id="question-text" rows="5" class="ckeditor form-control"></textarea>
1244
                            <textarea name="question-text" id="question-text" rows="5" class="ckeditor form-control"></textarea>
1218
                            </div>
1245
                        </div>
1219
                        </div>
-
 
1220
                        <div class="row">
1246
                        <div class="form-group">
1221
                        	<div class="col-12 mt-3">
1247
                            <label for="question-type">LABEL_TYPE</label>
1222
                            <label for="question-type">LABEL_TYPE</label>
1248
                            <select name="question-type" id="question-type" class="form-control">
1223
                            <select name="question-type" id="question-type" class="form-control">
1249
                                <option value="simple">LABEL_SINGLE_SELECTION</option>
1224
                                <option value="simple">LABEL_SINGLE_SELECTION</option>
1250
                                <option value="multiple">LABEL_MULTIPLE_SELECTION</option>
1225
                                <option value="multiple">LABEL_MULTIPLE_SELECTION</option>
Línea 1251... Línea 1226...
1251
                                <option value="range1to5">LABEL_RANGE_1_5</option>
1226
                                <option value="range1to5">LABEL_RANGE_1_5</option>
-
 
1227
 
1252
 
1228
                            </select>
1253
                            </select>
1229
                            </div>
1254
                        </div>
1230
                        </div>
1255
                    </div>
1231
                    </div>
1256
                    <div class="modal-footer text-right">
1232
                    <div class="modal-footer text-right">
Línea 1276... Línea 1252...
1276
                    <div class="modal-header">
1252
                    <div class="modal-header">
1277
                        <h6 class="modal-title">LABEL_OPTION</h6>
1253
                        <h6 class="modal-title">LABEL_OPTION</h6>
1278
                         <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="btn-close"></button>
1254
                         <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="btn-close"></button>
1279
                    </div>
1255
                    </div>
1280
                    <div class="modal-body">
1256
                    <div class="modal-body">
1281
                        <div class="form-group">
1257
                        <div class="row">
-
 
1258
                        	<div class="col-12 mt-3">
1282
                            <label for="option-text">LABEL_TEXT</label>
1259
                            <label for="option-text">LABEL_TEXT</label>
1283
                            <!--  ckeditor -->
1260
                            <!--  ckeditor -->
1284
                            <textarea name="option-text" id="option-text" rows="5" class="ckeditor form-control"></textarea>
1261
                            <textarea name="option-text" id="option-text" rows="5" class="ckeditor form-control"></textarea>
-
 
1262
                            </div>
1285
                        </div>
1263
                        </div>
1286
                    </div>
1264
                    </div>
1287
                    <div class="modal-footer text-right">
1265
                    <div class="modal-footer text-right">
1288
                        <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
1266
                        <button type="submit" class="btn btn-primary">LABEL_SAVE</button>
1289
                        <button type="button" class="btn btn-light " data-bs-dismiss="modal" aria-label="btn-close">LABEL_CLOSE</button>
1267
                        <button type="button" class="btn btn-light " data-bs-dismiss="modal" aria-label="btn-close">LABEL_CLOSE</button>