diff --git a/vendor/built_in_modules/feed/app/controllers/panel/feed/back_end/feeds_controller.rb b/vendor/built_in_modules/feed/app/controllers/panel/feed/back_end/feeds_controller.rb
index 77ff050ec..9448960fd 100644
--- a/vendor/built_in_modules/feed/app/controllers/panel/feed/back_end/feeds_controller.rb
+++ b/vendor/built_in_modules/feed/app/controllers/panel/feed/back_end/feeds_controller.rb
@@ -11,7 +11,7 @@ class Panel::Feed::BackEnd::FeedsController < OrbitBackendController
end
def new
- @feed = AnnouncementFeed.new
+ @feed = AnnouncementFeed.new
@categories = BulletinCategory.all
end
@@ -22,7 +22,7 @@ class Panel::Feed::BackEnd::FeedsController < OrbitBackendController
def create
@feed = AnnouncementFeed.new(params[:announcement_feed])
-
+
if @feed.save
redirect_to panel_feed_back_end_feeds_url
else
diff --git a/vendor/built_in_modules/feed/app/models/announcement_feed.rb b/vendor/built_in_modules/feed/app/models/announcement_feed.rb
index 4059babec..f10470bdc 100644
--- a/vendor/built_in_modules/feed/app/models/announcement_feed.rb
+++ b/vendor/built_in_modules/feed/app/models/announcement_feed.rb
@@ -4,6 +4,5 @@ class AnnouncementFeed
field :link, type: String
field :name, type: String
- field :category
end
\ No newline at end of file
diff --git a/vendor/built_in_modules/feed/app/views/panel/feed/back_end/feeds/_form.html.erb b/vendor/built_in_modules/feed/app/views/panel/feed/back_end/feeds/_form.html.erb
index bcfdb747f..e1d1e78a1 100644
--- a/vendor/built_in_modules/feed/app/views/panel/feed/back_end/feeds/_form.html.erb
+++ b/vendor/built_in_modules/feed/app/views/panel/feed/back_end/feeds/_form.html.erb
@@ -17,8 +17,62 @@
- <%= f.select(:category, options_for_select([["#{t('feed.all')}", "all"]] +
- @categories.all.collect {|c| [ c.title, c.title ] })) %>
+ <%= content_tag :label,:class => "checkbox inline" do -%>
+ <%= check_box("announcement_feed", "categories", {:multiple => true}, "c1", nil) %>
+ <%= label_tag "全部" %>
+ <% end -%>
+ <%= content_tag :label,:class => "checkbox inline" do -%>
+ <%= check_box("announcement_feed", "categories", {:multiple => true}, "c2", nil) %>
+ <%= label_tag "緊急" %>
+ <% end -%>
+ <%= content_tag :label,:class => "checkbox inline" do -%>
+ <%= check_box("announcement_feed", "categories", {:multiple => true}, "c3", nil) %>
+ <%= label_tag "一般" %>
+ <% end -%>
+ <%= content_tag :label,:class => "checkbox inline" do -%>
+ <%= check_box("announcement_feed", "categories", {:multiple => true}, "c4", nil) %>
+ <%= label_tag "研討會" %>
+ <% end -%>
+ <%= content_tag :label,:class => "checkbox inline" do -%>
+ <%= check_box("announcement_feed", "categories", {:multiple => true}, "c5", nil) %>
+ <%= label_tag "演講" %>
+ <% end -%>
+ <%= content_tag :label,:class => "checkbox inline" do -%>
+ <%= check_box("announcement_feed", "categories", {:multiple => true}, "c6", nil) %>
+ <%= label_tag "活動" %>
+ <% end -%>
+ <%= content_tag :label,:class => "checkbox inline" do -%>
+ <%= check_box("announcement_feed", "categories", {:multiple => true}, "c7", nil) %>
+ <%= label_tag "徵才" %>
+ <% end -%>
+ <%= content_tag :label,:class => "checkbox inline" do -%>
+ <%= check_box("announcement_feed", "categories", {:multiple => true}, "c8", nil) %>
+ <%= label_tag "招標" %>
+ <% end -%>
+ <%= content_tag :label,:class => "checkbox inline" do -%>
+ <%= check_box("announcement_feed", "categories", {:multiple => true}, "c9", nil) %>
+ <%= label_tag "拖吊" %>
+ <% end -%>
+ <%= content_tag :label,:class => "checkbox inline" do -%>
+ <%= check_box("announcement_feed", "categories", {:multiple => true}, "c10", nil) %>
+ <%= label_tag "校外" %>
+ <% end -%>
+ <%= content_tag :label,:class => "checkbox inline" do -%>
+ <%= check_box("announcement_feed", "categories", {:multiple => true}, "c11", nil) %>
+ <%= label_tag "過期" %>
+ <% end -%>
+ <%= content_tag :label,:class => "checkbox inline" do -%>
+ <%= check_box("announcement_feed", "categories", {:multiple => true}, "c12", nil) %>
+ <%= label_tag "H1N1" %>
+ <% end -%>
+ <%= content_tag :label,:class => "checkbox inline" do -%>
+ <%= check_box("announcement_feed", "categories", {:multiple => true}, "c13", nil) %>
+ <%= label_tag "失物招領" %>
+ <% end -%>
+ <%= content_tag :label,:class => "checkbox inline" do -%>
+ <%= check_box("announcement_feed", "categories", {:multiple => true}, "c14", nil) %>
+ <%= label_tag "近期" %>
+ <% end -%>
diff --git a/vendor/built_in_modules/feed/app/views/panel/feed/back_end/feeds/show.html.erb b/vendor/built_in_modules/feed/app/views/panel/feed/back_end/feeds/show.html.erb
index 1e7bd2af0..e69de29bb 100644
--- a/vendor/built_in_modules/feed/app/views/panel/feed/back_end/feeds/show.html.erb
+++ b/vendor/built_in_modules/feed/app/views/panel/feed/back_end/feeds/show.html.erb
@@ -1,7 +0,0 @@
-<% @client_videos.videos.each do |v| %>
-