Conflicts: app/controllers/bids_controller.rb app/helpers/bids_helper.rb config/locales/zh.yml db/schema.rbexceptionHandle
@ -0,0 +1,20 @@
|
|||||||
|
<!-- fq -->
|
||||||
|
<%= error_messages_for 'bid' %>
|
||||||
|
<!--[form:project]-->
|
||||||
|
<p><%= l(:label_homeworks_form_new_description) %></p>
|
||||||
|
<p>选择课程<%= select_tag 'course', course_options_for_select(@courses) %></p>
|
||||||
|
<p><%= f.text_field :name, :required => true, :size => 60, :style => "width:490px;", :maxlength => Bid::NAME_LENGTH_LIMIT, :value => @bid.name %></p>
|
||||||
|
|
||||||
|
<p style="margin-left:-10px;padding-right: 20px;">
|
||||||
|
<%= f.text_area :description, :rows => 8, :value => @bid.description, :class => 'wiki-edit', :style => "font-size:small;width:490px;margin-left:10px;", :maxlength => Bid::DESCRIPTION_LENGTH_LIMIT %></p>
|
||||||
|
<!-- <p><%= select_tag 'bid_reward_type', "<option value = '0'>#{l(:label_choose_reward)}</option><option value = '1'>#{l(:label_money)}</option><option value = '3'>#{l(:label_bids_credit)}</option><option value = '2'>#{l(:label_reward_1)}</option>".html_safe,
|
||||||
|
:onChange => "show('bid_reward_type', 'bid_budget', '"+l(:label_bids_reward_what)+"','"+l(:label_bids_new_money)+"','"+l(:label_bids_new_credit)+"','"+l(:label_bids_new_content)+"')" %>
|
||||||
|
<%= f.text_field :budget, :required => true, :size => 60, :style => "width:350px;", :placeholder => l(:label_bids_reward_what) %>
|
||||||
|
</p> -->
|
||||||
|
<p><%= f.text_field :deadline, :required => true, :size => 60, :style => "width:150px;" %><%= calendar_for('bid_deadline')%>
|
||||||
|
</p>
|
||||||
|
<p><%= f.select :homework_type, homework_type_option %>
|
||||||
|
</p>
|
||||||
|
<fieldset><legend><%= l(:label_attachment_plural) %></legend>
|
||||||
|
<p><%= render :partial => 'attachments/form', :locals => {:container => @homework} %></p>
|
||||||
|
</fieldset>
|
@ -0,0 +1,10 @@
|
|||||||
|
<!-- fq -->
|
||||||
|
<h3><%=l(:label_new_call)%></h3>
|
||||||
|
|
||||||
|
<%= labelled_form_for @new_bid, :url => {:controller => 'bids', :action => 'create_fork', :id => @bid.id} do |f| %>
|
||||||
|
<div class="box tabular">
|
||||||
|
<%= render :partial => 'fork_form', :locals => { :f => f } %>
|
||||||
|
<%= submit_tag l(:button_create) %>
|
||||||
|
<!-- <%= javascript_tag "$('#bid_name').focus();" %> -->
|
||||||
|
<% end %>
|
||||||
|
</div>
|
@ -0,0 +1,7 @@
|
|||||||
|
class AddidentityToUserExtensions < ActiveRecord::Migration
|
||||||
|
def up
|
||||||
|
end
|
||||||
|
|
||||||
|
def down
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,7 @@
|
|||||||
|
class RemoveidentityFromUserExtensions < ActiveRecord::Migration
|
||||||
|
def up
|
||||||
|
end
|
||||||
|
|
||||||
|
def down
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,5 @@
|
|||||||
|
class AddIdentityToUserExtensions < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
add_column :user_extensions, :identity, :integer
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,5 @@
|
|||||||
|
class AddStudentIdToUserExtensions < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
add_column :user_extensions, :student_id, :integer
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,5 @@
|
|||||||
|
class AddTeacherRealnameToUserExtensions < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
add_column :user_extensions, :teacher_realname, :string
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,5 @@
|
|||||||
|
class AddStudentrRealnameToUserExtensions < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
add_column :user_extensions, :student_realname, :string
|
||||||
|
end
|
||||||
|
end
|
@ -0,0 +1,5 @@
|
|||||||
|
class AddParentIdToBid < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
add_column :bids, :parent_id, :integer
|
||||||
|
end
|
||||||
|
end
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 9.7 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 9.5 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 8.2 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 8.2 KiB |