|
|
|
@ -76,17 +76,14 @@
|
|
|
|
|
<span><%= link_to '新建参赛作品', "javascript:void(0);", onclick: "$('#put-project-form').toggle();" %></span>
|
|
|
|
|
<span style="font-size: 12px; color: grey">(先点击“新建参赛作品”,然后刷新页面,再继续步骤2。)</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="padding-left: 82px; ">
|
|
|
|
|
<span style="padding-top: 50px">步骤2:</span>
|
|
|
|
|
<span><%= link_to '关联参赛作品', "javascript:void(0);", onclick: "$('#put-bid-form').toggle();" %></span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!--点击新建参赛作品弹出框-->
|
|
|
|
|
<!--点击新建参赛作品弹出框新建参赛作品并关联到竞赛中-->
|
|
|
|
|
<div id="put-project-form" style="display: none; padding-left: 83px; width: 70%">
|
|
|
|
|
<%= form_for Softapplication.new, :remote=>true, :url => softapplications_path, :complete => '$("#put-bid-form").hide();' do |f| %>
|
|
|
|
|
<%= form_for Softapplication.new, :url => softapplications_path do |f| %>
|
|
|
|
|
<fieldset class="contes-new-box", style="padding-left: 36px">
|
|
|
|
|
|
|
|
|
|
<%= hidden_field_tag 'contest_id', @contest.id %>
|
|
|
|
|
<tr style="width:700px; margin-left: -10px">
|
|
|
|
|
<span><%= l(:label_work_name) %></span>
|
|
|
|
|
<span class="contest-star"> * </span>: <td ><%= f.text_field :name, :required => true, :size => 60, :style => "width:400px;" %></td>
|
|
|
|
@ -147,35 +144,14 @@
|
|
|
|
|
</fieldset>
|
|
|
|
|
</fieldset></br>
|
|
|
|
|
<div class="align-center", style="padding-top: -3px; padding-bottom: 8px">
|
|
|
|
|
<%= submit_tag l(:button_create), :onclick => "cancel();" %>
|
|
|
|
|
<%= submit_tag l(:button_create) %>
|
|
|
|
|
<%= submit_tag l(:button_cancel), :name => nil, :onclick => "cancel();",
|
|
|
|
|
:type => 'button', :class => "enterprise", :onmouseout => "this.style.backgroundPosition = 'left top'",
|
|
|
|
|
:onmouseover => "this.style.backgroundPosition = 'left -30px'" %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!--点击关联参赛作品后弹出关联框-->
|
|
|
|
|
<div id="put-bid-form" style="display: none; padding-left: 83px; width: 70%">
|
|
|
|
|
<%= form_for "contest_for_save", :remote=>true, :url => {:controller => 'contests', :action => 'add_softapplication'}, :update => "contesting_softapplication_list", :complete => '$("#put-bid-form").hide();' do |f| %>
|
|
|
|
|
<table id="contesting_table" border="0" width="102%" style="margin-left: -3px;">
|
|
|
|
|
<!--该table为点击关联参赛作品后弹出的-->
|
|
|
|
|
<tr style="padding-left: 50px">
|
|
|
|
|
<%= select_tag 'contest', options_for_select(select_option_app_helper(@softapplication)), :name => 'contest', :class => 'grayline' %>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td><%= f.text_area :contest_message, :id => "contest_message", :required => true, :rows => 2, :cols => 40, :placeholder => l(:label_bid_reason), :style => "resize: none;", :class => 'noline'%></td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td align="right"> <%= submit_tag l(:button_add), :name => nil , :class => "enterprise",
|
|
|
|
|
:onmouseout => "this.style.backgroundPosition = 'left top'",
|
|
|
|
|
:onmouseover => "this.style.backgroundPosition = 'left -30px'"%>
|
|
|
|
|
<%= submit_tag l(:button_cancel), :name => nil, :onclick => "cancel();",
|
|
|
|
|
:type => 'button', :class => "enterprise", :onmouseout => "this.style.backgroundPosition = 'left top'",
|
|
|
|
|
:onmouseover => "this.style.backgroundPosition = 'left -30px'" %> </td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
|