Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 388 Rev 389
Línea 422... Línea 422...
422
        tableForm.fnDraw();
422
        tableForm.fnDraw();
423
    });
423
    });
424
    /**
424
    /**
425
     * Clicked edit question
425
     * Clicked edit question
426
     */
426
     */
427
    $('body').on('click', 'button.btn-add-status', function(e) {
427
     $('.btn-add-status').click(function(e) {
428
        objFormGenerator.editQuestion(
428
        objFormGenerator.editQuestion(
429
            $(this).data('section'),
429
            $(this).data('section'),
430
            $(this).data('question'),
430
            $(this).data('question'),
431
            true
431
            true
432
        );
432
        );
Línea 446... Línea 446...
446
$this->inlineScript()->captureEnd();
446
$this->inlineScript()->captureEnd();
447
?>
447
?>
Línea 448... Línea 448...
448
 
448
 
449
<!-- Content Header (Page header) -->
449
<!-- Content Header (Page header) -->
450
<section class="content-header">
450
<section class="content-header">
451
   <div class="container-fluid">
451
    <div class="container-fluid">
452
      <div class="row mb-2">
452
        <div class="row mb-2">
453
         <div class="col-sm-12">
453
            <div class="col-sm-12">
454
            <h1>LABEL_REVIEWS</h1>
454
                <h1>LABEL_REVIEWS</h1>
455
         </div>
455
            </div>
456
      </div>
456
        </div>
457
   </div>
457
    </div>
458
   <!-- /.container-fluid -->
458
    <!-- /.container-fluid -->
459
</section>
459
</section>
460
<section class="content" style="padding: 13px;">
460
<section class="content" style="padding: 13px;">
461
<div class="container-fluid" id="row-forms">
461
    <div class="container-fluid" id="row-forms">
462
   <div class="row">
462
        <div class="row">
463
      <div class="col-12">
463
            <div class="col-12">
464
         <div class="card">
464
                <div class="card">
465
            <div class="card-body">
465
                    <div class="card-body">
466
               <table id="gridTable" class="table   table-hover">
466
                        <table id="gridTable" class="table   table-hover">
467
                  <thead>
467
                            <thead>
468
                     <tr>
468
                                <tr>
469
                        <th>LABEL_USER</th>
469
                                    <th>LABEL_USER</th>
470
                        <th>LABEL_NAME</th>
470
                                    <th>LABEL_NAME</th>
471
                        <th>LABEL_LANGUAGE</th>
471
                                    <th>LABEL_LANGUAGE</th>
472
                        <th>LABEL_STATUS</th>
472
                                    <th>LABEL_STATUS</th>
473
                        <th>LABEL_ACTIONS</th>
473
                                    <th>LABEL_ACTIONS</th>
474
                     </tr>
474
                                </tr>
475
                  </thead>
475
                            </thead>
476
                  <tbody></tbody>
476
                            <tbody></tbody>
477
               </table>
477
                        </table>
478
            </div>
478
                    </div>
479
            <div class="card-footer clearfix">
479
                    <div class="card-footer clearfix">
480
               <div style="float:right;">
480
                        <div style="float:right;">
481
                  <button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH </button>
481
                            <button type="button" class="btn btn-info btn-refresh"><i class="fa fa-refresh"></i> LABEL_REFRESH </button>
482
               </div>
482
                        </div>
483
            </div>
-
 
484
         </div>
-
 
485
      </div>
-
 
486
   </div>
-
 
487
</div>
-
 
488
<!-- Create/Edit Form -->
-
 
489
<div class="row" id="row-edit" style="display: none">
-
 
490
   <div class="col-xs-12 col-md-12">
-
 
491
      <form action="#" name="form-main" id="form-main">
-
 
492
         <div class="form-group">
-
 
493
            <label for="form-status">LABEL_USER:</label>
-
 
494
            <div id="user"></div>
-
 
495
         </div>
-
 
496
         <div class="form-group">
-
 
497
            <label for="form-status">LABEL_FORM:</label>
-
 
498
            <div id="name"></div>
-
 
499
         </div>
-
 
500
         <div class="form-group">
-
 
501
            <label for="form-status">LABEL_DESCRIPTION:</label>
-
 
502
            <div id="text"></div>
-
 
503
         </div>
-
 
504
         <div class="form-group">
-
 
505
            <label for="form-status">LABEL_STATUS:</label>
-
 
506
            <select name="form-status" id="form-status" class="form-control">
-
 
507
               <option value="<?php echo $pending; ?>">LABEL_PENDING</option>
-
 
508
               <option value="<?php echo $review; ?>">LABEL_REVIEW</option>
-
 
509
               <option value="<?php echo $completed; ?>">LABEL_COMPLETED</option>
-
 
510
            </select>
483
                    </div>
511
         </div>
-
 
512
         <div class="row">
-
 
513
            <div class="col-xs-12 col-md-12">
-
 
514
               <div class="panel-group" id="rows"></div>
484
                </div>
515
            </div>
485
            </div>
-
 
486
        </div>
-
 
487
    </div>
-
 
488
    <!-- Create/Edit Form -->
-
 
489
    <div class="row" id="row-edit" style="display: none">
-
 
490
        <div class="col-xs-12 col-md-12">
-
 
491
            <form action="#" name="form-main" id="form-main">
-
 
492
                <div class="form-group">
-
 
493
                    <label for="form-status">LABEL_USER:</label>
-
 
494
                    <div id="user"></div>
-
 
495
                </div>
-
 
496
                <div class="form-group">
-
 
497
                    <label for="form-status">LABEL_FORM:</label>
-
 
498
                    <div id="name"></div>
-
 
499
                </div>
-
 
500
                <div class="form-group">
-
 
501
                    <label for="form-status">LABEL_DESCRIPTION:</label>
-
 
502
                    <div id="text"></div>
-
 
503
                </div>
-
 
504
                <div class="form-group">
-
 
505
                    <label for="form-status">LABEL_STATUS:</label>
-
 
506
                    <select name="form-status" id="form-status" class="form-control">
-
 
507
                        <option value="<?php echo $pending; ?>">LABEL_PENDING</option>
-
 
508
                        <option value="<?php echo $review; ?>">LABEL_REVIEW</option>
-
 
509
                        <option value="<?php echo $completed; ?>">LABEL_COMPLETED</option>
-
 
510
                    </select>
-
 
511
                </div>
-
 
512
                <div class="row">
-
 
513
                    <div class="col-xs-12 col-md-12">
-
 
514
                        <div class="panel-group" id="rows"></div>
-
 
515
                    </div>
516
         </div>
516
                </div>
517
         <div class="form-group">
517
                <div class="form-group">
518
            <button type="button" class="btn btn-primary btn-form-save-close">LABEL_SAVE</button>
518
                    <button type="button" class="btn btn-primary btn-form-save-close">LABEL_SAVE</button>
519
            <button type="button" class="btn btn-secondary btn-edit-cancel">LABEL_CANCEL</button>
519
                    <button type="button" class="btn btn-secondary btn-edit-cancel">LABEL_CANCEL</button>
520
         </div>
520
                </div>
521
      </form>
521
            </form>
522
   </div>
522
        </div>
523
</div>
523
    </div>
Línea 524... Línea 524...
524
<!-- Create/Edit Form-->
524
    <!-- Create/Edit Form-->
525
 
525
 
526
    <!---Template Sections --->
526
    <!---Template Sections --->
527
    <script id="sectionTemplate" type="text/x-jsrender">
527
    <script id="sectionTemplate" type="text/x-jsrender">
528
    <div class="panel panel-default" id="panel-{{:slug_section}}">
528
        <div class="panel panel-default" id="panel-{{:slug_section}}">
529
   <div class="panel-heading">
529
   <div class="panel-heading">
530
      <h4 class="panel-title">
530
      <h4 class="panel-title">
531
         <a class="accordion-toggle" data-toggle="collapse" aria-expanded="true" data-parent="#panel-{{:slug_section}}" href="#collapse-{{:slug_section}}">
531
         <a class="accordion-toggle" data-toggle="collapse" aria-expanded="true" data-parent="#panel-{{:slug_section}}" href="#collapse-{{:slug_section}}">
Línea 550... Línea 550...
550
               <tbody>
550
               <tbody>
551
                  <tr class="tr-question">
551
                  <tr class="tr-question">
552
                     <td class="text-left">{{:~removeTags(text)}} </td>
552
                     <td class="text-left">{{:~removeTags(text)}} </td>
553
                     <td>{{:~getAnswer(type,options,answer)}}</td>
553
                     <td>{{:~getAnswer(type,options,answer)}}</td>
554
                     <td>
554
                     <td>
555
 
-
 
556
             
-
 
557
 
-
 
558
 
-
 
559
               
-
 
560
 
-
 
561
                        {{if type == 'simple'  || type=='multiple' }}
555
                        {{if type == 'simple'  || type=='multiple' }}
562
                        {{:~getStatus( options,answer)}}
556
                        {{:~getStatus( options,answer)}}
563
                        {{else}}
557
                        {{else}}
564
                        {{if status}} 
558
                        {{if status}} 
565
                       
-
 
566
                 
-
 
567
 
-
 
568
                        <button type="button"  class="btn btn-danger btn-remove-status" 
559
                        <button type="button"  class="btn btn-danger btn-remove-status" 
569
                        data-section="{{:slug_section}}" data-question="{{:slug_question}}"
560
                           data-section="{{:slug_section}}" data-question="{{:slug_question}}"
570
                        >
561
                           >
571
                        <i class="fa fa-times" aria-hidden="true"></i> LABEL_TO_CHECK LABEL_FAIL
562
                        <i class="fa fa-times" aria-hidden="true"></i> LABEL_TO_CHECK LABEL_FAIL
572
                        </button> 
563
                        </button> 
573
                        
-
 
574
                        {{else}}
564
                        {{else}}
575
 
-
 
576
            
-
 
577
                    
-
 
578
                        <button 
565
                        <button 
579
                        type="button" class="btn btn-success btn-add-status"
566
                           type="button" class="btn btn-success btn-add-status"
580
                        data-section="{{:slug_section}}" data-question="{{:slug_question}}" >
567
                           data-section="{{:slug_section}}" data-question="{{:slug_question}}" >
581
                        <i class="fa fa-check" aria-hidden="true"></i> LABEL_TO_CHECK LABEL_CORRECT
568
                        <i class="fa fa-check" aria-hidden="true"></i> LABEL_TO_CHECK LABEL_CORRECT
582
                        </button> 
569
                        </button> 
583
 
-
 
584
                    
-
 
585
 
-
 
586
                        {{/if}}
570
                        {{/if}}
587
 
-
 
588
                        {{/if}}
571
                        {{/if}}
589
                     </td>
572
                     </td>
590
                  </tr>
573
                  </tr>
591
               </tbody>
574
               </tbody>
592
               {{/for}}
575
               {{/for}}