Sha256: 1ee19ee3fe8ada079ac3de324bf0a5830db9147f2ad6f265df1a4b5cf0d7a45b
Contents?: true
Size: 1.87 KB
Versions: 1
Compression:
Stored size: 1.87 KB
Contents
<!-- WebROaR - Ruby Application Server - http://webroar.in/ Copyright (C) 2009 Goonj LLC This file is part of WebROaR. WebROaR is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. WebROaR is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with WebROaR. If not, see <http://www.gnu.org/licenses/>. --> <%old_value = get_old_value_for_div(params[:div_id])%> <div id = 'div_add_div'> <span style = "height:20px;float:left"> <%remote_form_for :data, :update => params[:div_id], :url => {:controller => 'server_specification', :action => 'save_data', :div_id => params[:div_id], :old_value => old_value}do%> <%if params[:div_id] == 'log_div'%> <%=select :data, :value, %w{INFO WARN SEVERE FATAL}, :selected => old_value%> <%elsif params[:div_id] == 'access_log_div' %> <%=select :data, :value, %w{Enabled Disabled}, :selected => old_value %> <%elsif params[:div_id] == 'key_div' or params[:div_id] == 'certificate_div'%> <%=text_field :data, :value, :size => '15', :value => old_value%> <%else%> <%=text_field :data, :value, :size => '10', :value => h(old_value)%> <%end%> <%=submit_tag 'Save'%> <%end%> </span> <span style = "height:20px;float:right;"> <%remote_form_for :cancel, :update => params[:div_id], :url => {:controller => 'server_specification', :action => 'cancel_edit', :div_id => params[:div_id], :old_value => old_value}do%> <%=submit_tag 'Cancel'%> <%end%> </span> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
webroar-0.4.0 | src/admin_panel/app/views/server_specification/_add_div.html.erb |