2014-04-22 19:27:31 +08:00
|
|
|
|
<%= form_for(softapplication) do |f| %>
|
2014-04-04 17:54:20 +08:00
|
|
|
|
|
2014-04-22 19:27:31 +08:00
|
|
|
|
<% if softapplication.errors.any? %>
|
2014-04-04 17:54:20 +08:00
|
|
|
|
<div id="error_explanation">
|
2014-04-22 19:27:31 +08:00
|
|
|
|
<h2><%= pluralize(softapplication.errors.count, "error") %> prohibited this softapplication from being saved:</h2>
|
2014-04-04 17:54:20 +08:00
|
|
|
|
|
|
|
|
|
<ul>
|
2014-04-22 19:27:31 +08:00
|
|
|
|
<% softapplication.errors.full_messages.each do |msg| %>
|
2014-04-04 17:54:20 +08:00
|
|
|
|
<li><%= msg %></li>
|
|
|
|
|
<% end %>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
2014-04-22 19:27:31 +08:00
|
|
|
|
<fieldset class="contes-new-box">
|
|
|
|
|
|
|
|
|
|
<tr style="width:700px; margin-left: -10px">
|
2014-05-20 10:48:11 +08:00
|
|
|
|
<span><%= l(:label_work_name) %></span>
|
2014-04-22 19:27:31 +08:00
|
|
|
|
<span class="contest-star"> * </span>: <td ><%= f.text_field :name, :required => true, :size => 60, :style => "width:400px;" %></td>
|
|
|
|
|
<span><%= l(:label_softapplication_name_condition)%></span>
|
|
|
|
|
</tr></ br>
|
|
|
|
|
<br />
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
|
|
<tr style="width:800px;">
|
2014-05-20 10:48:11 +08:00
|
|
|
|
<span><%= l(:label_running_platform) %></span>
|
2014-04-22 19:27:31 +08:00
|
|
|
|
<span class="contest-star"> * </span>: <td style="width: 100px"><%= f.text_field :android_min_version_available, :required => true, :size => 60, :style => "width:400px;" %></td>
|
2014-04-04 17:54:20 +08:00
|
|
|
|
|
2014-04-22 19:27:31 +08:00
|
|
|
|
</tr></ br>
|
|
|
|
|
<br />
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
|
|
<tr style="width:800px;">
|
2014-05-20 10:48:11 +08:00
|
|
|
|
<span><%= l(:label_work_type) %></span>
|
2014-04-04 17:54:20 +08:00
|
|
|
|
|
2014-04-22 19:27:31 +08:00
|
|
|
|
<span class="contest-star"> * </span>: <td style="width: 100px"><%= f.text_field :app_type_name, :required => true, :size => 60, :style => "width:400px;" %></td>
|
2014-04-04 17:54:20 +08:00
|
|
|
|
|
2014-04-22 19:27:31 +08:00
|
|
|
|
</tr></ br>
|
|
|
|
|
<br />
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
|
|
<tr style="width:800px;">
|
2014-05-20 10:48:11 +08:00
|
|
|
|
<span><%= l(:label_work_description) %></span>
|
2014-04-22 19:27:31 +08:00
|
|
|
|
<span class="contest-star"> * </span>: <td style="width: 100px"><%= f.text_field :description, :required => true, :size => 60, :style => "width:400px;" %></td>
|
2014-05-20 10:48:11 +08:00
|
|
|
|
<span><%= l(:label_softapplication_description_condition)%></span>
|
2014-04-22 19:27:31 +08:00
|
|
|
|
</tr></ br>
|
|
|
|
|
<br />
|
|
|
|
|
<br />
|
2014-04-04 17:54:20 +08:00
|
|
|
|
|
2014-04-22 19:27:31 +08:00
|
|
|
|
<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>
|
2014-04-04 17:54:20 +08:00
|
|
|
|
|
2014-04-22 19:27:31 +08:00
|
|
|
|
</tr></ br>
|
|
|
|
|
<br />
|
2014-05-20 15:58:34 +08:00
|
|
|
|
<br />
|
|
|
|
|
|
|
|
|
|
<tr style="width:800px;">
|
|
|
|
|
<span><%= l(:label_work_deposit_project) %>:</span>
|
2014-05-20 16:13:59 +08:00
|
|
|
|
<span style="padding-left: 4px"><%= select_tag 'project', options_for_select(select_option_helper(@option)), :name => 'project', :class => 'grayline3' %></span>
|
|
|
|
|
<span><%#= link_to '创建项目', new_project_path(course: 0, project_type: 0), :target=>'_blank'%></span>
|
2014-05-20 15:58:34 +08:00
|
|
|
|
</tr><br/>
|
|
|
|
|
<br />
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
|
|
|
2014-04-04 17:54:20 +08:00
|
|
|
|
|
2014-04-22 19:27:31 +08:00
|
|
|
|
<fieldset style="width: 500px">
|
2014-05-20 10:48:11 +08:00
|
|
|
|
<legend>上传作品软件包和作品截图</legend>
|
2014-04-22 19:27:31 +08:00
|
|
|
|
<%= render_flash_messages %>
|
|
|
|
|
<p id="put-bid-form-partial">
|
|
|
|
|
<%= render :partial => 'attachments/form' %>
|
|
|
|
|
</p>
|
2014-04-23 17:06:48 +08:00
|
|
|
|
<p style="font-size: 10px">1、<%=l(:label_upload_softapplication_packets_mustpacketed)%><br>2、<%=l(:label_upload_softapplication_photo_condition)%></p>
|
|
|
|
|
<p style="font-size: 10px; color: red"><%=l(:label_updated_caution)%></p>
|
2014-04-22 19:27:31 +08:00
|
|
|
|
|
|
|
|
|
</fieldset>
|
|
|
|
|
</fieldset></br>
|
|
|
|
|
<div class="align-center"><%= submit_tag l(:button_create), :onclick => "return true" %></div>
|
2014-04-04 17:54:20 +08:00
|
|
|
|
<% end %>
|
|
|
|
|
|