| Línea 358... |
Línea 358... |
| 358 |
*/
|
358 |
*/
|
| 359 |
$('body').on('click', 'button.btn-edit-option', function(e) {
|
359 |
$('body').on('click', 'button.btn-edit-option', function(e) {
|
| 360 |
e.preventDefault();
|
360 |
e.preventDefault();
|
| 361 |
var id_section = $(this).data('section');
|
361 |
var id_section = $(this).data('section');
|
| 362 |
var id_option = $(this).data('option');
|
362 |
var id_option = $(this).data('option');
|
| - |
|
363 |
console.log(sections);
|
| 363 |
sections.map((item) => {
|
364 |
sections.map((item) => {
|
| 364 |
if (item.id_section == id_section) {
|
365 |
if (item.id_section == id_section) {
|
| 365 |
item.options.map((opt) => {
|
366 |
item.options.map((opt) => {
|
| 366 |
if (opt.id_option == id_option) {
|
367 |
if (opt.id_option == id_option) {
|
| 367 |
$('#id-option').val(opt.id_option);
|
368 |
$('#id-option').val(opt.id_option);
|
| Línea 660... |
Línea 661... |
| 660 |
<div class="table-responsive">
|
661 |
<div class="table-responsive">
|
| 661 |
<table class="table table-bordered">
|
662 |
<table class="table table-bordered">
|
| 662 |
<thead>
|
663 |
<thead>
|
| 663 |
<tr>
|
664 |
<tr>
|
| 664 |
<th style="width: 10%;">LABEL_ELEMENT</th>
|
665 |
<th style="width: 10%;">LABEL_ELEMENT</th>
|
| 665 |
<th style="width: 40%;">LABEL_TEXT</th>
|
666 |
<th style="width: 30%;">LABEL_TEXT</th>
|
| 666 |
<th style="width: 10%;">LABEL_TYPE</th>
|
667 |
<th style="width: 10%;">LABEL_TYPE</th>
|
| 667 |
<th style="width: 30%;">LABEL_ACTIONS</th>
|
668 |
<th style="width: 50%;">LABEL_ACTIONS</th>
|
| 668 |
</tr>
|
669 |
</tr>
|
| 669 |
</thead>
|
670 |
</thead>
|
| 670 |
<tbody>
|
671 |
<tbody>
|
| 671 |
<tr class="tr-section">
|
672 |
<tr class="tr-section">
|
| 672 |
<td class="text-left">LABEL_SECTION</td>
|
673 |
<td class="text-left">LABEL_SECTION</td>
|
| Línea 694... |
Línea 695... |
| 694 |
<td class="text-left">
|
695 |
<td class="text-left">
|
| 695 |
{{:title}}
|
696 |
{{:title}}
|
| 696 |
</td>
|
697 |
</td>
|
| 697 |
<td></td>
|
698 |
<td></td>
|
| 698 |
<td>
|
699 |
<td>
|
| 699 |
<button type="button" class="btn btn-default btn-edit-option" data-section="{{:id_section}}" data-option="{{:id_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>
|
700 |
<button class="btn btn-default btn-edit-option" data-section="{{:id_section}}" data-option="{{:id_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>
|
| Línea 700... |
Línea 701... |
| 700 |
|
701 |
|
| Línea 701... |
Línea 702... |
| 701 |
|
702 |
|
| 702 |
<button type="button" class="btn btn-default btn-delete-option" data-section="{{:id_section}}" data-option="{{:id_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>
|
703 |
<buttonclass="btn btn-default btn-delete-option" data-section="{{:id_section}}" data-option="{{:id_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>
|
| Línea 703... |
Línea 704... |
| 703 |
|
704 |
|