45 lines
1.6 KiB
Plaintext
45 lines
1.6 KiB
Plaintext
<% content_for :page_specific_css do %>
|
|
<%= stylesheet_link_tag "lib/main-forms" %>
|
|
<% end %>
|
|
<h3 class="sub-title"><%= t('client_management.stress_test') %></h3>
|
|
<%= form_for @setting, :url => {:action => :save_setting}, :html => {:class => "form-horizontal contract-form main-forms"} do |f| %>
|
|
<fieldset>
|
|
<div class="control-group">
|
|
<label class="control-label muted" for="url">Test Url</label>
|
|
<div class="controls">
|
|
<%= f.text_field :url, :class => 'input-large' %>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
<label class="control-label muted" for="ip">IP</label>
|
|
<div class="controls">
|
|
<%= f.text_field :ip, :class =>'input-large' %>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
<label class="control-label muted" for="concurrent">User Number</label>
|
|
<div class="controls">
|
|
<%= f.number_field :concurrent, :class => 'input-large' %>
|
|
</div>
|
|
</div>
|
|
|
|
<% if !@logContent.blank? %>
|
|
<div class="control-group">
|
|
<label class="control-label muted">Summary</label>
|
|
<div class="controls">
|
|
<%= @logContent %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
<div class="form-actions">
|
|
<% if @enable_plow %>
|
|
<%= f.submit 'Stop Test', :name => 'act', :class => 'btn btn-primary' %>
|
|
<iframe src="/admin/plow/" width="100%" onload='javascript:(function(o){o.style.height=o.contentWindow.document.body.scrollHeight+"px";}(this));' style="height:200px;width:100%;border:none;overflow:hidden;" scrolling="no"></iframe>
|
|
<% else %>
|
|
<%= f.submit 'Start Test', :name => 'act', :class => 'btn btn-primary' %>
|
|
<% end %>
|
|
</div>
|
|
</fieldset>
|
|
<% end %> |