Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 294 Rev 303
Línea 671... Línea 671...
671
 
671
 
672
    <div class="row" id="row-edit" style="display: none">
672
    <div class="row" id="row-edit" style="display: none">
673
        <div class="col-xs-12 col-md-12">
673
        <div class="col-xs-12 col-md-12">
674
            <form action="#" name="form-main" id="form-main">
674
            <form action="#" name="form-main" id="form-main">
675
                <input type="hidden" name="form-id" id="form-id" value="0" />
-
 
676
                <input type="hidden" name="form-continue" id="form-continue" value="0" />
675
                <input type="hidden" name="form-id" id="form-id" value="0" />
677
                <div class="form-group">
676
                <div class="form-group">
678
                    <label for="form-name">LABEL_FIRST_NAME</label>
-
 
679
                    <input type="text" name="form-name" id="form-name" class="form-control" maxlength="50" />
-
 
680
                </div>
-
 
681
                <div class="form-group">
-
 
682
                    <label for="form-description">LABEL_DESCRIPTION</label>
-
 
683
                    <!--  ckeditor -->
-
 
684
                    <textarea  name="form-description" id="form-description" rows="5" class="ckeditor form-control"></textarea>
-
 
685
                </div>
-
 
686
                <div class="form-group">
-
 
687
                    <label for="form-text">LABEL_TEXT</label>
-
 
688
                    <!--  ckeditor -->
-
 
689
                    <textarea  name="form-text" id="form-text" rows="5" class="ckeditor form-control"></textarea>
-
 
690
                </div>
-
 
691
                <div class="form-group">
-
 
692
                    <label for="form-language">LABEL_LANGUAGES</label>
-
 
693
                    <select name="form-language" id="form-language" class="form-control">
-
 
694
                        <option value="<?php echo $lang_en; ?>">LABEL_ENGLISH</option>
-
 
695
                        <option value="<?php echo $lang_es; ?>">LABEL_SPANISH</option>
677
                    <label for="form-name">LABEL_FIRST_NAME</label>
696
                    </select>
678
                    <div></div>
697
                </div>
679
                </div>
698
                <div class="form-group">
680
                <div class="form-group">
699
                    <label for="form-status">LABEL_STATUS</label>
681
                    <label for="form-status">LABEL_STATUS</label>
700
                    <select name="form-status" id="form-status" class="form-control">
682
                    <select name="form-status" id="form-status" class="form-control">
701
                        <option value="<?php echo $status_inactive; ?>">LABEL_INACTIVE</option>
683
                        <option value="<?php echo $status_inactive; ?>">LABEL_INACTIVE</option>
702
                        <option value="<?php echo $status_active; ?>">LABEL_ACTIVE</option>
684
                        <option value="<?php echo $status_active; ?>">LABEL_ACTIVE</option>
703
                    </select>
685
                    </select>
704
                </div>
-
 
705
                <br/>
-
 
706
                <div class="row">
-
 
707
                    <div class="col-xs-12 col-md-12 text-right">
-
 
708
                        <button class="btn btn-primary" id="btn-add-section" data-toggle="tooltip" title="LABEL_ADD LABEL_SECTION"><i class="fa fa-plus" aria-hidden="true"></i> LABEL_ADD LABEL_SECTION</button>
-
 
709
                    </div>
-
 
710
                </div>
-
 
711
                <br />	
686
                </div>	
712
                <div class="row">
687
                <div class="row">
713
                    <div class="col-xs-12 col-md-12">
688
                    <div class="col-xs-12 col-md-12">
714
                        <div class="panel-group" id="rows"></div>
689
                        <div class="panel-group" id="rows"></div>
715
                    </div>
690
                    </div>
Línea 743... Línea 718...
743
            <div class="panel-body">
718
            <div class="panel-body">
744
                <div class="table-responsive">
719
                <div class="table-responsive">
745
                    <table class="table table-bordered">
720
                    <table class="table table-bordered">
746
                        <thead>
721
                        <thead>
747
                            <tr>
722
                            <tr>
748
                                <th style="width: 10%;">LABEL_ELEMENT</th>
723
                                <th style="width: 10%;">LABEL_QUESTION</th>
749
                                <th style="width: 50%;">LABEL_TEXT</th>
-
 
750
                                <th style="width: 10%;">LABEL_VALUE</th>
724
                                <th style="width: 10%;">LABEL_VALUE</th>
751
                                <th style="width: 10%;">LABEL_TYPE</th>
725
                                <th style="width: 10%;">LABEL_TYPE</th>
-
 
726
                                <th style="width: 50%;">LABEL_ANSWER</th>
752
                                <th style="width: 20%;">LABEL_ACTIONS</th>
727
                                <th style="width: 20%;">LABEL_ACTIONS</th>
753
                            </tr>
728
                            </tr>
754
                        </thead>
729
                        </thead>
755
                        <tbody>
730
                        <tbody>
756
                            <tr class="tr-section">
-
 
757
                                <td class="text-left">LABEL_SECTION</td>
-
 
758
                                <td class="text-left">{{:name}}</td>
-
 
759
                                <td>{{:value}}</td>
-
 
760
                                <td></td>
-
 
761
                                <td>
-
 
762
                                    <button class="btn btn-default btn-edit-section" data-section="{{:slug_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>
-
 
763
                                    <button class="btn btn-default btn-delete-section" data-section="{{:slug_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> 
-
 
764
                                    <button class="btn btn-default btn-add-question" data-section="{{:slug_section}}" data-toggle="tooltip"  data-original-title="LABEL_ADD  LABEL_QUESTION"><i class="fa fa-plus" aria-hidden="true"></i> LABEL_ADD  LABEL_QUESTION </button> 
-
 
765
                                </td>
-
 
766
                            </tr>
-
 
767
                            {{for questions}}
731
                            {{for questions}}
768
                            <tr class="tr-question">
732
                            <tr class="tr-question">
769
                                <td class="text-left">--LABEL_QUESTION</td>
733
                                <td class="text-left">{{:~removeTags(text)}} </td>
770
                                <td class="text-left">
-
 
771
                                    {{:~removeTags(text)}}
-
 
772
                                </td>
-
 
773
                                <td><font color="red">{{:value}}</font></td>
734
                                <td><font color="red">{{:value}}</font></td>
774
                                <td class="text-capitalize">
735
                                <td class="text-capitalize">
775
                                    {{if type == 'open'}} LABEL_OPEN {{/if}}
736
                                    {{if type == 'open'}} LABEL_OPEN {{/if}}
776
                                    {{if type == 'simple'}} Simple {{/if}}
737
                                    {{if type == 'simple'}} Simple {{/if}}
777
                                    {{if type == 'multiple'}} Multiple {{/if}}
738
                                    {{if type == 'multiple'}} Multiple {{/if}}
778
                                    {{if type == 'rating-open'}} LABEL_RATING_OPEN {{/if}}
739
                                    {{if type == 'rating-open'}} LABEL_RATING_OPEN {{/if}}
779
                                    {{if type == 'rating-range'}} LABEL_RATING_RANGE {{/if}}
740
                                    {{if type == 'rating-range'}} LABEL_RATING_RANGE {{/if}}
780
                                </td>
741
                                </td>
781
                                <td>
-
 
782
                                    <button class="btn btn-default btn-edit-question" data-section="{{:slug_section}}" data-question="{{:slug_question}}" data-toggle="tooltip"  data-original-title="LABEL_EDIT LABEL_QUESTION"><i class="fa fa-edit" aria-hidden="true"></i> LABEL_EDIT LABEL_QUESTION</button> 
-
 
783
                                    <button class="btn btn-default btn-delete-question" data-section="{{:slug_section}}" data-question="{{:slug_question}}" data-toggle="tooltip"  data-original-title="LABEL_DELETE LABEL_QUESTION"><i class="fa fa-ban" aria-hidden="true"></i> LABEL_DELETE LABEL_QUESTION</button> 
-
 
784
                                  
-
 
785
                                    {{if type == 'simple' || type == 'rating-open' || type=='multiple' }}
-
 
786
                                    <button class="btn btn-default btn-add-option" data-section="{{:slug_section}}" data-question="{{:slug_question}}" data-toggle="tooltip"  data-original-title="LABEL_ADD  LABEL_OPTION"><i class="fa fa-plus" aria-hidden="true"></i> LABEL_ADD  LABEL_OPTION</button> 
-
 
787
                                    {{/if}}
-
 
788
                                
-
 
789
                                </td>
742
                                <td></td>
790
                            </tr>
-
 
791
                            {{for options}}
-
 
792
                            <tr class="tr-option">
-
 
793
                                <td class="text-left">---LABEL_OPTION</td>
-
 
794
                                <td class="text-left">
-
 
795
                                    {{:~removeTags(text)}}
-
 
796
                                </td>
-
 
797
                                <td>
-
 
798
 
-
 
799
                                    {{if ~getType( slug_section, slug_question) == 'multiple' || ~getType( slug_section, slug_question) == 'rating-open'  }}
-
 
800
                                    {{:value}}
-
 
801
                                    {{/if}}
-
 
802
                                </td>
-
 
803
                                <td class="text-left">
-
 
804
                                    {{if ~getType( slug_section, slug_question) != 'rating-open'}}
-
 
805
                                    {{if correct == 1}}
-
 
806
                                    <font color="green">LABEL_CORRECT</font>
-
 
807
                                    {{/if}}
-
 
808
                                    {{if correct == 0}}
-
 
809
                                    <font color="red">LABEL_FAIL</font>
-
 
810
                                    {{/if}}
-
 
811
                                    {{/if}}
-
 
812
                                </td>
-
 
813
                                <td>
-
 
814
                                    <button class="btn btn-default btn-edit-option" data-section="{{:slug_section}}" data-question="{{:slug_question}}" data-slug="{{:slug_option}}" data-toggle="tooltip"  data-original-title="LABEL_EDIT LABEL_OPTION"><i class="fa fa-edit" aria-hidden="true"></i> LABEL_EDIT LABEL_OPTION</button> 
-
 
815
                                    <button class="btn btn-default btn-delete-option" data-section="{{:slug_section}}" data-question="{{:slug_question}}" data-slug="{{:slug_option}}" data-toggle="tooltip"  data-original-title="LABEL_DELETE LABEL_OPTION"><i class="fa fa-ban" aria-hidden="true"></i> LABEL_DELETE LABEL_OPTION</button> 
-
 
816
                                </td>
743
                                <td></td>
817
                            </tr>
744
                            </tr>
818
                            {{/for}}
-
 
-
 
745
                            
819
                            {{/for}}
746
                            {{/for}}
820
                        </tbody>
747
                        </tbody>
821
                    </table>
748
                    </table>
822
                </div>
749
                </div>
823
            </div>
750
            </div>