Skip to content

Commit 82cd769

Browse files
authored
Merge pull request #92 from gobuffalo/development
Infinite Loop Fix and Cleanup
2 parents 2139bd2 + 93e0711 commit 82cd769

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

form/bootstrap/form.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func (f Form) RadioButton(opts tags.Options) *tags.Tag {
4444
//RadioButtonTag builds a bootstrap input[type=radio] with passed options
4545
func (f Form) RadioButtonTag(opts tags.Options) *tags.Tag {
4646
return divWrapper(opts, func(o tags.Options) tags.Body {
47-
return f.Form.RadioButton(o)
47+
return f.Form.RadioButtonTag(o)
4848
})
4949
}
5050

@@ -63,7 +63,7 @@ func (f Form) TextArea(opts tags.Options) *tags.Tag {
6363
//TextAreaTag builds a bootstrap textarea with passed options
6464
func (f Form) TextAreaTag(opts tags.Options) *tags.Tag {
6565
return divWrapper(opts, func(o tags.Options) tags.Body {
66-
return f.Form.TextArea(o)
66+
return f.Form.TextAreaTag(o)
6767
})
6868
}
6969

form/form_for.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package form
33
import (
44
"database/sql/driver"
55
"fmt"
6-
"log"
76
"reflect"
87
"strings"
98
"sync"
@@ -127,14 +126,13 @@ func (f FormFor) addFormatTag(field string, opts tags.Options) {
127126

128127
//RadioButton creates a radio button for a struct field
129128
func (f FormFor) RadioButton(field string, opts tags.Options) *tags.Tag {
130-
// log.Println("[Warning] RadioButton is deprecated and may be removed in the future, use RadioButtonTag instead")
131-
return f.RadioButton(field, opts)
129+
return f.RadioButtonTag(field, opts)
132130
}
133131

134132
//RadioButtonTag creates a radio button for a struct field
135133
func (f FormFor) RadioButtonTag(field string, opts tags.Options) *tags.Tag {
136134
f.buildOptions(field, opts)
137-
return f.Form.RadioButton(opts)
135+
return f.Form.RadioButtonTag(opts)
138136
}
139137

140138
//SelectTag creates a select tag for a specified struct field and loads options from the options opject
@@ -145,7 +143,6 @@ func (f FormFor) SelectTag(field string, opts tags.Options) *SelectTag {
145143

146144
//TextArea creates text area for the specified struct field
147145
func (f FormFor) TextArea(field string, opts tags.Options) *tags.Tag {
148-
log.Println("[Warning] TextArea is deprecated and may be removed in the future, use TextAreaTag instead")
149146
return f.TextAreaTag(field, opts)
150147
}
151148

form/radio_button_tag.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010

1111
//RadioButton creates a radio button for a form with the passed options
1212
func (f Form) RadioButton(opts tags.Options) *tags.Tag {
13-
// log.Println("[Warning] RadioButton is deprecated and may be removed in the future, use RadioButtonTag instead")
1413
return f.RadioButtonTag(opts)
1514
}
1615

form/text_area_tag.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66

77
//TextArea creates a textarea for a form with passed options
88
func (f Form) TextArea(opts tags.Options) *tags.Tag {
9-
// log.Println("[Warning] TextArea is deprecated and may be removed in the future, use TextAreaTag instead")
109
return f.TextAreaTag(opts)
1110
}
1211

0 commit comments

Comments
 (0)