Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 1021 Rev 1022
Línea 261... Línea 261...
261
        $('#modal-section').modal('show');
261
        $('#modal-section').modal('show');
262
    });
262
    });
263
    /**
263
    /**
264
     * Clicked edit section
264
     * Clicked edit section
265
     */
265
     */
266
    $('button.btn-edit-section').click(function(e) {
-
 
267
        e.preventDefault();
-
 
268
        var id = $(this).data('section');
-
 
269
        sections.map((item) => {
-
 
270
            if (section.id == id) {
-
 
Línea 271... Línea -...
271
 
-
 
272
                $('#form-section #id_section').val(item.section_id);
-
 
273
        $('#form-section #title-section').val(item.title);
266
 
274
        $('#form-section #text-text').val(item.text);
-
 
275
        $('#form-section #type-section').val(item.section);
267
    $(".btn-edit-section").on('click', function(event){
-
 
268
    console.log(0)
Línea 276... Línea -...
276
        $('#modal-section').modal('show');
-
 
277
 
-
 
278
                return;
-
 
279
            }
269
});
Línea 280... Línea 270...
280
        });
270
 
281
    });
271
   
282
 
272
 
283
    /**
273
    /**
284
     * Clicked edit section
-
 
285
     */
274
     * Clicked edit section
286
    $('button.btn-delete-section').click(function(e) {
275
     */
287
        e.preventDefault();
276
    $('button.btn-delete-section').click(function(e) {
288
        var id = $(this).data('section');
277
        var id = $(this).data('section');
289
        bootbox.confirm({
278
        bootbox.confirm({
Línea 678... Línea 667...
678
                <div class="table-responsive">
667
                <div class="table-responsive">
679
                    <table class="table table-bordered">
668
                    <table class="table table-bordered">
680
                        <thead>
669
                        <thead>
681
                            <tr>
670
                            <tr>
682
                                <th style="width: 10%;">LABEL_ELEMENT</th>
671
                                <th style="width: 10%;">LABEL_ELEMENT</th>
683
                                <th style="width: 50%;">LABEL_TEXT</th>
672
                                <th style="width: 40%;">LABEL_TEXT</th>
684
                                <th style="width: 10%;">LABEL_TYPE</th>
673
                                <th style="width: 10%;">LABEL_TYPE</th>
685
                                <th style="width: 20%;">LABEL_ACTIONS</th>
674
                                <th style="width: 30%;">LABEL_ACTIONS</th>
686
                            </tr>
675
                            </tr>
687
                        </thead>
676
                        </thead>
688
                        <tbody>
677
                        <tbody>
689
                            <tr class="tr-section">
678
                            <tr class="tr-section">
690
                                <td class="text-left">LABEL_SECTION</td>
679
                                <td class="text-left">LABEL_SECTION</td>
Línea 695... Línea 684...
695
                                    {{if type == 'multiple'}} Multiple {{/if}}
684
                                    {{if type == 'multiple'}} Multiple {{/if}}
Línea 696... Línea 685...
696
            
685
            
697
 
686
 
698
                                </td>
687
                                </td>
Línea 699... Línea 688...
699
                                <td>
688
                                <td>
Línea 700... Línea 689...
700
                                    <button class="btn btn-default btn-edit-section" data-section="{{:id_section}}" data-toggle="tooltip"  data-original-title="LABEL_EDIT LABEL_SECTION"><i class="fa fa-edit" aria-hidden="true"></i> LABEL_EDIT LABEL_SECTION </button>
689
                                    <button type="button" class="btn btn-default btn-edit-section" data-section="{{:id_section}}" data-toggle="tooltip"  data-original-title="LABEL_EDIT LABEL_SECTION"><i class="fa fa-edit" aria-hidden="true"></i> LABEL_EDIT LABEL_SECTION </button>
701
 
690
 
702
                                    <button  class="btn btn-default btn-delete-section" data-section="{{:id_section}}" data-toggle="tooltip"  data-original-title="LABEL_DELETE LABEL_SECTION"><i class="fa fa-ban" aria-hidden="true"></i> LABEL_DELETE LABEL_SECTION </button> 
691
                                    <button  type="button" class="btn btn-default btn-delete-section" data-section="{{:id_section}}" data-toggle="tooltip"  data-original-title="LABEL_DELETE LABEL_SECTION"><i class="fa fa-ban" aria-hidden="true"></i> LABEL_DELETE LABEL_SECTION </button> 
703
 
692
 
704
                                     {{if type == 'multiple'}}
693
                                     {{if type == 'multiple'}}
705
                                    <button  class="btn btn-default btn-add-option" data-section="{{:id_section}}" data-toggle="tooltip"  data-original-title="LABEL_ADD  LABEL_OPTION"><i class="fa fa-plus" aria-hidden="true"></i> LABEL_ADD  LABEL_OPTION </button> 
694
                                    <button type="button" class="btn btn-default btn-add-option" data-section="{{:id_section}}" data-toggle="tooltip"  data-original-title="LABEL_ADD  LABEL_OPTION"><i class="fa fa-plus" aria-hidden="true"></i> LABEL_ADD  LABEL_OPTION </button> 
706
                                    {{/if}}
695
                                    {{/if}}