bulk reqs: require script & title
This commit is contained in:
@@ -5,6 +5,8 @@ class BulkUpdateRequest < ActiveRecord::Base
|
||||
belongs_to :forum_topic
|
||||
|
||||
validates_presence_of :user
|
||||
validates_presence_of :script
|
||||
validates_presence_of :title
|
||||
validates_inclusion_of :status, :in => %w(pending approved rejected)
|
||||
attr_accessible :user_id, :forum_topic_id, :script, :title, :reason
|
||||
attr_accessible :status, :as => [:admin]
|
||||
|
||||
@@ -16,7 +16,7 @@ create alias aaa -> bbb
|
||||
create implication aaa -> bbb
|
||||
mass update aaa -> bbb
|
||||
</pre>
|
||||
<%= text_area :bulk_update_request, :script, :size => "50x10" %>
|
||||
<%= text_area :bulk_update_request, :script, :size => "50x10", :required => true %>
|
||||
</div>
|
||||
|
||||
<div class="input">
|
||||
|
||||
Reference in New Issue
Block a user