Showing
2 changed files
with
4 additions
and
1 deletions
| @@ -20,6 +20,9 @@ | @@ -20,6 +20,9 @@ | ||
| 20 | <div class="panel-body"> | 20 | <div class="panel-body"> |
| 21 | <%= fields_for @obj do |form| %> | 21 | <%= fields_for @obj do |form| %> |
| 22 | 1 | 22 | 1 |
| 23 | + <%= @obj.page_content_markers.count %> | ||
| 24 | + <%= @row_item %> | ||
| 25 | + <%= @obj.page_content_markers.where(:row_item => @row_item).count %> | ||
| 23 | <% @obj.page_content_markers.where(:row_item => @row_item).order('id').each_with_index do |item, index| %> | 26 | <% @obj.page_content_markers.where(:row_item => @row_item).order('id').each_with_index do |item, index| %> |
| 24 | 2 | 27 | 2 |
| 25 | <%= form.fields_for :page_content_markers, item, child_index: (@current_row + index) do |form2| %> | 28 | <%= form.fields_for :page_content_markers, item, child_index: (@current_row + index) do |form2| %> |