Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 459 Rev 460
Línea 305... Línea 305...
305
                'targets': -1,
305
                'targets': -1,
306
                'orderable': false,
306
                'orderable': false,
307
                'render': function(data, type, row) {
307
                'render': function(data, type, row) {
308
                    s = '';
308
                    s = '';
309
                    if (allowEdit) {
309
                    if (allowEdit) {
310
                        s = s + '<button class="btn btn-primary btn-edit-form" data-href="' + data + '" data-toggle="tooltip" title="LABEL_EDIT"><i class="fa fa-pencil"></i> LABEL_EDIT </button>&nbsp;';
310
                        s = s + '<button class="btn btn-primary btn-edit-form" data-href="' + data + '" data-toggle="tooltip" title="LABEL_EDIT><i class="fa fa-pencil"></i> LABEL_EDIT</button>&nbsp;';
311
                    }
311
                    }
312
                    return s;
312
                    return s;
313
                }
313
                }
314
            }
314
            }
315
        ],
315
        ],
Línea 522... Línea 522...
522
JS;
522
JS;
523
$this->inlineScript()->captureEnd();
523
$this->inlineScript()->captureEnd();
524
?>
524
?>
Línea 525... Línea 525...
525
 
525
 
526
<style>
-
 
527
    * {margin:0;padding:0; border: 0 none; position: relative;}
-
 
528
*, *:before, *:after {box-sizing: inherit;}
-
 
529
html{
-
 
530
  box-sizing: border-box;
-
 
531
  background: #fff;
-
 
532
  font-size: 1rem;
-
 
533
}
-
 
534
table {
-
 
535
  table-layout: fixed;
-
 
536
  margin: 1rem auto;
-
 
537
  width: 90%;
-
 
538
  box-shadow: 0 0 2px rgba(0,0,0,.4);
-
 
539
  border-collapse: collapse;
-
 
540
}
-
 
541
thead {
-
 
542
  
-
 
543
}
-
 
544
th {
-
 
545
  background: #1195b2;
-
 
546
  color: #fff;
-
 
547
  font-weight: 400;
-
 
548
  padding: .7rem 0;
-
 
549
  border: 3px solid #fff;
-
 
550
  font-size: 1.5rem;
-
 
551
  font-variant: small-caps;
-
 
552
  width: 22%;
-
 
553
}
-
 
554
th:last-child {width: 8%;}
-
 
555
tr:nth-child(even) {
-
 
556
  background: rgba(17,149,178,.2);
-
 
557
}
-
 
558
td {
-
 
559
  padding: .5rem 1rem;
-
 
560
  border-right: 1px solid rgba(0,0,0,.05);
-
 
561
}
-
 
562
td:last-child {
-
 
563
  border-right: 0 none;
-
 
564
  text-align: center;
-
 
565
}
-
 
566
@media only screen and (max-width:600px) {
-
 
567
  table{
-
 
568
    width: 98%;
-
 
569
  }
-
 
570
  thead {display: none;}
-
 
571
  tr {border-bottom: 2px solid rgba(17,149,178,.35);}
-
 
572
  tr:last-child {border-bottom: 0 none;}
526
<style>
573
  td {
-
 
574
    display: block;
-
 
575
    padding: .3rem .5rem;
-
 
576
  }
-
 
577
  td:before {
-
 
578
    content: attr(data-head);
-
 
579
    display: inline-block;
-
 
580
    width: auto;;
-
 
581
    min-width: 40%;
-
 
582
    font-weight: 900;
-
 
583
    padding-right: 1rem;
527
    td{
584
    font-variant: small-caps;
-
 
585
  }
-
 
586
  td:last-child {text-align: left;}
-
 
587
  td:nth-child(odd) {
-
 
588
    background: rgba(17,149,178,.15);
528
        word-wrap: break-word;
589
  }
-
 
590
}
529
    }
Línea 591... Línea 530...
591
</style>
530
    </style>
592
 
531
 
593
<!-- Content Header (Page header) -->
532
<!-- Content Header (Page header) -->
594
<section class="content-header">
533
<section class="content-header">
Línea 711... Línea 650...
711
        </div>
650
        </div>
712
    </div>
651
    </div>
Línea 713... Línea 652...
713
 
652
 
714
    <!---Template Sections --->
653
    <!---Template Sections --->
715
    <script id="sectionTemplate" type="text/x-jsrender">
654
    <script id="sectionTemplate" type="text/x-jsrender">
716
        <div class="panel panel-default" id="panel-{{:slug_section}}">
655
    <div class="panel panel-default" id="panel-{{:slug_section}}">
717
   <div class="panel-heading">
656
   <div class="panel-heading">
718
      <h4 class="panel-title">
657
      <h4 class="panel-title">
719
         <a class="accordion-toggle" data-toggle="collapse" aria-expanded="true" data-parent="#panel-{{:slug_section}}" href="#collapse-{{:slug_section}}">
658
         <a class="accordion-toggle" data-toggle="collapse" aria-expanded="true" data-parent="#panel-{{:slug_section}}" href="#collapse-{{:slug_section}}">
720
         <span class="section-name{{:slug_section}}">
659
         <span class="section-name{{:slug_section}}">
Línea 724... Línea 663...
724
      </h4>
663
      </h4>
725
   </div>
664
   </div>
726
   <div id="collapse-{{:slug_section}}" class="panel-collapse in collapse show">
665
   <div id="collapse-{{:slug_section}}" class="panel-collapse in collapse show">
727
      <div class="panel-body">
666
      <div class="panel-body">
728
         <div class="table-responsive">
667
         <div class="table-responsive">
729
            <table class="table table-bordered"  width="100%" style="width:100%">
668
            <table class="table table-bordered">
730
               <thead>
669
               <thead>
731
                  <tr>
670
                  <tr>
732
                     <th style="width: 30%;">LABEL_QUESTION</th>
671
                     <th style="width: 30%;">LABEL_QUESTION</th>
733
                     <th style="width: 30%;">LABEL_ANSWER</th>
672
                     <th style="width: 30%;">LABEL_ANSWER</th>
734
                     <th style="width: 10%;">LABEL_STATUS</th>
673
                     <th style="width: 10%;">LABEL_STATUS</th>
735
                     <th style="width: 10%;">LABEL_PTOS</th>
674
                     <th style="width: 10%;">LABEL_PTOS</th>
736
                     <th style="width: 20%;">LABEL_ACTIONS</th>
675
                     <th style="width: 20%;">LABEL_ACTIONS</th>
737
                  </tr>
676
                  </tr>
738
               </thead>
677
               </thead>
739
               <tbody>
678
               <tbody>
740
               {{for questions}}
679
                  {{for questions}}
741
                  <tr class="tr-question">
680
                  <tr class="tr-question">
742
                     <td class="text-left">{{:~removeTags(text)}} </td>
681
                     <td class="text-left">{{:~removeTags(text)}} </td>
743
                     <td>{{:~getAnswer(type,options,answer)}}</td>
682
                     <td>{{:~getAnswer(type,options,answer)}}</td>
744
                     <td>
683
                     <td>
745
                        {{if type == 'simple'  || type=='multiple' }}
684
                        {{if type == 'simple'  || type=='multiple' }}
746
                        {{:~getStatus(options,answer,type)}}
685
                        {{:~getStatus(options,answer,type)}}
747
                        {{else}}
686
                        {{else}}
748
 
-
 
749
                        {{if status}}
687
                        {{if status}}
750
                                    <font color="green">LABEL_CORRECT</font>
688
                        <font color="green">LABEL_CORRECT</font>
751
                                    {{else}}
689
                        {{else}}
752
                                    <font color="red">LABEL_FAIL</font>
690
                        <font color="red">LABEL_FAIL</font>
753
                                    {{/if}}
691
                        {{/if}}
754
 
-
 
755
 
-
 
756
                        {{/if}}
692
                        {{/if}}
757
                        
-
 
758
                     </td>
693
                     </td>
759
                     <td>
694
                     <td>
760
                     {{:~getPtos(options,answer,type, value, question_value)}}
695
                        {{:~getPtos(options,answer,type, value, question_value)}}
761
               </td>
696
                     </td>
762
                     <td>
697
                     <td>
763
                        {{if type != 'simple'  && type !='multiple' }}
698
                        {{if type != 'simple'  && type !='multiple' }}
764
                       
-
 
765
                    
-
 
766
                        <button class="btn btn-default btn-edit-review"  data-original-title="LABEL_EDIT LABEL_REVIEW" data-section="{{:slug_section}}" data-question="{{:slug_question}}">
699
                        <button class="btn btn-default btn-edit-review"  data-original-title="LABEL_EDIT LABEL_REVIEW" data-section="{{:slug_section}}" data-question="{{:slug_question}}">
767
                        <i class="fa fa-pencil" aria-hidden="true"></i> LABEL_EDIT LABEL_REVIEW
700
                        <i class="fa fa-pencil" aria-hidden="true"></i> LABEL_EDIT LABEL_REVIEW
768
                        </button> 
701
                        </button> 
769
                        
-
 
770
                        {{/if}}
702
                        {{/if}}
771
 
-
 
772
                     </td>
703
                     </td>
773
                  </tr>
704
                  </tr>
774
               {{/for}}
705
                  {{/for}}
775
               </tbody>
706
               </tbody>
776
            </table>
707
            </table>
777
         </div>
708
         </div>
778
      </div>
709
      </div>
779
   </div>
710
   </div>