Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 373 Rev 374
Línea 413... Línea 413...
413
     */
413
     */
414
    const renderSectionData = (data) => $("#rows").html($("#sectionTemplate").render(data, {
414
    const renderSectionData = (data) => $("#rows").html($("#sectionTemplate").render(data, {
415
        removeTags: removeTags,
415
        removeTags: removeTags,
416
        getAnswer: getAnswer,
416
        getAnswer: getAnswer,
417
        getStatus: getStatus,
417
        getStatus: getStatus,
418
        editQuestion: objFormGenerator.editQuestion
418
        editQuestion: objFormGenerator.editQuestion,
-
 
419
        doSomething: function(ev) {
-
 
420
    alert("do something. id: " + ev.target.id);
-
 
421
  }
419
    }));
422
    }));
420
    /**
423
    /**
421
     * Clear Div Section data 
424
     * Clear Div Section data 
422
     */
425
     */
423
    const clearSectionData = () => $("#rows").html('');
426
    const clearSectionData = () => $("#rows").html('');
Línea 526... Línea 529...
526
         <div class="table-responsive">
529
         <div class="table-responsive">
527
            <table class="table table-bordered">
530
            <table class="table table-bordered">
528
               <thead>
531
               <thead>
529
                  <tr>
532
                  <tr>
530
                     <th style="width: 40%;">LABEL_QUESTION</th>
533
                     <th style="width: 40%;">LABEL_QUESTION</th>
531
                     <th style="width: 36%;">LABEL_ANSWER</th>
534
                     <th style="width: 35%;">LABEL_ANSWER</th>
532
                     <th style="width: 22%;">LABEL_ACTIONS</th>
535
                     <th style="width: 25%;">LABEL_ACTIONS</th>
533
                  </tr>
536
                  </tr>
534
               </thead>
537
               </thead>
535
               {{for questions}}
538
               {{for questions}}
536
               <tbody>
539
               <tbody>
537
                  <tr class="tr-question">
540
                  <tr class="tr-question">
Línea 540... Línea 543...
540
                     <td>
543
                     <td>
541
                        {{if type == 'simple'  || type=='multiple' }}
544
                        {{if type == 'simple'  || type=='multiple' }}
542
                        {{:~getStatus( options,answer)}}
545
                        {{:~getStatus( options,answer)}}
543
                        {{else}}
546
                        {{else}}
544
                        {{if status}} 
547
                        {{if status}} 
-
 
548
                        {^{on ~doSomething}}
545
                        <button class="btn btn-danger btn-delete-question" >
549
                        <button class="btn btn-danger btn-delete-question" >
546
                        <i class="fa fa-times" aria-hidden="true"></i> LABEL_TO_CHECK LABEL_FAIL
550
                        <i class="fa fa-times" aria-hidden="true"></i> LABEL_TO_CHECK LABEL_FAIL
547
                        </button> 
551
                        </button> 
-
 
552
                        {{/on}}
548
                        {{else}}
553
                        {{else}}
-
 
554
                        {^{on ~doSomething}}
549
                        <button class="btn btn-success btn-delete-question" >
555
                        <button class="btn btn-success btn-delete-question" >
550
                        <i class="fa fa-check" aria-hidden="true"></i> LABEL_TO_CHECK LABEL_CORRECT
556
                        <i class="fa fa-check" aria-hidden="true"></i> LABEL_TO_CHECK LABEL_CORRECT
551
                        </button> 
557
                        </button> 
-
 
558
                        {{/on}}
552
                        {{/if}}
559
                        {{/if}}
553
                        {{/if}}
560
                        {{/if}}
554
                     </td>
561
                     </td>
555
                  </tr>
562
                  </tr>
556
               </tbody>
563
               </tbody>