Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 214 Rev 222
Línea 1436... Línea 1436...
1436
    }
1436
    }
1437
    /**
1437
    /**
1438
     * Render Sections data
1438
     * Render Sections data
1439
     */
1439
     */
1440
    const renderSectionData = (data) => $("#rows").html($("#sectionTemplate").render(data, {
1440
    const renderSectionData = (data) => $("#rows").html($("#sectionTemplate").render(data, {
1441
        getType: getQuestionTypeBySlug
1441
        getType: getQuestionTypeBySlug,
-
 
1442
        removeTags: removeTags
1442
    }));
1443
    }));
1443
    /**
1444
    /**
1444
     * Clear Div Section data 
1445
     * Clear Div Section data 
1445
     */
1446
     */
1446
    const clearSectionData = () => $("#rows").html('');
1447
    const clearSectionData = () => $("#rows").html('');
Línea 1448... Línea 1449...
1448
     * Clicked refresh button
1449
     * Clicked refresh button
1449
     */
1450
     */
1450
    $('button.btn-refresh').click(function(e) {
1451
    $('button.btn-refresh').click(function(e) {
1451
        tableForm.fnDraw();
1452
        tableForm.fnDraw();
1452
    });
1453
    });
-
 
1454
     
-
 
1455
    /**
-
 
1456
     * Remove Html Tags
-
 
1457
     */
-
 
1458
    const removeTags = (str) => str.toString().replace( /(<([^>]+)>)/ig, '')
1453
});
1459
});
1454
JS;
1460
JS;
1455
$this->inlineScript()->captureEnd();
1461
$this->inlineScript()->captureEnd();
1456
?>
1462
?>
Línea 1740... Línea 1746...
1740
                            </tr>
1746
                            </tr>
1741
                            {{for questions}}
1747
                            {{for questions}}
1742
                            <tr class="tr-question">
1748
                            <tr class="tr-question">
1743
                                <td class="text-left">--LABEL_QUESTION</td>
1749
                                <td class="text-left">--LABEL_QUESTION</td>
1744
                                <td class="text-left">
1750
                                <td class="text-left">
1745
                                    {{:text}}
1751
                                    {{~removeTags(text)}}
1746
                                </td>
1752
                                </td>
1747
                                <td><font color="red">{{:value}}</font></td>
1753
                                <td><font color="red">{{:value}}</font></td>
1748
                                <td class="text-capitalize">
1754
                                <td class="text-capitalize">
1749
                                    {{if type == 'open'}} LABEL_OPEN {{/if}}
1755
                                    {{if type == 'open'}} LABEL_OPEN {{/if}}
1750
                                    {{if type == 'simple'}} Simple {{/if}}
1756
                                    {{if type == 'simple'}} Simple {{/if}}
Línea 1760... Línea 1766...
1760
                            </tr>
1766
                            </tr>
1761
                            {{for options}}
1767
                            {{for options}}
1762
                            <tr class="tr-option">
1768
                            <tr class="tr-option">
1763
                                <td class="text-left">---LABEL_OPTION</td>
1769
                                <td class="text-left">---LABEL_OPTION</td>
1764
                                <td class="text-left">
1770
                                <td class="text-left">
1765
                                    {{:text}}
1771
                                    {{~removeTags(text)}}
1766
                                </td>
1772
                                </td>
1767
                                <td>
1773
                                <td>
Línea 1768... Línea 1774...
1768
 
1774
 
1769
                                    {{if ~getType( slug_section, slug_question) == 'multiple' || ~getType( slug_section, slug_question) == 'rating-open'  }}
1775
                                    {{if ~getType( slug_section, slug_question) == 'multiple' || ~getType( slug_section, slug_question) == 'rating-open'  }}