Fix seed values for ProfileFields (#11481)
These were all defaulting to "left_sidebar" which interfered with my work some and doesn't really reflect how these will probably be used.
This commit is contained in:
parent
b015690f4f
commit
77a35b378f
5 changed files with 33 additions and 27 deletions
|
|
@ -3,11 +3,11 @@ module ProfileFields
|
|||
include FieldDefinition
|
||||
|
||||
group "Basic" do
|
||||
field "Display email on profile", :check_box
|
||||
field "Name", :text_field, placeholder: "John Doe"
|
||||
field "Website URL", :text_field, placeholder: "https://yoursite.com"
|
||||
field "Summary", :text_area, placeholder: "A short bio..."
|
||||
field "Location", :text_field, placeholder: "Halifax, Nova Scotia"
|
||||
field "Display email on profile", :check_box, display_area: "settings_only"
|
||||
field "Name", :text_field, placeholder: "John Doe", display_area: "header"
|
||||
field "Website URL", :text_field, placeholder: "https://yoursite.com", display_area: "header"
|
||||
field "Summary", :text_area, placeholder: "A short bio...", display_area: "header"
|
||||
field "Location", :text_field, placeholder: "Halifax, Nova Scotia", display_area: "header"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -3,11 +3,16 @@ module ProfileFields
|
|||
include FieldDefinition
|
||||
|
||||
group "Branding" do
|
||||
field "Brand color 1", :color_field, placeholder: "#000000", description: "Used for backgrounds, borders etc."
|
||||
field "Brand color 1",
|
||||
:color_field,
|
||||
placeholder: "#000000",
|
||||
description: "Used for backgrounds, borders etc.",
|
||||
display_area: "settings_only"
|
||||
field "Brand color 2",
|
||||
:color_field,
|
||||
placeholder: "#000000",
|
||||
description: "Used for texts (usually put on Brand color 1)."
|
||||
description: "Used for texts (usually put on Brand color 1).",
|
||||
display_area: "settings_only"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -3,17 +3,17 @@ module ProfileFields
|
|||
include FieldDefinition
|
||||
|
||||
group "Links" do
|
||||
field "Facebook URL", :text_field, placeholder: "https://facebook.com/..."
|
||||
field "Youtube URL", :text_field, placeholder: "https://www.youtube.com/channel/..."
|
||||
field "StackOverflow URL", :text_field, placeholder: "https://stackoverflow.com/users/..."
|
||||
field "LinkedIn URL", :text_field, placeholder: "https://www.linkedin.com/in/..."
|
||||
field "Behance URL", :text_field, placeholder: "https://www.behance.net/..."
|
||||
field "Dribbble URL", :text_field, placeholder: "https://dribbble.com/..."
|
||||
field "Medium URL", :text_field, placeholder: "https://medium.com/@..."
|
||||
field "GitLab URL", :text_field, placeholder: "https://gitlab.com/..."
|
||||
field "Instagram URL", :text_field, placeholder: "https://www.instagram.com/..."
|
||||
field "Mastodon URL", :text_field, placeholder: "https://..."
|
||||
field "Twitch URL", :text_field, placeholder: "https://www.twitch.tv/..."
|
||||
field "Facebook URL", :text_field, placeholder: "https://facebook.com/...", display_area: "header"
|
||||
field "Youtube URL", :text_field, placeholder: "https://www.youtube.com/channel/...", display_area: "header"
|
||||
field "StackOverflow URL", :text_field, placeholder: "https://stackoverflow.com/users/...", display_area: "header"
|
||||
field "LinkedIn URL", :text_field, placeholder: "https://www.linkedin.com/in/...", display_area: "header"
|
||||
field "Behance URL", :text_field, placeholder: "https://www.behance.net/...", display_area: "header"
|
||||
field "Dribbble URL", :text_field, placeholder: "https://dribbble.com/...", display_area: "header"
|
||||
field "Medium URL", :text_field, placeholder: "https://medium.com/@...", display_area: "header"
|
||||
field "GitLab URL", :text_field, placeholder: "https://gitlab.com/...", display_area: "header"
|
||||
field "Instagram URL", :text_field, placeholder: "https://www.instagram.com/...", display_area: "header"
|
||||
field "Mastodon URL", :text_field, placeholder: "https://...", display_area: "header"
|
||||
field "Twitch URL", :text_field, placeholder: "https://www.twitch.tv/...", display_area: "header"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -3,13 +3,13 @@ module ProfileFields
|
|||
include FieldDefinition
|
||||
|
||||
group "Work" do
|
||||
field "Education", :text_field
|
||||
field "Employer name", :text_field, placeholder: "Acme Inc."
|
||||
field "Employer URL", :text_field, placeholder: "https://dev.com"
|
||||
field "Employment title", :text_field, placeholder: "Junior Frontend Engineer"
|
||||
field "Looking for work", :check_box
|
||||
field 'Display "looking for work" on profile', :check_box
|
||||
field "Recruiters can contact me about job opportunities", :check_box
|
||||
field "Education", :text_field, display_area: "header"
|
||||
field "Employer name", :text_field, placeholder: "Acme Inc.", display_area: "header"
|
||||
field "Employer URL", :text_field, placeholder: "https://dev.com", display_area: "settings_only"
|
||||
field "Employment title", :text_field, placeholder: "Junior Frontend Engineer", display_area: "header"
|
||||
field "Looking for work", :check_box, display_area: "settings_only"
|
||||
field 'Display "looking for work" on profile', :check_box, display_area: "settings_only"
|
||||
field "Recruiters can contact me about job opportunities", :check_box, display_area: "settings_only"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -20,13 +20,14 @@ module ProfileFields
|
|||
|
||||
private
|
||||
|
||||
def field(label, input_type, placeholder: nil, description: nil, group: @group)
|
||||
def field(label, input_type, placeholder: nil, description: nil, group: @group, display_area: "left_sidebar")
|
||||
fields << {
|
||||
label: label,
|
||||
input_type: input_type,
|
||||
placeholder_text: placeholder,
|
||||
description: description,
|
||||
profile_field_group: group
|
||||
profile_field_group: group,
|
||||
display_area: display_area
|
||||
}.compact
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue