Línea 1440... |
Línea 1440... |
1440 |
const removeTags = (str) => str.toString().replace( /(<([^>]+)>)/ig, '')
|
1440 |
const removeTags = (str) => str.toString().replace( /(<([^>]+)>)/ig, '')
|
1441 |
/**
|
1441 |
/**
|
1442 |
* Render Sections data
|
1442 |
* Render Sections data
|
1443 |
*/
|
1443 |
*/
|
1444 |
const renderSectionData = (data) =>{
|
1444 |
const renderSectionData = (data) =>{
|
1445 |
console.log(data);
|
1445 |
console.log(data)
|
1446 |
return $("#rows").html($("#sectionTemplate").render(data, {
|
1446 |
return $("#rows").html($("#sectionTemplate").render(data, {
|
1447 |
getType: getQuestionTypeBySlug,
|
1447 |
getType: getQuestionTypeBySlug,
|
1448 |
removeTags: removeTags
|
1448 |
removeTags: removeTags
|
1449 |
}));
|
1449 |
}));
|
Línea 1767... |
Línea 1767... |
1767 |
<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>
|
1767 |
<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>
|
Línea 1768... |
Línea 1768... |
1768 |
|
1768 |
|
1769 |
{{if type == 'multiple' || type == 'simple' || type == 'rating-open' }}
|
1769 |
{{if type == 'multiple' || type == 'simple' || type == 'rating-open' }}
|
1770 |
<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>
|
1770 |
<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>
|
- |
|
1771 |
{/if}}
|
1771 |
{/if}}
|
1772 |
|
1772 |
</td>
|
1773 |
</td>
|
1773 |
</tr>
|
1774 |
</tr>
|
1774 |
{{for options}}
|
1775 |
{{for options}}
|
1775 |
<tr class="tr-option">
|
1776 |
<tr class="tr-option">
|
Línea 1789... |
Línea 1790... |
1789 |
<font color="green">LABEL_CORRECT</font>
|
1790 |
<font color="green">LABEL_CORRECT</font>
|
1790 |
{{/if}}
|
1791 |
{{/if}}
|
1791 |
{{if correct == 0}}
|
1792 |
{{if correct == 0}}
|
1792 |
<font color="red">LABEL_FAIL</font>
|
1793 |
<font color="red">LABEL_FAIL</font>
|
1793 |
{{/if}}
|
1794 |
{{/if}}
|
1794 |
{/if}} {
|
1795 |
{{/if}}
|
1795 |
</td>
|
1796 |
</td>
|
1796 |
<td>
|
1797 |
<td>
|
1797 |
<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>
|
1798 |
<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>
|
1798 |
<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>
|
1799 |
<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>
|
1799 |
</td>
|
1800 |
</td>
|