2014-04-10 08:33:30 +08:00
|
|
|
<h3 style="font-size: 18px"><%= l(:label_release_softapplication)%></h3> <!-- <%= render 'form' %>
|
2014-04-04 17:54:20 +08:00
|
|
|
|
|
|
|
<%= link_to 'Back', softapplications_path %> -->
|
|
|
|
|
|
|
|
|
2014-04-14 21:54:54 +08:00
|
|
|
<div >
|
2014-04-09 09:25:24 +08:00
|
|
|
<%= form_for Softapplication.new, :url => {:controller => 'softapplications', :action => 'create'}, :update => "bidding_project_list", :complete => '$("#put-bid-form").hide();', :html => {:multipart => true, :id => 'add_homework_form'} do |f| %>
|
2014-04-14 21:54:54 +08:00
|
|
|
<fieldset class="contes-new-box">
|
|
|
|
<!-- <legend>
|
2014-04-09 09:25:24 +08:00
|
|
|
<%= l(:label_attachment_plural) %>
|
2014-04-14 21:54:54 +08:00
|
|
|
</legend> -->
|
2014-04-09 09:25:24 +08:00
|
|
|
<tr style="width:700px; margin-left: -10px">
|
2014-04-14 21:54:54 +08:00
|
|
|
<span><%= l(:label_softapplication_name) %></span>
|
|
|
|
<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>
|
2014-04-09 09:25:24 +08:00
|
|
|
</tr></ br>
|
2014-04-10 08:33:30 +08:00
|
|
|
<br />
|
2014-04-09 09:25:24 +08:00
|
|
|
<br />
|
|
|
|
|
|
|
|
<tr style="width:800px;">
|
2014-04-14 21:54:54 +08:00
|
|
|
<span><%= l(:label_softapplication_version_available) %></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>
|
2014-04-09 09:25:24 +08:00
|
|
|
|
|
|
|
</tr></ br>
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
|
|
|
|
<tr style="width:800px;">
|
2014-04-14 21:54:54 +08:00
|
|
|
<span><%= l(:label_softapplication_type) %></span>
|
2014-04-09 09:25:24 +08:00
|
|
|
|
2014-04-14 22:12:13 +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-09 09:25:24 +08:00
|
|
|
|
|
|
|
</tr></ br>
|
|
|
|
<br />
|
|
|
|
<br />
|
|
|
|
|
|
|
|
<tr style="width:800px;">
|
2014-04-14 22:12:13 +08:00
|
|
|
<span><%= l(:label_softapplication_description) %></span>
|
|
|
|
<span class="contest-star"> * </span>: <td style="width: 100px"><%= f.text_field :description, :required => true, :size => 60, :style => "width:400px;" %></td>
|
2014-04-09 09:25:24 +08:00
|
|
|
|
|
|
|
</tr></ br>
|
|
|
|
<br />
|
|
|
|
<br />
|
2014-04-14 09:50:36 +08:00
|
|
|
|
|
|
|
<tr style="width:800px;">
|
2014-04-14 22:12:13 +08:00
|
|
|
<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-14 09:50:36 +08:00
|
|
|
|
|
|
|
</tr></ br>
|
|
|
|
<br />
|
|
|
|
<br />
|
2014-04-10 08:33:30 +08:00
|
|
|
<fieldset style="width: 500px">
|
2014-04-14 17:29:38 +08:00
|
|
|
<legend>上传应用软件包和应用截图</legend>
|
2014-04-10 08:33:30 +08:00
|
|
|
<%= render_flash_messages %>
|
|
|
|
<p id="put-bid-form-partial">
|
|
|
|
<%= render :partial => 'attachments/form' %>
|
|
|
|
</p>
|
|
|
|
<p style="font-size: 10px">(<%=l(:label_upload_softapplication_photo_condition)%>)</p>
|
|
|
|
|
|
|
|
</fieldset>
|
|
|
|
</fieldset></br>
|
|
|
|
<div class="align-center"><%= submit_tag l(:button_create), :onclick => "return true" %></div>
|
2014-04-09 09:25:24 +08:00
|
|
|
<script type="text/javascript">
|
|
|
|
function j_submit () {
|
|
|
|
alert('start')
|
|
|
|
var submit_homework = function(){
|
|
|
|
$('#add_homework_form').clone().attr('action', '<%= url_for({:controller => "softapplications", :action => "create"})+".js" %>').ajaxSubmit()
|
|
|
|
};
|
|
|
|
alert('stop')
|
|
|
|
$.globalEval(submit_homework());
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</div>
|
|
|
|
|
2014-04-04 17:54:20 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|