Skip to content

Commit

Permalink
docs: properly annotate forms disabled field (#486)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr authored Jun 8, 2020
1 parent d37d65e commit be1acb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfservice/form/fields.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type Field struct {
// Pattern is the equivalent of `<input pattern="{{.Pattern}}">`
Pattern string `json:"pattern,omitempty"`

// Disabled is the equivalent of `<input disabled="{{.Disabled}}">`
// Disabled is the equivalent of `<input {{if .Disabled}}disabled{{end}}">`
Disabled bool `json:"disabled,omitempty"`

// Required is the equivalent of `<input required="{{.Required}}">`
Expand Down

0 comments on commit be1acb3

Please sign in to comment.