64 lines
2.2 KiB
Plaintext
64 lines
2.2 KiB
Plaintext
<h3><%= l(:label_release_softapplication)%></h3> <!-- <%= render 'form' %>
|
|
|
|
<%= link_to 'Back', softapplications_path %> -->
|
|
|
|
|
|
<div id="put-bid-form" style="">
|
|
<%= 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| %>
|
|
<fieldset>
|
|
<legend>
|
|
<%= l(:label_attachment_plural) %>
|
|
</legend>
|
|
<tr style="width:700px; margin-left: -10px">
|
|
<td><%= l(:label_softapplication_name) %></td>
|
|
<td style="require, color: #bb0000"> * </td>: <td ><%= f.text_field :name, :required => true, :size => 60, :style => "width:400px;" %></td>
|
|
<td><%= l(:label_softapplication_name_condition)%></td>
|
|
</tr></ br>
|
|
<br />
|
|
<br />
|
|
|
|
<tr style="width:800px;">
|
|
<td><%= l(:label_softapplication_version_available) %></td>
|
|
<td style="require, color: #bb0000"> * </td>: <td style="width: 100px"><%= f.text_field :android_min_version_available, :required => true, :size => 60, :style => "width:400px;" %></td>
|
|
|
|
</tr></ br>
|
|
<br />
|
|
<br />
|
|
|
|
<tr style="width:800px;">
|
|
<td><%= l(:label_softapplication_type) %></td>
|
|
|
|
<td style="require, color: #bb0000"> * </td>: <td style="width: 100px"><%= f.text_field :app_type_name, :required => true, :size => 60, :style => "width:400px;" %></td>
|
|
|
|
</tr></ br>
|
|
<br />
|
|
<br />
|
|
|
|
<tr style="width:800px;">
|
|
<td><%= l(:label_softapplication_description) %></td>
|
|
<td style="require, color: #bb0000"> * </td>: <td style="width: 100px"><%= f.text_field :description, :required => true, :size => 60, :style => "width:400px;" %></td>
|
|
|
|
</tr></ br>
|
|
<br />
|
|
<br />
|
|
<%= render_flash_messages %>
|
|
<p id="put-bid-form-partial">
|
|
<%= render :partial => 'attachments/form' %>
|
|
</p>
|
|
</fieldset>
|
|
<%= submit_tag l(:button_create), :onclick => "return true" %>
|
|
<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>
|
|
|
|
<% end %>
|
|
</div> |