remove department

This commit is contained in:
iCross 2013-05-27 17:39:39 +08:00 committed by chris
parent ce180839f0
commit 97df100c64
3 changed files with 1 additions and 19 deletions

View File

@ -3,7 +3,6 @@ class AskQuestion
include Mongoid::Timestamps include Mongoid::Timestamps
include OrbitCoreLib::ObjectDisable include OrbitCoreLib::ObjectDisable
field :department, type: String
field :name, type: String field :name, type: String
field :identity, type: String field :identity, type: String
field :email, type: String field :email, type: String
@ -12,7 +11,7 @@ class AskQuestion
field :title, type: String field :title, type: String
field :content, type: String field :content, type: String
validates_presence_of :department, :name, :identity, :email, :title, :content validates_presence_of :name, :identity, :email, :title, :content
belongs_to :ask_category belongs_to :ask_category
has_one :ask_reply, dependent: :destroy has_one :ask_reply, dependent: :destroy

View File

@ -1,22 +1,6 @@
<div id="new-ask-question"> <div id="new-ask-question">
<%= form_for @ask_question, url: panel_ask_front_end_ask_questions_path(standalone: true), remote: true, <%= form_for @ask_question, url: panel_ask_front_end_ask_questions_path(standalone: true), remote: true,
html: {class: 'form-horizontal'} do |f| %> html: {class: 'form-horizontal'} do |f| %>
<div class="control-group">
<div class="controls">
<%= f.select :department, options_for_select([
['文書組', '文書組'],
['事務租', '事務租'],
['保管組', '保管組'],
['出納組', '出納組'],
['采購組', '采購組'],
['經營管理組', '經營管理組'],
['駐警隊', '駐警隊'],
['社科院總務分處', '社科院總務分處'],
['醫學院總務分處', '醫學院總務分處'],
['總務處秘書室', '總務處秘書室'],
]) %>
</div>
</div>
<div class="control-group"> <div class="control-group">
<%= f.label :ask_category_id, class: 'control-label required' %> <%= f.label :ask_category_id, class: 'control-label required' %>
<div class="controls"> <div class="controls">

View File

@ -16,7 +16,6 @@ zh_tw:
mongoid: mongoid:
attributes: attributes:
ask_question: ask_question:
department: 單位
ask_category_id: 諮詢類別 ask_category_id: 諮詢類別
name: 姓名 name: 姓名
identity: 身份 identity: 身份