<script type="text/javascript">

localDomains = ""

$(document).ready(function() {
  $.validationEngineLanguage.newLang(localDomains);
  $("#app_env").validationEngine({
    success : function() { document.app_env.submit(); },
    failure : function() {}
  })
});
</script>

<%= $param_label[@app_env.key] %><% if $param_unit[@app_env.key].present? %>(単位：<%= $param_unit[@app_env.key] %>)<% end %>の設定変更
<fieldset>
  <div class="table-sys-a">
    <%= form_with(model: @app_env, url: {action: :update, id: @app_env.id},
                          id: 'app_env', html: {name: "app_env"}) do |f| %>
      <div class="item-mid"></div>
      <div class="input-mid"><%= f.text_field :value, :class => 'validate[required, custom[onlyNumber]]', :size => '', :style => "width:150px;" %><% if $param_unit[@app_env.key].present? %><%= $param_unit[@app_env.key] %><% end %></div>
      <div class="item-mid"></div>
      <div class="input-mid"><%= f.submit "更　新" %></div>
    <% end %>
  </div>
</fieldset>

<br>

<%= link_to "戻る", {:action => session[:target_for_back], :controller => session[:target_for_back_controller], :id => session[:target_for_back_id].present? ? session[:target_for_back_id] : nil} %><br />
