commit
7c5f862ef9
@ -1,6 +1,7 @@
|
|||||||
class CompetitionModuleMdContent < ActiveRecord::Base
|
class CompetitionModuleMdContent < ActiveRecord::Base
|
||||||
# attr_accessible :title, :body
|
# attr_accessible :title, :body
|
||||||
belongs_to :competition_module
|
belongs_to :competition_module
|
||||||
|
has_many :attachments, :dependent => :destroy
|
||||||
acts_as_attachable
|
acts_as_attachable
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -0,0 +1,15 @@
|
|||||||
|
<div class="task-popup" style="width:400px;">
|
||||||
|
<div class="task-popup-title clearfix task-popup-bggrey">金课开课人数</div>
|
||||||
|
<%= form_for '', :url => update_subject_member_count_managements_path,:html => {:id => 'update_subject_member_count_form', :remote => true, :method => :post} do |f| %>
|
||||||
|
<div class="task_popup_con edu-txt-center">
|
||||||
|
<input type="hidden" name="subject" id="update_subject_member_count_id" value="">
|
||||||
|
<input type="text" name="member_count" placeholder="输入开课人数" class="input-100-35"/>
|
||||||
|
<p class="color-red none edu-txt-left" id="update_subject_member_count_notice"></p>
|
||||||
|
|
||||||
|
<div class="inline mt20">
|
||||||
|
<a href="javascript:void(0);" class="task-btn task-btn-orange fr" onclick="submit_subject_member_count();">确定</a>
|
||||||
|
<a href="javascript:void(0);" onclick="hideModal();" class="pop_close task-btn fr mr10">取消</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
@ -0,0 +1 @@
|
|||||||
|
$("#subject_member_count_<%= @subject.id %>").html("<%= params[:member_count].to_s %>");
|
Loading…
Reference in new issue