diff --git a/app/controllers/management/conferences_controller.rb b/app/controllers/management/conferences_controller.rb index ef869b3..5b706d9 100644 --- a/app/controllers/management/conferences_controller.rb +++ b/app/controllers/management/conferences_controller.rb @@ -51,7 +51,7 @@ module Management def conference_params params.require(:conference).permit( - :title, :email, :start_date, :end_date, :description, + :title, :email, :start_date, :end_date, :description, :host_name, event_types_attributes: [:id, :name, :description, :_destroy], tracks_attributes: [:id, :name, :color, :description, :_destroy], halls_attributes: [:id, :name, :_destroy] diff --git a/app/views/management/conferences/_form.html.slim b/app/views/management/conferences/_form.html.slim index 62283ca..9415790 100644 --- a/app/views/management/conferences/_form.html.slim +++ b/app/views/management/conferences/_form.html.slim @@ -7,6 +7,7 @@ .col-lg-12 = f.input :title = f.input :email + = f.input :host_name = f.input :start_date, as: :date = f.input :end_date, as: :date = f.input :description diff --git a/config/locales/bg.yml b/config/locales/bg.yml index d47dcf1..b5fc7a7 100644 --- a/config/locales/bg.yml +++ b/config/locales/bg.yml @@ -109,6 +109,7 @@ bg: conference: email: E-mail title: Заглавие + host_name: Домейн start_date: Начална дата end_date: Крайна дата description: Описание diff --git a/db/migrate/20150815030159_add_host_name_to_conferences.rb b/db/migrate/20150815030159_add_host_name_to_conferences.rb new file mode 100644 index 0000000..5aa75e5 --- /dev/null +++ b/db/migrate/20150815030159_add_host_name_to_conferences.rb @@ -0,0 +1,6 @@ +class AddHostNameToConferences < ActiveRecord::Migration + def change + add_column :conferences, :host_name, :string + add_index :conferences, :host_name + end +end