Settings
<% if !@settings.persisted? %>
The following configuration is the default configuration.
<% end %>
Client Settings
<%= table_for(ConfigurationSetting.current_client_settings_human) %>
Job Settings
<%= table_for(ConfigurationSetting.current_job_settings) %>
Pool Settings
<%= table_for(ConfigurationSetting.current_pool_settings) %>
<%= link_to 'Change Config',
@settings.persisted? ? edit_admin_setting_path(@settings) : new_admin_setting_path,
class: 'btn btn-primary', role: 'button' %>
<% if @settings.persisted? %>
<%= link_to 'Restore to defaults', reset_admin_setting_path(@settings), method: :delete,
data: { confirm: 'This will reset the configuration to the defaults' },
class: 'btn btn-danger', role: 'button'
%>
<% end %>