remove department
This commit is contained in:
parent
ce180839f0
commit
97df100c64
|
@ -3,7 +3,6 @@ class AskQuestion
|
|||
include Mongoid::Timestamps
|
||||
include OrbitCoreLib::ObjectDisable
|
||||
|
||||
field :department, type: String
|
||||
field :name, type: String
|
||||
field :identity, type: String
|
||||
field :email, type: String
|
||||
|
@ -12,7 +11,7 @@ class AskQuestion
|
|||
field :title, 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
|
||||
has_one :ask_reply, dependent: :destroy
|
||||
|
|
|
@ -1,22 +1,6 @@
|
|||
<div id="new-ask-question">
|
||||
<%= form_for @ask_question, url: panel_ask_front_end_ask_questions_path(standalone: true), remote: true,
|
||||
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">
|
||||
<%= f.label :ask_category_id, class: 'control-label required' %>
|
||||
<div class="controls">
|
||||
|
|
|
@ -16,7 +16,6 @@ zh_tw:
|
|||
mongoid:
|
||||
attributes:
|
||||
ask_question:
|
||||
department: 單位
|
||||
ask_category_id: 諮詢類別
|
||||
name: 姓名
|
||||
identity: 身份
|
||||
|
|
Reference in New Issue