Skip to content

Commit

Permalink
Converted formgroup wrapper to formset vs div
Browse files Browse the repository at this point in the history
  • Loading branch information
qoda committed Jan 20, 2017
1 parent bc34cb6 commit 1a3bd1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions formfactory/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ def _html_output(self, normal_row, error_row, row_ender, help_text_html,

output, hidden_fields = [], []
for fieldset_label, fieldnames in self.field_group:
snippet = """<div class="Fieldgroup">"""
snippet = """<fieldset class="Fieldset">"""
if fieldset_label:
snippet += "<div Fieldgroup--header>%s</div>" % fieldset_label
snippet += "<legend Fieldsetlegend>%s</legend>" % fieldset_label
output.append(snippet)

for name in fieldnames:
Expand Down Expand Up @@ -157,7 +157,7 @@ def _html_output(self, normal_row, error_row, row_ender, help_text_html,
"field_id": "id_%s" % name
})

output.append("</div>")
output.append("</legend>")

if top_errors:
output.insert(0, error_row % force_text(top_errors))
Expand Down

0 comments on commit 1a3bd1c

Please sign in to comment.