diff --git a/Gemfile.lock b/Gemfile.lock
index 587d7841..5a930ca3 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -8,62 +8,61 @@ GIT
GIT
remote: git://github.com/charlotte-ruby/impressionist.git
- revision: 7a93fff25568cd3edcc63c1a3c4b60dc6b81d2b7
+ revision: 0894f6a550a33f83f4937d655e9f0774521781e4
specs:
- impressionist (1.1.1)
+ impressionist (1.2.0)
httpclient (~> 2.2)
nokogiri (~> 1.5)
GEM
remote: http://rubygems.org/
specs:
- actionmailer (3.2.9)
- actionpack (= 3.2.9)
+ actionmailer (3.2.12)
+ actionpack (= 3.2.12)
mail (~> 2.4.4)
- actionpack (3.2.9)
- activemodel (= 3.2.9)
- activesupport (= 3.2.9)
+ actionpack (3.2.12)
+ activemodel (= 3.2.12)
+ activesupport (= 3.2.12)
builder (~> 3.0.0)
erubis (~> 2.7.0)
journey (~> 1.0.4)
- rack (~> 1.4.0)
+ rack (~> 1.4.5)
rack-cache (~> 1.2)
rack-test (~> 0.6.1)
sprockets (~> 2.2.1)
- activemodel (3.2.9)
- activesupport (= 3.2.9)
+ activemodel (3.2.12)
+ activesupport (= 3.2.12)
builder (~> 3.0.0)
- activerecord (3.2.9)
- activemodel (= 3.2.9)
- activesupport (= 3.2.9)
+ activerecord (3.2.12)
+ activemodel (= 3.2.12)
+ activesupport (= 3.2.12)
arel (~> 3.0.2)
tzinfo (~> 0.3.29)
- activeresource (3.2.9)
- activemodel (= 3.2.9)
- activesupport (= 3.2.9)
- activesupport (3.2.9)
+ activeresource (3.2.12)
+ activemodel (= 3.2.12)
+ activesupport (= 3.2.12)
+ activesupport (3.2.12)
i18n (~> 0.6)
multi_json (~> 1.0)
- addressable (2.3.2)
arel (3.0.2)
- bcrypt-ruby (3.0.1)
+ bcrypt-ruby (3.0.0)
+ binding_of_caller (0.7.1)
+ debug_inspector (>= 0.0.1)
bourne (1.1.2)
mocha (= 0.10.5)
- brakeman (1.9.0)
- activesupport
+ brakeman (1.9.2)
erubis (~> 2.6)
fastercsv (~> 1.5)
haml (~> 3.0)
highline (~> 1.6)
- i18n
- multi_json (~> 1.3)
+ multi_json (~> 1.2)
ruby2ruby (~> 2.0)
- ruby_parser (~> 3.0.4)
+ ruby_parser (~> 3.1.1)
sass (~> 3.0)
terminal-table (~> 1.4)
- bson (1.8.1)
- bson_ext (1.8.1)
- bson (~> 1.8.1)
+ bson (1.8.2)
+ bson_ext (1.8.2)
+ bson (~> 1.8.2)
builder (3.0.4)
capybara (2.0.2)
mime-types (>= 1.16)
@@ -75,13 +74,14 @@ GEM
carrierwave (0.6.2)
activemodel (>= 3.2.0)
activesupport (>= 3.2.0)
- carrierwave-mongoid (0.2.1)
+ carrierwave-mongoid (0.2.2)
carrierwave (~> 0.6.1)
mongoid (~> 2.1)
- childprocess (0.3.6)
- ffi (~> 1.0, >= 1.0.6)
+ childprocess (0.3.8)
+ ffi (~> 1.0, >= 1.0.11)
chinese_pinyin (0.4.1)
chronic (0.9.0)
+ coderay (1.0.8)
coffee-rails (3.2.2)
coffee-script (>= 2.2.0)
railties (~> 3.2.0)
@@ -91,13 +91,14 @@ GEM
coffee-script-source (1.4.0)
columnize (0.3.6)
database_cleaner (0.9.1)
- debugger (1.2.3)
+ debug_inspector (0.0.2)
+ debugger (1.2.4)
columnize (>= 0.3.1)
debugger-linecache (~> 1.1.1)
- debugger-ruby_core_source (~> 1.1.5)
+ debugger-ruby_core_source (~> 1.1.7)
debugger-linecache (1.1.2)
debugger-ruby_core_source (>= 1.1.1)
- debugger-ruby_core_source (1.1.6)
+ debugger-ruby_core_source (1.1.8)
delorean (2.1.0)
chronic
devise (1.5.3)
@@ -107,60 +108,51 @@ GEM
diff-lcs (1.1.3)
encrypted_strings (0.3.3)
erubis (2.7.0)
- eventmachine (1.0.0)
- exception_notification (3.0.0)
+ exception_notification (3.0.1)
actionmailer (>= 3.0.4)
- tinder (~> 1.8)
execjs (1.4.0)
multi_json (~> 1.0)
- factory_girl (4.1.0)
+ factory_girl (4.2.0)
activesupport (>= 3.0.0)
- factory_girl_rails (4.1.0)
- factory_girl (~> 4.1.0)
+ factory_girl_rails (4.2.1)
+ factory_girl (~> 4.2.0)
railties (>= 3.0.0)
faker (1.1.2)
i18n (~> 0.5)
- faraday (0.8.4)
- multipart-post (~> 1.1)
- faraday_middleware (0.9.0)
- faraday (>= 0.7.4, < 0.9)
fastercsv (1.5.5)
fattr (2.2.1)
- ffi (1.2.0)
- haml (3.1.7)
- hashie (1.2.0)
+ ffi (1.4.0)
+ haml (3.1.8)
highline (1.6.15)
hike (1.2.1)
- http_parser.rb (0.5.3)
httpclient (2.3.2)
i18n (0.6.1)
journey (1.0.4)
- jquery-rails (2.1.4)
+ jquery-rails (2.2.1)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
- jquery-ui-rails (3.0.0)
+ jquery-ui-rails (4.0.1)
jquery-rails
railties (>= 3.1.0)
- json (1.7.6)
- libwebsocket (0.1.7.1)
- addressable
- websocket
+ json (1.7.7)
+ libv8 (3.11.8.13)
mail (2.4.4)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
metaclass (0.0.1)
- mime-types (1.19)
- mini_magick (3.4)
+ method_source (0.8.1)
+ mime-types (1.21)
+ mini_magick (3.5.0)
subexec (~> 0.2.1)
mocha (0.10.5)
metaclass (~> 0.0.1)
- mongo (1.8.1)
- bson (~> 1.8.1)
+ mongo (1.8.2)
+ bson (~> 1.8.2)
mongo_session_store-rails3 (3.0.6)
actionpack (>= 3.0)
mongo
- mongoid (2.5.1)
+ mongoid (2.6.0)
activemodel (~> 3.1)
mongo (~> 1.7)
tzinfo (~> 0.3.22)
@@ -170,8 +162,7 @@ GEM
mongoid (~> 2)
mongoid-tree (0.7.0)
mongoid (~> 2.0)
- multi_json (1.5.0)
- multipart-post (1.1.5)
+ multi_json (1.6.1)
net-ldap (0.3.1)
nokogiri (1.5.6)
options (2.3.0)
@@ -182,7 +173,20 @@ GEM
progress_bar (0.4.0)
highline (~> 1.6.1)
options (~> 2.3.0)
- rack (1.4.4)
+ pry (0.9.12)
+ coderay (~> 1.0.5)
+ method_source (~> 0.8)
+ slop (~> 3.4)
+ pry-debugger (0.2.1)
+ debugger (~> 1.2.0)
+ pry (~> 0.9.10)
+ pry-remote (0.1.6)
+ pry (~> 0.9)
+ slop (~> 3.0)
+ pry-stack_explorer (0.4.9)
+ binding_of_caller (>= 0.7)
+ pry (~> 0.9.11)
+ rack (1.4.5)
rack-cache (1.2)
rack (>= 0.4)
rack-protection (1.3.2)
@@ -192,23 +196,24 @@ GEM
rack-test (0.6.2)
rack (>= 1.0)
radius (0.7.3)
- rails (3.2.9)
- actionmailer (= 3.2.9)
- actionpack (= 3.2.9)
- activerecord (= 3.2.9)
- activeresource (= 3.2.9)
- activesupport (= 3.2.9)
+ rails (3.2.12)
+ actionmailer (= 3.2.12)
+ actionpack (= 3.2.12)
+ activerecord (= 3.2.12)
+ activeresource (= 3.2.12)
+ activesupport (= 3.2.12)
bundler (~> 1.0)
- railties (= 3.2.9)
- railties (3.2.9)
- actionpack (= 3.2.9)
- activesupport (= 3.2.9)
+ railties (= 3.2.12)
+ railties (3.2.12)
+ actionpack (= 3.2.12)
+ activesupport (= 3.2.12)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (>= 0.14.6, < 2.0)
rake (10.0.3)
- rdoc (3.12)
+ rb-readline (0.4.2)
+ rdoc (3.12.1)
json (~> 1.4)
redis (3.0.2)
redis-namespace (1.2.1)
@@ -217,6 +222,7 @@ GEM
chinese_pinyin (>= 0.3.0)
redis (>= 2.1.1)
redis-namespace (>= 1.0.2)
+ ref (1.0.2)
resque (1.23.0)
multi_json (~> 1.0)
redis-namespace (~> 1.0)
@@ -238,45 +244,45 @@ GEM
rspec-core (2.12.2)
rspec-expectations (2.12.1)
diff-lcs (~> 1.1.3)
- rspec-mocks (2.12.1)
- rspec-rails (2.12.0)
+ rspec-mocks (2.12.2)
+ rspec-rails (2.12.2)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec-core (~> 2.12.0)
rspec-expectations (~> 2.12.0)
rspec-mocks (~> 2.12.0)
- ruby2ruby (2.0.1)
- ruby_parser (~> 3.0.0)
+ ruby2ruby (2.0.3)
+ ruby_parser (~> 3.1)
sexp_processor (~> 4.0)
- ruby_parser (3.0.4)
+ ruby_parser (3.1.1)
sexp_processor (~> 4.1)
rubyzip (0.9.9)
rufus-scheduler (2.0.17)
tzinfo (>= 0.3.23)
sass (3.2.5)
- sass-rails (3.2.5)
+ sass-rails (3.2.6)
railties (~> 3.2.0)
sass (>= 3.1.10)
tilt (~> 1.3)
- selenium-webdriver (2.27.2)
+ selenium-webdriver (2.30.0)
childprocess (>= 0.2.5)
- libwebsocket (~> 0.1.3)
multi_json (~> 1.0)
rubyzip
- sexp_processor (4.1.3)
+ websocket (~> 1.0.4)
+ sexp_processor (4.1.5)
shoulda-matchers (1.4.2)
activesupport (>= 3.0.0)
bourne (~> 1.1.2)
- simple_oauth (0.1.9)
simplecov (0.7.1)
multi_json (~> 1.0)
simplecov-html (~> 0.7.1)
simplecov-html (0.7.1)
- sinatra (1.3.3)
- rack (~> 1.3, >= 1.3.6)
- rack-protection (~> 1.2)
+ sinatra (1.3.4)
+ rack (~> 1.4)
+ rack-protection (~> 1.3)
tilt (~> 1.3, >= 1.3.3)
+ slop (3.4.3)
social-share-button (0.1.1)
spork (0.9.2)
sprockets (2.2.2)
@@ -297,26 +303,16 @@ GEM
sunspot (= 1.3.3)
sunspot_solr (1.3.3)
terminal-table (1.4.5)
+ therubyracer (0.11.3)
+ libv8 (~> 3.11.8.12)
+ ref
thor (0.17.0)
tilt (1.3.3)
- tinder (1.9.2)
- eventmachine (~> 1.0)
- faraday (~> 0.8)
- faraday_middleware (~> 0.9)
- hashie (~> 1.0)
- json (~> 1.7.5)
- mime-types (~> 1.19)
- multi_json (~> 1.5)
- twitter-stream (~> 0.1)
tinymce-rails (3.5.8)
railties (>= 3.1.1)
treetop (1.4.12)
polyglot
polyglot (>= 0.3.1)
- twitter-stream (0.1.16)
- eventmachine (>= 0.12.8)
- http_parser.rb (~> 0.5.1)
- simple_oauth (~> 0.1.4)
tzinfo (0.3.35)
uglifier (1.3.0)
execjs (>= 0.3.0)
@@ -326,7 +322,7 @@ GEM
warden (1.2.1)
rack (>= 1.0)
watchr (0.7)
- websocket (1.0.6)
+ websocket (1.0.7)
xpath (1.0.0)
nokogiri (~> 1.3)
@@ -350,9 +346,10 @@ DEPENDENCIES
factory_girl_rails
faker
impressionist!
- jquery-rails (= 2.1.4)
+ jquery-rails
jquery-ui-rails
kaminari!
+ libv8 (~> 3.11.8)
mime-types
mini_magick
mongo_session_store-rails3 (= 3.0.6)
@@ -362,9 +359,14 @@ DEPENDENCIES
net-ldap (~> 0.3.1)
nokogiri
progress_bar
+ pry
+ pry-debugger
+ pry-remote
+ pry-stack_explorer
radius
rails (~> 3.2.9)
rake
+ rb-readline
redis (>= 2.1.1)
redis-namespace
redis-search
@@ -385,6 +387,7 @@ DEPENDENCIES
sunspot-rails-tester
sunspot_mongo
sunspot_solr
+ therubyracer
tinymce-rails
uglifier
watchr
diff --git a/config/routes.rb b/config/routes.rb
index e65f5dea..cc272ffc 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -209,11 +209,6 @@ Orbit::Application.routes.draw do
match 'desktop_publications/books_list'=>'desktop_publications#books_list'
match 'desktop_publications/books_add'=>'desktop_publications#books_add'
- match 'desktop_publications/conference_p' => 'desktop_publications#conference_p'
- match 'desktop_publications/conference_p_list/'=>'desktop_publications#conference_p_list'
- match 'desktop_publications/conference_p_add/'=>'desktop_publications#conference_p_add'
- # end
-
# namespace :desktop_research do
match 'desktop_research/research_d' => 'desktop_research#research_d'
match 'desktop_research/research_d_list/' => 'desktop_research#research_d_list'
diff --git a/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/desktop/conference_pages_controller.rb b/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/desktop/conference_pages_controller.rb
index 2bf75b43..4915d5c7 100644
--- a/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/desktop/conference_pages_controller.rb
+++ b/vendor/built_in_modules/personal_conference/app/controllers/panel/personal_conference/desktop/conference_pages_controller.rb
@@ -26,13 +26,60 @@ class Panel::PersonalConference::Desktop::ConferencePagesController < Applicatio
end
def edit
- @writing_conference = WritingConference.new
+ @writing_conference = WritingConference.find(params[:id])
+ @paper_types = ConferencePaperType.all
+ @author_types = ConferenceAuthorType.all
+ respond_to do |format|
+ format.html { render :layout => false}
+ end
end
def create
+ params[:writing_conference][:create_user_id] = current_user.id
+ @writing_conference = WritingConference.new(params[:writing_conference])
+
+ if @writing_conference.save
+ render json: {success: true, msg: t('create.success.paper')}.to_json
+ else
+ error_msg = @writing_conference.errors.full_messages.join("
")
+ render json: {success: false, msg: error_msg}.to_json
+ end
+ end
+
+ def update
+ params[:writing_conference][:update_user_id] = current_user.id
+ @writing_conference= WritingConference.find(params[:id])
+
+ if @writing_conference.update_attributes(params[:writing_conference])
+ render json: {success: true, msg: t('update.success.paper')}.to_json
+ else
+ error_msg = @writing_conference.errors.full_messages.join("
")
+ render json: {success: false, msg: error_msg}.to_json
+ end
end
def destroy
+ @writing_conference = WritingConference.find(params[:id])
+ @writing_conference.destroy
+ render :json => {success: true, msg: t('delete.success.paper')}
+ end
+
+ def conference_type
+ conference_types = ConferencePaperType.all
+ all_conference_lists = WritingConference.where(create_user_id: current_user.id)
+ all_conference_lists = all_conference_lists.map do |j|
+ [ j.conference_title,
+ j.conference_paper_type_ids.map do |type|
+ conference_types.find(type).title
+ end
+ ]
+ end
+
+ @conference_lists = all_conference_lists.uniq
+
+ respond_to do |format|
+ format.html { render :layout => false}
+ end
end
end
diff --git a/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/desktop/conference_pages/_form.html.erb b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/desktop/conference_pages/_form.html.erb
index 472c405a..8c5eb261 100644
--- a/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/desktop/conference_pages/_form.html.erb
+++ b/vendor/built_in_modules/personal_conference/app/views/panel/personal_conference/desktop/conference_pages/_form.html.erb
@@ -34,41 +34,44 @@
class: "s_grid_6 s_grid",
size: "20x2",
placeholder: t("personal_conference.paper_title"),
- value: (@writing_conference.paper_title_translations[locale] rescue nil) %>
+ value: (@writing_conference.paper_title_translations[locale.to_s] rescue nil) %>
<% end %>
<%= t("personal_conference.file")%> | +<%= t("personal_conference.file_name")%> | +<%= t("personal_conference.description") %> | +
---|---|---|
+
+ <%= hidden_field_tag 'plugin_file_field_count', @writing_conference.writing_conference_files.count %>
+ add
+
+ |
+