File tree Expand file tree Collapse file tree 13 files changed +13
-13
lines changed Expand file tree Collapse file tree 13 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ defmodule Backpex.Fields.BelongsTo do
136
136
< div >
137
137
< Layout . field_container >
138
138
<: label align = { Backpex.Field . align_label ( @ field_options , assigns ) } >
139
- < Layout . input_label text = { @ field_options [ :label ] } />
139
+ < Layout . input_label for = { @ form [ @ owner_key ] } text = { @ field_options [ :label ] } />
140
140
</: label >
141
141
< BackpexForm . input
142
142
type = "select "
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ defmodule Backpex.Fields.Boolean do
37
37
< div >
38
38
< Layout . field_container >
39
39
<: label align = { Backpex.Field . align_label ( @ field_options , assigns , :top ) } >
40
- < Layout . input_label text = { @ field_options [ :label ] } />
40
+ < Layout . input_label for = { @ form [ @ name ] } text = { @ field_options [ :label ] } />
41
41
</: label >
42
42
< BackpexForm . input
43
43
type = "toggle "
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ defmodule Backpex.Fields.Currency do
70
70
< div >
71
71
< Layout . field_container >
72
72
<: label align = { Backpex.Field . align_label ( @ field_options , assigns ) } >
73
- < Layout . input_label text = { @ field_options [ :label ] } />
73
+ < Layout . input_label for = { @ form [ @ name ] } text = { @ field_options [ :label ] } />
74
74
</: label >
75
75
< BackpexForm . input
76
76
type = "number "
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ defmodule Backpex.Fields.Date do
103
103
< div >
104
104
< Layout . field_container >
105
105
<: label align = { Backpex.Field . align_label ( @ field_options , assigns , :top ) } >
106
- < Layout . input_label text = { @ field_options [ :label ] } />
106
+ < Layout . input_label for = { @ form [ @ name ] } text = { @ field_options [ :label ] } />
107
107
</: label >
108
108
< BackpexForm . input
109
109
type = "date "
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ defmodule Backpex.Fields.DateTime do
103
103
< div >
104
104
< Layout . field_container >
105
105
<: label align = { Backpex.Field . align_label ( @ field_options , assigns , :top ) } >
106
- < Layout . input_label text = { @ field_options [ :label ] } />
106
+ < Layout . input_label for = { @ form [ @ name ] } text = { @ field_options [ :label ] } />
107
107
</: label >
108
108
< BackpexForm . input
109
109
type = "datetime-local "
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ defmodule Backpex.Fields.Email do
44
44
< div >
45
45
< Layout . field_container >
46
46
<: label align = { Backpex.Field . align_label ( @ field_options , assigns , :center ) } >
47
- < Layout . input_label text = { @ field_options [ :label ] } />
47
+ < Layout . input_label for = { @ form [ @ name ] } text = { @ field_options [ :label ] } />
48
48
</: label >
49
49
< BackpexForm . input
50
50
type = "email "
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ defmodule Backpex.Fields.Number do
45
45
< div >
46
46
< Layout . field_container >
47
47
<: label align = { Backpex.Field . align_label ( @ field_options , assigns ) } >
48
- < Layout . input_label text = { @ field_options [ :label ] } />
48
+ < Layout . input_label for = { @ form [ @ name ] } text = { @ field_options [ :label ] } />
49
49
</: label >
50
50
< BackpexForm . input
51
51
type = "number "
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ defmodule Backpex.Fields.Select do
70
70
< div >
71
71
< Layout . field_container >
72
72
<: label align = { Backpex.Field . align_label ( @ field_options , assigns ) } >
73
- < Layout . input_label text = { @ field_options [ :label ] } />
73
+ < Layout . input_label for = { @ form [ @ name ] } text = { @ field_options [ :label ] } />
74
74
</: label >
75
75
< BackpexForm . input
76
76
type = "select "
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ defmodule Backpex.Fields.Text do
44
44
< div >
45
45
< Layout . field_container >
46
46
<: label align = { Backpex.Field . align_label ( @ field_options , assigns , :center ) } >
47
- < Layout . input_label text = { @ field_options [ :label ] } />
47
+ < Layout . input_label for = { @ form [ @ name ] } text = { @ field_options [ :label ] } />
48
48
</: label >
49
49
< BackpexForm . input
50
50
type = "text "
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ defmodule Backpex.Fields.Textarea do
53
53
< div >
54
54
< Layout . field_container >
55
55
<: label align = { Backpex.Field . align_label ( @ field_options , assigns , :top ) } >
56
- < Layout . input_label text = { @ field_options [ :label ] } />
56
+ < Layout . input_label for = { @ form [ @ name ] } text = { @ field_options [ :label ] } />
57
57
</: label >
58
58
< BackpexForm . input
59
59
type = "textarea "
You can’t perform that action at this time.
0 commit comments