-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #376 from cs169/187436627-registration-only-textbox
187436627 registration only textbox - look at last
- Loading branch information
Showing
23 changed files
with
258 additions
and
183 deletions.
There are no files selected for viewing
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
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
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
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
19 changes: 19 additions & 0 deletions
19
app/views/admin/conferences/_registration_and_booth_form_fields.html.haml
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,19 @@ | ||
- unless f.object.new_record? | ||
%h4 Registrations | ||
%hr | ||
.form-group | ||
= f.label :registration_limit | ||
= f.number_field :registration_limit, in: 0..9999, class: 'form-control' | ||
%span.help-block | ||
Limit the number of registrations to the conference (0 no limit). Please note that the registration limit | ||
does not apply to speakers of confirmed events, they will still be able to register even if the limit has been reached. | ||
You currently have #{pluralize(@conference.registrations.count, 'registration')}. | ||
%h4 Booths | ||
%hr | ||
.form-group | ||
= f.label :booth_limit | ||
= f.number_field :booth_limit, in: 0..9999, class: 'form-control' | ||
%span.help-block | ||
#{(t'booth').capitalize} limit is the maximum number of #{(t'booth').pluralize} | ||
that you can accept for this conference. By setting this number (0 no limit) you can be sure that you are not going to accept more #{(t'booth').pluralize} | ||
than the conference can accommodate. You currently have #{pluralize(@conference.booths.accepted.count, "accepted #{t'booth'}")}. |
26 changes: 26 additions & 0 deletions
26
app/views/admin/conferences/_scheduling_form_fields.html.haml
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,26 @@ | ||
%h4 Scheduling | ||
%hr | ||
.form-group | ||
= f.label :timezone | ||
= f.time_zone_select :timezone, nil, { default: 'UTC' }, { class: 'form-control' } | ||
%span.help-block | ||
Please select in what time zone your conference will take place. | ||
.form-group | ||
= f.label :start_date, "Start Date" | ||
%abbr{title: 'This field is required'} * | ||
= f.text_field :start_date, id: 'conference-start-datepicker', required: true, class: 'form-control' | ||
.form-group | ||
= f.label :end_date, "End Date" | ||
%abbr{title: 'This field is required'} * | ||
= f.text_field :end_date, id: 'conference-end-datepicker', required: true, class: 'form-control' | ||
- unless f.object.new_record? | ||
.form-group | ||
= f.label :start_hour | ||
= f.number_field :start_hour, size: 2, min: 0, max: 23, class: 'form-control' | ||
%span.help-block | ||
= rescheduling_hint(@affected_event_count) | ||
.form-group | ||
= f.label :end_hour | ||
= f.number_field :end_hour, size: 2, min: 1, max: 24, class: 'form-control' | ||
%span.help-block | ||
= rescheduling_hint(@affected_event_count) |
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
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
2 changes: 1 addition & 1 deletion
2
db/migrate/20240417212948_set_currency_for_null_ticket_purchase_currency.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
class SetCurrencyForNullTicketPurchaseCurrency < ActiveRecord::Migration[7.0] | ||
def up | ||
TicketPurchase.where(currency: nil).update_all(currency: 'USD') | ||
# TicketPurchase.where(currency: nil).update_all(currency: 'USD') | ||
end | ||
end |
5 changes: 5 additions & 0 deletions
5
db/migrate/20240422230019_add_registered_attendees_message_to_conferences.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,5 @@ | ||
class AddRegisteredAttendeesMessageToConferences < ActiveRecord::Migration[7.0] | ||
def change | ||
add_column :conferences, :registered_attendees_message, :text | ||
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class AddDefaultCurrencyToUsers < ActiveRecord::Migration[7.0] | ||
def change | ||
unless ActiveRecord::Base.connection.column_exists?(:users, :default_currency) | ||
add_column :users, :default_currency, :text | ||
end | ||
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
Oops, something went wrong.