Skip to content

Commit

Permalink
Adding form_error_title and formset_error_title attributes to helper
Browse files Browse the repository at this point in the history
  • Loading branch information
maraujop committed May 18, 2011
1 parent 19a2a37 commit 0ea2d95
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions uni_form/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,8 @@ class FormHelper(object):
inputs = []
layout = None
form_tag = True
form_error_title = None
formset_error_title = None

def __init__(self):
self.inputs = self.inputs[:]
Expand Down Expand Up @@ -417,5 +419,9 @@ def get_attr(self):
items['class'] = self.form_class.strip()
if self.inputs:
items['inputs'] = self.inputs
if self.form_error_title:
items['form_error_title'] = self.form_error_title.strip()
if self.formset_error_title:
items['formset_error_title'] = self.formset_error_title.strip()
return items

0 comments on commit 0ea2d95

Please sign in to comment.