generated from ita-social-projects/DevTemplate
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f83bc95
commit 4ed51a2
Showing
3 changed files
with
7 additions
and
3 deletions.
There are no files selected for viewing
6 changes: 5 additions & 1 deletion
6
app/views/account/calculators/partials/_color_selector.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
<div class="nested-fields"> | ||
<%= f.input :color, as: :color, label: 'Choose a Color for Calculator Page:', input_html: { class: 'form-control form-control-color p-2', style: 'width: 7rem; height: 3.5rem;' } %> | ||
<%= f.input :color, as: :color, label: 'Choose a Color for Calculator Page:', | ||
input_html: { | ||
class: 'form-control form-control-color p-2', | ||
style: 'width: 7rem; height: 3.5rem;' | ||
} %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
class AddColorToCalculators < ActiveRecord::Migration[7.2] | ||
def change | ||
add_column :calculators, :color, :string, default: "#000000" | ||
add_column :calculators, :color, :string, default: "#8fba3b" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters