Línea 83... |
Línea 83... |
83 |
|
83 |
|
84 |
let table = 'table-section-question-option' + this.sections[i].slug;
|
84 |
let table = 'table-section-question-option' + this.sections[i].slug;
|
Línea 85... |
Línea 85... |
85 |
$('#' + table + ' tbody').empty();
|
85 |
$('#' + table + ' tbody').empty();
|
86 |
|
86 |
|
87 |
s = '<tr class="tr-section" data-slug="' + this.sections[i].slug + '">';
|
87 |
s = '<tr class="tr-section" data-slug="' + this.sections[i].slug + '">';
|
88 |
s = s + '<td class="text-left">Seccion</td>';
|
88 |
s = s + '<td class="text-left">LABEL_SECTION</td>';
|
89 |
s = s + '<td class="text-left">' + this.sections[i].name + '</td>';
|
89 |
s = s + '<td class="text-left">' + this.sections[i].name + '</td>';
|
90 |
s = s + '<td class="text-right">' + this.sections[i].value + '</td>';
|
90 |
s = s + '<td class="text-right">' + this.sections[i].value + '</td>';
|
91 |
s = s + '<td> </td>';
|
91 |
s = s + '<td> </td>';
|
Línea 179... |
Línea 179... |
179 |
s = s + '<td class="text-right">' + section_value + '</td>';
|
179 |
s = s + '<td class="text-right">' + section_value + '</td>';
|
180 |
s = s + '<td> </td>';
|
180 |
s = s + '<td> </td>';
|
181 |
s = s + '<td>';
|
181 |
s = s + '<td>';
|
182 |
s = s + '<button class="btn btn-default btn-edit-section" data-slug="' + section_slug + '" data-toggle="tooltip" title="LABEL_EDIT LABEL_SECTION"><i class="fa fa-edit" aria-hidden="true"></i> LABEL_EDIT LABEL_SECTION </button> ';
|
182 |
s = s + '<button class="btn btn-default btn-edit-section" data-slug="' + section_slug + '" data-toggle="tooltip" title="LABEL_EDIT LABEL_SECTION"><i class="fa fa-edit" aria-hidden="true"></i> LABEL_EDIT LABEL_SECTION </button> ';
|
183 |
s = s + '<button class="btn btn-default btn-delete-section" data-slug="' + section_slug + '" data-toggle="tooltip" title="LABEL_DELETE LABEL_SECTION"><i class="fa fa-ban" aria-hidden="true"></i> LABEL_DELETE LABEL_SECTION </button> ';
|
183 |
s = s + '<button class="btn btn-default btn-delete-section" data-slug="' + section_slug + '" data-toggle="tooltip" title="LABEL_DELETE LABEL_SECTION"><i class="fa fa-ban" aria-hidden="true"></i> LABEL_DELETE LABEL_SECTION </button> ';
|
184 |
s = s + '<button class="btn btn-default btn-add-question" data-slug="' + section_slug + '" data-toggle="tooltip" title="LABEL_ADD LABEL_QUESTION"><i class="fa fa-plus" aria-hidden="true"></i> LABEL_ADD LABEL_SECTION </button> ';
|
184 |
s = s + '<button class="btn btn-default btn-add-question" data-slug="' + section_slug + '" data-toggle="tooltip" title="LABEL_ADD LABEL_QUESTION"><i class="fa fa-plus" aria-hidden="true"></i> LABEL_ADD LABEL_QUESTION </button> ';
|
185 |
s = s + '</td>';
|
185 |
s = s + '</td>';
|
186 |
s = s + '</tr>';
|
186 |
s = s + '</tr>';
|
187 |
$('#' + table + ' tbody').append(s);
|
187 |
$('#' + table + ' tbody').append(s);
|
188 |
},
|
188 |
},
|
Línea 1470... |
Línea 1470... |
1470 |
editor.focus();
|
1470 |
editor.focus();
|
1471 |
});
|
1471 |
});
|
Línea 1472... |
Línea 1472... |
1472 |
|
1472 |
|
1473 |
|
1473 |
|
1474 |
$('#form-section #section-value').val('0');
|
1474 |
$('#form-section #section-value').val('0');
|
1475 |
$('#modal-section h4[class="modal-title"]').html('New Section');
|
1475 |
$('#modal-section h4[class="modal-title"]').html('LABEL_ADD LABEL_SECTION');
|
Línea 1476... |
Línea 1476... |
1476 |
$('#modal-section').modal('show');
|
1476 |
$('#modal-section').modal('show');
|
1477 |
});
|
1477 |
});
|
Línea 1507... |
Línea 1507... |
1507 |
break;
|
1507 |
break;
|
1508 |
}
|
1508 |
}
|
1509 |
}
|
1509 |
}
|
Línea 1510... |
Línea 1510... |
1510 |
|
1510 |
|
1511 |
if(showForm) {
|
1511 |
if(showForm) {
|
1512 |
$('#modal-section h4[class="modal-title"]').html('Edit Section');
|
1512 |
$('#modal-section h4[class="modal-title"]').html('LABEL_EDIT LABEL_SECTION');
|
1513 |
$('#modal-section').modal('show');
|
1513 |
$('#modal-section').modal('show');
|
Línea 1514... |
Línea 1514... |
1514 |
}
|
1514 |
}
|
Línea 1568... |
Línea 1568... |
1568 |
$('#form-question #question-multiline').parent().show();
|
1568 |
$('#form-question #question-multiline').parent().show();
|
Línea 1569... |
Línea 1569... |
1569 |
|
1569 |
|
1570 |
$('#form-question #question-range').val('10');
|
1570 |
$('#form-question #question-range').val('10');
|
Línea 1571... |
Línea 1571... |
1571 |
$('#form-question #question-range').parent().hide();
|
1571 |
$('#form-question #question-range').parent().hide();
|
1572 |
|
1572 |
|
Línea 1573... |
Línea 1573... |
1573 |
$('#modal-question h4[class="modal-title"]').html('LABEL_EDIT LABEL_QUESTION');
|
1573 |
$('#modal-question h4[class="modal-title"]').html('LABEL_ADD LABEL_QUESTION');
|
Línea 2044... |
Línea 2044... |
2044 |
<div class="modal-dialog" role="document">
|
2044 |
<div class="modal-dialog" role="document">
|
2045 |
<form action="#" name="form-section" id="form-section">
|
2045 |
<form action="#" name="form-section" id="form-section">
|
2046 |
<input type="hidden" name="section-slug" id="section-slug" value="" />
|
2046 |
<input type="hidden" name="section-slug" id="section-slug" value="" />
|
2047 |
<div class="modal-content">
|
2047 |
<div class="modal-content">
|
2048 |
<div class="modal-header">
|
2048 |
<div class="modal-header">
|
2049 |
<!-- <h4 class="modal-title">Modal title</h4> -->
|
2049 |
<h4 class="modal-title">LABEL_ADD LABEL_SECTION</h4>
|
2050 |
<!-- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
2050 |
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
2051 |
<span aria-hidden="true">×</span>
|
2051 |
<span aria-hidden="true">×</span>
|
2052 |
</button> -->
|
2052 |
</button>
|
2053 |
</div>
|
2053 |
</div>
|
2054 |
<div class="modal-body">
|
2054 |
<div class="modal-body">
|
2055 |
<div class="form-group">
|
2055 |
<div class="form-group">
|
2056 |
<label for="section-name">LABEL_FIRST_NAME</label>
|
2056 |
<label for="section-name">LABEL_FIRST_NAME</label>
|
2057 |
<input type="text" name="section-name" id="section-name" class="form-control" maxlength="50" value="" />
|
2057 |
<input type="text" name="section-name" id="section-name" class="form-control" maxlength="50" value="" />
|