* Fix schema.rb * Add service objects for base and link fields * Add link fields to seeds * Make placeholder a keyword argument * Add work fields * Add explanation column to profile fields * Add coding fields * Switch from inheritance to mixin * Add email checkbox to base fields * Add branding fields * Add spec for ProfileFields::FieldDefinition * Move migration back into correct location * Rename column from explanation to description * Rename attribute in mixin * chore: rename from explanation to description * Add ProfileFields::ImportFromCsv * Simplify ProfileFields::ImportFromCsv * Add comment about disabled cop to spec * Add TODO comment to Rake task * Document mixin * Add groups to profile fields Co-authored-by: Ridhwana <ridhwana.khan16@gmail.com>
13 lines
433 B
Ruby
13 lines
433 B
Ruby
module ProfileFields
|
|
class AddBaseFields
|
|
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"
|
|
end
|
|
end
|
|
end
|