Skip to content

Instantly share code, notes, and snippets.

@JoaoFelipe
Created October 26, 2013 16:24
Show Gist options
  • Save JoaoFelipe/7171430 to your computer and use it in GitHub Desktop.
Save JoaoFelipe/7171430 to your computer and use it in GitHub Desktop.
Subform html bug. I clicked in "Criar outro" (add another) three times. https://github.com/activescaffold/active_scaffold/issues/296
<li class="sub-form horizontal-sub-form student_majors-sub-form" id="as_students-2-student_majors-subform">
<h5>Cursos (<a class="visibility-toggle" href="#">Ocultar</a>)</h5>
<div id="as_students-2-student_majors-subform-div">
<input id="record_student_majors_0" name="record[student_majors][0]" type="hidden" value="">
<table id="as_students-2-student_majors-subform-list">
<thead>
<tr>
</tr>
</thead>
<tbody class="sub-form-record">
<tr class="association-record association-record-new locked" id="association-record_id_2_student_majors_1382804122459"></tr>
</tbody>
<tbody class="sub-form-record">
<tr class="association-record association-record-new" id="association-record_id_2_student_majors_1382804134164"></tr>
</tbody><tbody class="sub-form-record">
<tr class="association-record association-record-new" id="association-record_id_2_student_majors_1382804145001"></tr>
</tbody><tbody class="sub-form-record">
<tr class="association-record association-record-new" id="association-record_id_2_student_majors_1382804147972"></tr>
</tbody><tfoot>
</tfoot>
</table>
<div class="footer-wrapper">
<div class="footer">
<a href="/students/2/edit_associated?child_association=student_majors&amp;parent_controller=students" class="as_create_another" data-remote="true" id="as_students-2-student_majors-subform-create-another" style="">Criar Outro</a>
</div>
</div>
</div>
</li>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment