Skip to content

Commit

Permalink
Fix a typo in the HTML generation. Fix the name of the fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestoalejo committed Feb 2, 2013
1 parent 2e22124 commit dd93840
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ngforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def build(self, form):
attrs = {
"type": self.type,
"id": self.id,
"name": self.name,
"name": self.id,
"placeholder": self.placeholder,
"class": ' '.join(self.cls),
"ng-model": 'data.%s' % self.id,
Expand All @@ -191,7 +191,7 @@ def __init__(self, id, cls, name, rows, placeholder=''):
def build(self, form):
attrs = {
"id": self.id,
"name": self.name,
"name": self.id,
"placeholder": self.placeholder,
"class": ' '.join(self.cls),
"ng-model": 'data.%s' % self.id,
Expand All @@ -202,7 +202,7 @@ def build(self, form):
attrs.update(at)

input = [' %s="%s"' % (k, v) for k,v in attrs.iteritems()]
input = '<textarea%s</textarea>' % ''.join(input)
input = '<textarea%s></textarea>' % ''.join(input)

return tmpl % input

Expand Down

0 comments on commit dd93840

Please sign in to comment.