% if type == "Edit" %> <% url = {:controller => 'application_specification', :action => 'edit_application', :id => params[:id]} %> <% else %> <% url = {:controller => 'application_specification', :action => 'add_application'} %> <% end %> <%form_remote_for :application, :url => url, :before => "show_busy_div()", :complete => "hide_busy_div(request)", :update => "application_form" do %>
<%=type%> Application | |||
---|---|---|---|
<%=error_messages_for 'application'%> |
|||
Application Name* | <%if controller.action_name == "edit_application_form" or controller.action_name == "edit_application"%><%=@application.name%><%=hidden_field :application, :name%> | <%else%><%=text_field :application, :name, :size => 20, :tabindex => "1"%> | <%end%>|
Resolver*
<%=link_to_function "Help",:onclick => "addHelp('resolver')"%>
|
<%=text_field :application, :resolver, :size => 20, :tabindex => "2"%> | ||
Path*
<%=link_to_function "Help", :onclick=>"addHelp('path')"%>
|
<%=text_field :application, :path, :size => 20, :tabindex => "3"%> | ||
RunAsUser*
<%=link_to_function "Help", :onclick => "addHelp('runasuser')"%>
|
<%=text_field :application, :run_as_user, :size=>20, :tabindex => "4"%> | ||
Type
<%=link_to_function "Help", :onclick => "addHelp('type')"%>
|
<%=select :application, :type1,%w{Rails Rack}, {}, {:onChange => 'disableAnalytics(this.value);', :tabindex => "5"}%> | ||
Analytics
<%=link_to_function "Help", :onclick => "addHelp('analytics')"%>
|
<%=select :application, :analytics, @analytics, {}, {:tabindex => "6"}%> | ||
Environment | <%=select :application, :environment, %w{Production Development Test}, {}, {:width => 20, :tabindex => "7"}%> | ||
Minimum number of workers
<%=link_to_function "Help", :onclick => "addHelp('app_minworker')"%>
|
<%=text_field :application, :min_worker, :size=>20, :tabindex => "8"%> | ||
Maximum number of workers
<%=link_to_function "Help", :onclick => "addHelp('app_maxworker')"%>
|
<%=text_field :application, :max_worker, :size => 20, :tabindex => "9"%> | ||
<%=hidden_field :application, :app_id, :size => 20%> <%=submit_tag 'Save and Restart', :tabindex => "10"%> |
<%else%>
<%=hidden_field :application, :app_id, :size => 20%> <%=submit_tag 'Deploy', :tabindex => "10"%> |
<%end%>
||
<%=link_to 'Back', configuration_path, :tabindex => "11"%> |