Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 2507 Rev 2508
Línea 201... Línea 201...
201
                'data': $('#form').serialize()
201
                'data': $('#form').serialize()
202
            }).done(function(response) {
202
            }).done(function(response) {
203
                NProgress.start();
203
                NProgress.start();
204
                if (response['success']) {
204
                if (response['success']) {
205
                    $.fn.showSuccess(response['data']);
205
                    $.fn.showSuccess(response['data']);
-
 
206
                    var slug = $('#interview #section-slug').val();
-
 
207
                    if (slug) {
-
 
208
                        objFormGenerator.editSection(
-
 
209
                            $('#interview #section-slug').val(),
-
 
210
                            $('#interview #section-text').val(),
-
 
211
                            $('#interview #section-value').val()
-
 
212
                        );
-
 
213
                    } else {
-
 
214
                        objFormGenerator.addSection(
-
 
215
                            $('#interview #section-text').val(),
-
 
216
                            $('#interview #section-value').val()
-
 
217
                        );
-
 
218
                    }
206
                    $('#content').show();
219
                    $('#content').show();
207
                    $('#row-form').hide();
220
                    $('#row-form').hide();
208
                    gridTable.api().ajax.reload(null, false);
221
                    gridTable.api().ajax.reload(null, false);
209
                } else {
222
                } else {
210
                    validator.resetForm();
223
                    validator.resetForm();
Línea 387... Línea 400...
387
                          <!-- ckeditor -->
400
                          <!-- ckeditor -->
388
                          <textarea  name="text-option" id="text-option" rows="5" class="form-control"></textarea>
401
                          <textarea  name="text-option" id="text-option" rows="5" class="form-control"></textarea>
389
                    </div>
402
                    </div>
390
                   	</div>
403
                   	</div>
391
                    <div class="card-footer clearfix">
404
                    <div class="card-footer clearfix">
-
 
405
                    <button type="submit" form="form-main" class="btn btn-info btn-form-save-continue">LABEL_SAVE & LABEL_CONTINUE</button>
392
                        <button type="button" class="btn btn-primary btn-behavior-submit">LABEL_SAVE</button>
406
                    <button type="button" class="btn btn-primary btn-form-save-close">LABEL_SAVE & LABEL_CLOSE</button>
393
                        <button type="button" class="btn btn-secondary" data-dismiss="modal">LABEL_CLOSE</button>  
407
                    <button type="button" class="btn btn-secondary btn-edit-cancel">LABEL_CANCEL</button> 
394
                    </div>
408
                    </div>
395
                </div>
409
                </div>
396
            </div>
410
            </div>
397
        </div>
411
        </div>
398
 	</div>
412
 	</div>
399
</section>
413
</section>
Línea 400... Línea 414...
400
 
414
 
401
<script id="competenciesTemplate" type="text/x-jsrender">
415
<script id="competenciesTemplate" type="text/x-jsrender">
402
<table class="table table-bordered">  
416
<table class="table table-bordered" id="panel-{{:slug_section}}>  
403
    <thead>
417
    <thead>
404
        <tr>
418
        <tr>
405
           <th style="width: 50%;">LABEL_ELEMENT</th>
419
           <th style="width: 50%;">LABEL_ELEMENT</th>
406
           <th style="width: 50%;">LABEL_TITLE</th>
420
           <th style="width: 50%;">LABEL_TITLE</th>
Línea 416... Línea 430...
416
            {{for behaviors}}
430
            {{for behaviors}}
417
                <tr>
431
                <tr>
418
                   <td class="text-left">--LABEL_CONDUCT</td>
432
                   <td class="text-left">--LABEL_CONDUCT</td>
419
                   <td class="text-left">
433
                   <td class="text-left">
420
                      {{:description}}
434
                      {{:description}}
421
                   </td> 
435
                   </td>
-
 
436
                   <td>
-
 
437
                        {{if level == '0'}} LABEL_NA {{/if}} 
-
 
438
                        {{if level == '1' }} LABEL_LEVEL_ONE {{/if}} 
-
 
439
                        {{if level == '2' }} LABEL_LEVEL_TWO {{/if}} 
-
 
440
                        {{if level == '3' }} LABEL_LEVEL_THREE {{/if}} 
-
 
441
                        {{if level == '4' }} LABEL_LEVEL_FOUR {{/if}} 
-
 
442
                    </td>
-
 
443
                    <td>
-
 
444
                        <button type="button"  class="btn btn-default btn-edit-behavior" data-competency="{{:competency_id}}" data-behavior="{{:behavior_id}}" data-toggle="tooltip"  data-original-title="LABEL_EDIT LABEL_LEVEL"><i class="fa fa-edit" aria-hidden="true"></i> LABEL_EDIT LABEL_LEVEL</button> 
-
 
445
                    </td> 
422
                </tr>
446
                </tr>
423
                <tr>
447
                <tr>
424
                <td colspan="2">
448
                <td colspan="2">
425
                    <label for="textarea-{{:competency_uuid}}">LABEL_COMMENT</label>
449
                    <label for="textarea-{{:competency_uuid}}">LABEL_COMMENT</label>
426
                    <textarea
450
                    <textarea