Adds email template and settings for conference dates updates
This commit is contained in:
parent
aee73fb442
commit
75cf1123cf
4 changed files with 16 additions and 1 deletions
|
|
@ -3,7 +3,9 @@ class EmailSettings < ActiveRecord::Base
|
||||||
:send_on_confirmed_without_registration, :registration_email_template,
|
:send_on_confirmed_without_registration, :registration_email_template,
|
||||||
:accepted_email_template, :rejected_email_template, :confirmed_email_template,
|
:accepted_email_template, :rejected_email_template, :confirmed_email_template,
|
||||||
:registration_subject, :accepted_subject, :rejected_subject,
|
:registration_subject, :accepted_subject, :rejected_subject,
|
||||||
:confirmed_without_registration_subject
|
:confirmed_without_registration_subject,
|
||||||
|
:send_on_updated_conferences_dates, :updated_conference_dates_subject
|
||||||
|
:updated_conference_dates_template
|
||||||
|
|
||||||
def get_values(conference, user, event = nil)
|
def get_values(conference, user, event = nil)
|
||||||
h = {
|
h = {
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,9 @@
|
||||||
= f.input :send_on_confirmed_without_registration, :label => false, :hint => "Send an email when a user has a confirmed proposal, but isn't yet registered?"
|
= f.input :send_on_confirmed_without_registration, :label => false, :hint => "Send an email when a user has a confirmed proposal, but isn't yet registered?"
|
||||||
= f.input :confirmed_without_registration_subject
|
= f.input :confirmed_without_registration_subject
|
||||||
= f.input :confirmed_email_template, :input_html => { :rows => 10, :cols => 20 }
|
= f.input :confirmed_email_template, :input_html => { :rows => 10, :cols => 20 }
|
||||||
|
= f.input :send_on_updated_conference_dates, hint: "This is to notify all participants that the conference dates has been changed."
|
||||||
|
= f.input :updated_conference_dates_subject
|
||||||
|
= f.input :updated_conference_dates_template, :input_html => { :rows => 10, :cols => 20 }
|
||||||
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}
|
= f.action :submit, :as => :button, :button_html => {:class => "btn btn-primary"}
|
||||||
|
|
||||||
:javascript
|
:javascript
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
class AddConferenceDatesUpdatesToEmailSettings < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
add_column :email_settings, :send_on_updated_conference_dates, :boolean, default: true
|
||||||
|
add_column :email_settings, :updated_conference_dates_subject, :string
|
||||||
|
add_column :email_settings, :updated_conference_dates_template, :text
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
@ -164,6 +164,9 @@ ActiveRecord::Schema.define(version: 20140714141156) do
|
||||||
t.string "accepted_subject"
|
t.string "accepted_subject"
|
||||||
t.string "rejected_subject"
|
t.string "rejected_subject"
|
||||||
t.string "confirmed_without_registration_subject"
|
t.string "confirmed_without_registration_subject"
|
||||||
|
t.boolean "send_on_updated_conference_dates", default: true
|
||||||
|
t.string "updated_conference_dates_subject"
|
||||||
|
t.text "updated_conference_dates_template"
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "event_attachments", force: true do |t|
|
create_table "event_attachments", force: true do |t|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue