-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Close #1963 Change the status from show_event_status to show_badge_st…
…atus (#1964) Co-authored-by: sreyleak <[email protected]>
- Loading branch information
1 parent
3ee53ec
commit 4b53968
Showing
6 changed files
with
20 additions
and
14 deletions.
There are no files selected for viewing
11 changes: 0 additions & 11 deletions
11
app/overrides/spree/admin/taxons/_form/event_status.html.erb.deface
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
app/overrides/spree/admin/taxons/_form/show_badge_status.html.erb.deface
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!-- insert_before "erb[loud]:contains('field_container :parent_id')" --> | ||
|
||
<%= f.field_container :show_badge_status do %> | ||
<%= f.label :show_badge_status, Spree.t('show_badge_status'), class: 'form-label' %> | ||
<%= f.select :show_badge_status, | ||
options_for_select([['On', true], ['Off', false]], f.object.show_badge_status), | ||
{ }, | ||
{ class: 'select2 form-control' } %> | ||
<%= f.error_message_on :show_badge_status, class: 'text-danger' %> | ||
<% 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
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
6 changes: 6 additions & 0 deletions
6
db/migrate/20240926035819_rename_show_event_status_to_show_badge_status_to_spree_taxon.rb
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class RenameShowEventStatusToShowBadgeStatusToSpreeTaxon < ActiveRecord::Migration[7.0] | ||
def change | ||
rename_column :spree_taxons, :show_event_status, :show_badge_status | ||
change_column :spree_taxons, :show_badge_status, :boolean, default: false | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,7 +47,7 @@ | |
:to_date, | ||
:background_color, | ||
:foreground_color, | ||
:show_event_status | ||
:show_badge_status | ||
) | ||
end | ||
|
||
|