|
|
|
@ -15,6 +15,7 @@
|
|
|
|
|
margin-top: -10px;
|
|
|
|
|
/*margin-right: -4px;*/
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input[type="button"].contest_btn {
|
|
|
|
|
width: 60px;
|
|
|
|
|
height: 30px;
|
|
|
|
@ -30,6 +31,7 @@
|
|
|
|
|
margin-top: -10px;
|
|
|
|
|
margin-right: -2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
textarea:focus {
|
|
|
|
|
border: #d5dee9 1px solid;
|
|
|
|
|
}
|
|
|
|
@ -73,13 +75,6 @@
|
|
|
|
|
<span><strong><%= l(:label_attending_contest) %>:</strong></span>
|
|
|
|
|
<span><%= link_to l(:label_new_attendingcontest_work), "javascript:void(0);", onclick: "$('#put-project-form').toggle();" %></span>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- <div style="padding-left: 82px; ">
|
|
|
|
|
<span style="padding-top: 50px">步骤1:</span>
|
|
|
|
|
<span><%#= link_to '新建参赛作品', new_softapplication_path(:target=>'_blank'), :target=>'_blank' %></span>
|
|
|
|
|
<span><%= link_to '新建参赛作品', "javascript:void(0);", onclick: "$('#put-project-form').toggle();" %></span>
|
|
|
|
|
<span style="font-size: 12px; color: grey">(先点击“新建参赛作品”,然后刷新页面,再继续步骤2。)</span>
|
|
|
|
|
</div> -->
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<% else %>
|
|
|
|
|
<div style="font-size: 14px;margin:10px;padding-left: 73px">
|
|
|
|
@ -91,46 +86,56 @@
|
|
|
|
|
<!--点击新建参赛作品弹出框新建参赛作品并关联到竞赛中-->
|
|
|
|
|
<div id="put-project-form" style="display: none; padding-left: 83px; width: 88%">
|
|
|
|
|
<%= form_for Softapplication.new, :url => softapplications_path do |f| %>
|
|
|
|
|
<fieldset class="contes-new-box", style="padding-left: 36px; line-height: 8px; margin-left: 1px">
|
|
|
|
|
<fieldset class="contes-new-box" style="padding-left: 36px; line-height: 8px; margin-left: 1px" >
|
|
|
|
|
<%= 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>
|
|
|
|
|
<span class="contest-star"> * </span>:
|
|
|
|
|
<td><%= f.text_field :name, :required => true, :size => 60, :style => "width:400px;" %></td>
|
|
|
|
|
<span style="font-size: 10px">(<%= l(:label_workname_lengthlimit) %>)</span>
|
|
|
|
|
</tr><br/>
|
|
|
|
|
</tr>
|
|
|
|
|
<br/>
|
|
|
|
|
<br/>
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
<tr style="width:800px;">
|
|
|
|
|
<span><%= l(:label_running_platform) %></span>
|
|
|
|
|
<span class="contest-star"> * </span>: <td style="width: 100px"><%= f.text_field :android_min_version_available, :required => true, :size => 60, :style => "width:400px;" %></td>
|
|
|
|
|
<span class="contest-star"> * </span>:
|
|
|
|
|
<td style="width: 100px"><%= f.text_field :android_min_version_available, :required => true, :size => 60, :style => "width:400px;" %></td>
|
|
|
|
|
|
|
|
|
|
</tr><br/>
|
|
|
|
|
</tr>
|
|
|
|
|
<br/>
|
|
|
|
|
<br/>
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
<tr style="width:800px;">
|
|
|
|
|
<span><%= l(:label_work_type) %></span>
|
|
|
|
|
|
|
|
|
|
<span class="contest-star"> * </span>: <td style="width: 100px"><%= f.text_field :app_type_name, :required => true, :size => 60, :style => "width:400px;" %></td>
|
|
|
|
|
<span class="contest-star"> * </span>:
|
|
|
|
|
<td style="width: 100px"><%= f.text_field :app_type_name, :required => true, :size => 60, :style => "width:400px;" %></td>
|
|
|
|
|
|
|
|
|
|
</tr><br/>
|
|
|
|
|
</tr>
|
|
|
|
|
<br/>
|
|
|
|
|
<br/>
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
<tr style="width:800px;">
|
|
|
|
|
<span><%= l(:label_work_description) %></span>
|
|
|
|
|
<span class="contest-star"> * </span>: <td style="width: 100px"><%= f.text_field :description, :required => true, :size => 60, :style => "width:400px;" %></td>
|
|
|
|
|
<span class="contest-star"> * </span>:
|
|
|
|
|
<td style="width: 100px"><%= f.text_field :description, :required => true, :size => 60, :style => "width:400px;" %></td>
|
|
|
|
|
<span style="font-size: 10px">(<%= l(:label_workdescription_lengthlimit) %>)</span>
|
|
|
|
|
</tr><br/>
|
|
|
|
|
</tr>
|
|
|
|
|
<br/>
|
|
|
|
|
<br/>
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
<tr style="width:800px;">
|
|
|
|
|
<span><%= l(:label_softapplication_developers) %></span>
|
|
|
|
|
<span class="contest-star"> * </span>: <td style="width: 100px"><%= f.text_field :application_developers, :required => true, :size => 60, :style => "width:400px;" %></td>
|
|
|
|
|
<span class="contest-star"> * </span>:
|
|
|
|
|
<td style="width: 100px"><%= f.text_field :application_developers, :required => true, :size => 60, :style => "width:400px;" %></td>
|
|
|
|
|
|
|
|
|
|
</tr><br/>
|
|
|
|
|
</tr>
|
|
|
|
|
<br/>
|
|
|
|
|
<br/>
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
@ -138,7 +143,8 @@
|
|
|
|
|
<span><%= l(:label_work_deposit_project) %>:</span>
|
|
|
|
|
<span style="padding-left: 4px"><%= select_tag 'project', options_for_select(select_option_helper(@option)), :name => 'project', :class => 'grayline2' %></span>
|
|
|
|
|
<span><%= link_to l(:label_create_new_projects), new_project_path(course: 0, project_type: 0), :target => '_blank' %></span>
|
|
|
|
|
</tr><br/>
|
|
|
|
|
</tr>
|
|
|
|
|
<br/>
|
|
|
|
|
<br/>
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
@ -150,6 +156,7 @@
|
|
|
|
|
<p id="put-bid-form-partial">
|
|
|
|
|
<%= render :partial => 'attachments/form' %>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<p style="font-size: 11px">
|
|
|
|
|
1、<%= l(:label_upload_softapplication_packets_mustpacketed) %> <br/>
|
|
|
|
|
<br>
|
|
|
|
@ -181,7 +188,9 @@
|
|
|
|
|
<div style="padding-left: 18px">
|
|
|
|
|
<div style="font-size: 15px">
|
|
|
|
|
<div>
|
|
|
|
|
<div><strong><%= l(:label_contest_work)%>: <%= link_to(c_project.project.name, project_path(c_project.project), :target => '_blank') %> </strong>
|
|
|
|
|
<div><strong><%= l(:label_contest_work) %>
|
|
|
|
|
: <%= link_to(c_project.project.name, project_path(c_project.project), :target => '_blank') %> </strong>
|
|
|
|
|
|
|
|
|
|
<div style="float: right">
|
|
|
|
|
<td style="color: #ec6300;" align="right" valign="0.1em" width="16%">
|
|
|
|
|
<strong>
|
|
|
|
@ -236,17 +245,21 @@
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div></br>
|
|
|
|
|
</div>
|
|
|
|
|
</br>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="padding-left: 68px">
|
|
|
|
|
<tr>
|
|
|
|
|
<td><%= l(:label_profile) %>:</td>
|
|
|
|
|
<td> <%= c_project.project.description.truncate(90, omission: '...') %> </td>
|
|
|
|
|
</tr></br>
|
|
|
|
|
</tr>
|
|
|
|
|
</br>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="padding-left: 68px; padding-bottom: 8px">
|
|
|
|
|
<span><strong><%= l(:label_attendingcontest_time)%>:</strong><%= format_time c_project.created_at%></span>
|
|
|
|
|
<span style="padding-left: 240px"><strong><%= l(:label_attendingcontest_spoksman)%>:</strong><%= c_project.user.name %></span>
|
|
|
|
|
<span><strong><%= l(:label_attendingcontest_time) %>
|
|
|
|
|
:</strong><%= format_time c_project.created_at %></span>
|
|
|
|
|
<span style="padding-left: 240px"><strong><%= l(:label_attendingcontest_spoksman) %>
|
|
|
|
|
:</strong><%= c_project.user.name %></span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div style="padding-left: 68px">
|
|
|
|
@ -264,24 +277,30 @@
|
|
|
|
|
<tr>
|
|
|
|
|
<td><strong><%= l(:label_contest_work) %>: </strong></td>
|
|
|
|
|
<td> <%= link_to(c_softapplication.softapplication.name, softapplication_path(c_softapplication.softapplication), :target => '_blank') %> </td>
|
|
|
|
|
</tr></br>
|
|
|
|
|
</tr>
|
|
|
|
|
</br>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div style="padding-left: 68px; padding-top: 5px">
|
|
|
|
|
<tr>
|
|
|
|
|
<td><strong><%= l(:label_profile) %>:</strong></td>
|
|
|
|
|
<td> <%= c_softapplication.softapplication.description.truncate(90, omission: '...') %> </td>
|
|
|
|
|
</tr></br>
|
|
|
|
|
</tr>
|
|
|
|
|
</br>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div style="padding-left: 68px; pading-bottom: 8px">
|
|
|
|
|
<span><strong><%= l(:label_attendingcontest_time)%>:</strong><%= format_time c_softapplication.created_at %></span>
|
|
|
|
|
<span style="padding-left: 240px"><strong><%= l(:label_attendingcontest_spoksman)%>:</strong><%= c_softapplication.softapplication.user.name %></span>
|
|
|
|
|
<span><strong><%= l(:label_attendingcontest_time) %>
|
|
|
|
|
:</strong><%= format_time c_softapplication.created_at %></span>
|
|
|
|
|
<span style="padding-left: 240px"><strong><%= l(:label_attendingcontest_spoksman) %>
|
|
|
|
|
:</strong><%= c_softapplication.softapplication.user.name %></span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!--获奖及教师评奖-->
|
|
|
|
|
<div style="padding-left: 18px; padding-bottom: 5px">
|
|
|
|
|
<span style="padding-left: 50px"><strong><%= l(:label_final_scores)%>:</strong></span><span style="color: red"><%= c_softapplication.softapplication.average(:quality).try(:avg).try(:round, 2).to_i.to_s%>分</span>
|
|
|
|
|
<span style="padding-left: 50px"><strong><%= l(:label_final_scores) %>
|
|
|
|
|
:</strong></span><span style="color: red"><%= c_softapplication.softapplication.average(:quality).try(:avg).try(:round, 2).to_i.to_s %>
|
|
|
|
|
分</span>
|
|
|
|
|
<span style="padding-left: 334px">
|
|
|
|
|
<td>
|
|
|
|
|
<strong>
|
|
|
|
|