|
|
|
@ -90,7 +90,14 @@
|
|
|
|
|
<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:320px;", :onblur => "regexName();" %></td>
|
|
|
|
|
<td>
|
|
|
|
|
<%= f.text_field :name,
|
|
|
|
|
:required => true,
|
|
|
|
|
:size => 60,
|
|
|
|
|
:style => "width:320px;",
|
|
|
|
|
:onblur => "regexName();"
|
|
|
|
|
%>
|
|
|
|
|
</td>
|
|
|
|
|
<span style="font-size: 10px;" id="spane_name_notice">(<%= l(:label_workname_lengthlimit) %>)</span>
|
|
|
|
|
</tr>
|
|
|
|
|
<br/>
|
|
|
|
@ -101,7 +108,12 @@
|
|
|
|
|
<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:320px;", :onblur=>"regexWorkdescription();"%>
|
|
|
|
|
<%= f.text_field :android_min_version_available,
|
|
|
|
|
:required => true,
|
|
|
|
|
:size => 60,
|
|
|
|
|
:style => "width:320px;",
|
|
|
|
|
:onblur=>"regexWorkdescription();"
|
|
|
|
|
%>
|
|
|
|
|
</td>
|
|
|
|
|
<span style="font-size: 10px" id="spane_workdescription_notice">(<%= l(:label_workdescription_lengthlimit) %>)</span>
|
|
|
|
|
</tr>
|
|
|
|
@ -116,7 +128,9 @@
|
|
|
|
|
<span>
|
|
|
|
|
<%#= select_tag 'app_type_name', work_type_opttion, {:name => 'app_type_name',:style => "width:358px;"} %>
|
|
|
|
|
</span>
|
|
|
|
|
<%= f.select :app_type_name,work_type_opttion, {},{:style => "width:328px;",:onchange => "selectChange(this)"} %>
|
|
|
|
|
<%= f.select :app_type_name,work_type_opttion,
|
|
|
|
|
{},
|
|
|
|
|
{:style => "width:328px;",:onchange => "selectChange(this)"} %>
|
|
|
|
|
<%#= f.text_field :app_type_name, :required => true, :size => 60, :style => "width:400px;" %>
|
|
|
|
|
</td>
|
|
|
|
|
<span style="font-size: 10px;display: none" id="other_span">
|
|
|
|
@ -131,7 +145,13 @@
|
|
|
|
|
<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:320px;" %></td>
|
|
|
|
|
<td style="width: 100px">
|
|
|
|
|
<%= f.text_field :description,
|
|
|
|
|
:required => true,
|
|
|
|
|
:size => 60,
|
|
|
|
|
:style => "width:320px;"
|
|
|
|
|
%>
|
|
|
|
|
</td>
|
|
|
|
|
<!--span style="font-size: 10px">(<%#= l(:label_workdescription_lengthlimit) %>)</span-->
|
|
|
|
|
</tr>
|
|
|
|
|
<br/>
|
|
|
|
@ -141,8 +161,17 @@
|
|
|
|
|
<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:320px;", :onblur => 'regexDevelopers();' %></td>
|
|
|
|
|
<span style="font-size: 10px" id="span_softapplication_application_developers">(<%= l(:label_workdescription_lengthlimit) %>)</span>
|
|
|
|
|
<td style="width: 100px">
|
|
|
|
|
<%= f.text_field :application_developers,
|
|
|
|
|
:required => true,
|
|
|
|
|
:size => 60,
|
|
|
|
|
:style => "width:320px;",
|
|
|
|
|
:onblur => 'regexDevelopers();'
|
|
|
|
|
%>
|
|
|
|
|
</td>
|
|
|
|
|
<span style="font-size: 10px" id="span_softapplication_application_developers">
|
|
|
|
|
(<%= l(:label_workdescription_lengthlimit) %>)
|
|
|
|
|
</span>
|
|
|
|
|
</tr>
|
|
|
|
|
<br/>
|
|
|
|
|
<br/>
|
|
|
|
@ -150,8 +179,23 @@
|
|
|
|
|
|
|
|
|
|
<tr style="width:800px;">
|
|
|
|
|
<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',:style => "width:328px;" %></span>
|
|
|
|
|
<span><%= link_to l(:label_create_new_projects),{:controller => 'projects',:action => 'new',course: 0, project_type: 0,host: Setting.project_domain}, :target => '_blank' %></span><!-- new_project_path(course: 0, project_type: 0) -->
|
|
|
|
|
<span style="padding-left: 4px">
|
|
|
|
|
<%= select_tag 'project',
|
|
|
|
|
options_for_select(select_option_helper(@option)),
|
|
|
|
|
:name => 'project',
|
|
|
|
|
:class => 'grayline2',
|
|
|
|
|
:style => "width:328px;"
|
|
|
|
|
%>
|
|
|
|
|
</span>
|
|
|
|
|
<span>
|
|
|
|
|
|
|
|
|
|
<!-- modified by longjun -->
|
|
|
|
|
<%= link_to l(:label_create_new_projects),
|
|
|
|
|
new_project_path(:course => 0, :project_type => 0, :host => Setting.project_domain),
|
|
|
|
|
:target => '_blank'
|
|
|
|
|
%>
|
|
|
|
|
<!-- end longjun -->
|
|
|
|
|
</span><!-- new_project_path(course: 0, project_type: 0) -->
|
|
|
|
|
</tr>
|
|
|
|
|
<br/>
|
|
|
|
|
<br/>
|
|
|
|
@ -177,8 +221,12 @@
|
|
|
|
|
<div class="align-center" style="padding-top: -3px; padding-bottom: 8px">
|
|
|
|
|
<input type="button" class="enterprise" value="<%=l(:button_create) %>" onclick="submit_new_softapplication();" >
|
|
|
|
|
<%#= submit_tag l(:button_create) %>
|
|
|
|
|
<%= submit_tag l(:button_cancel), :name => nil, :onclick => "cancel();",
|
|
|
|
|
:type => 'button', :class => "enterprise", :onmouseout => "this.style.backgroundPosition = 'left top'",
|
|
|
|
|
<%= 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 %>
|