mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Adds migration to Email Settings for Venue Updates
This commit is contained in:
parent
bd3f251c45
commit
74a8988abc
4 changed files with 15 additions and 0 deletions
|
|
@ -7,6 +7,8 @@ class EmailSettings < ActiveRecord::Base
|
|||
:send_on_updated_conference_dates, :updated_conference_dates_subject,
|
||||
:updated_conference_dates_template, :send_on_updated_conference_registration_dates,
|
||||
:updated_conference_registration_dates_subject, :updated_conference_registration_dates_template
|
||||
:send_on_venue_update,
|
||||
:venue_update_subject, :venue_update_template
|
||||
|
||||
def get_values(conference, user, event = nil)
|
||||
h = {
|
||||
|
|
|
|||
|
|
@ -41,6 +41,9 @@
|
|||
= f.input :send_on_updated_conference_registration_dates, hint: "This is to notify all participants that the conference registration dates has been changed."
|
||||
= f.input :updated_conference_registration_dates_subject
|
||||
= f.input :updated_conference_registration_dates_template, :input_html => { :rows => 10, :cols => 20 }
|
||||
= f.input :send_on_venue_update, hint: 'Send an email on updating the Venue.'
|
||||
= f.input :venue_update_subject
|
||||
= f.input :venue_update_template, :input_html => { :rows => 10, :cols => 20 }
|
||||
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}
|
||||
|
||||
:javascript
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
class AddVenueUpdateToEmailSettings < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :email_settings, :send_on_venue_update, :boolean, default: true
|
||||
add_column :email_settings, :venue_update_subject, :string
|
||||
add_column :email_settings, :venue_update_template, :text
|
||||
end
|
||||
end
|
||||
|
|
@ -170,6 +170,9 @@ ActiveRecord::Schema.define(version: 20140714141156) do
|
|||
t.boolean "send_on_updated_conference_registration_dates", default: true
|
||||
t.string "updated_conference_registration_dates_subject"
|
||||
t.text "updated_conference_registration_dates_template"
|
||||
t.boolean "send_on_venue_update", default: true
|
||||
t.string "venue_update_subject"
|
||||
t.text "venue_update_template"
|
||||
end
|
||||
|
||||
create_table "event_attachments", force: true do |t|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue