Sha256: 20e0c925651dbd5064ec0b79881204ead074c5c52b0afc5baae54cd59e5a9b2f
Contents?: true
Size: 1.77 KB
Versions: 16
Compression:
Stored size: 1.77 KB
Contents
<% if @site.errors.any? %> <div id="error_explanation"> <h2>Please correct the following errors::</h2> <% @site.errors.to_a.in_groups(2, false).each do |group| %> <ul> <% group.each do |msg| %> <li><%= msg %></li> <% end %> </ul> <br style="clear: both;" /> <% end %> <br style="clear: both;" /> </div> <br style="clear: both;" /> <% end %> <fieldset class="form_container"> <%= legend_tag 'About This Site' -%> <div class="form_column"> <%= f.text_field :name -%> <%= f.text_field :domain -%> <%= f.select :layout, Site.layouts, :selected => @site.layout -%> <%= f.select :state, Site::STATES.map{|s| s.capitalize}, :selected => @site.state.capitalize, :label => 'Status' -%> <div id="redirect_field" style="<%= @site.inactive? ? "display: block;" : "display: none;" -%>"><%= f.text_field :redirect_to -%></div> </div> <div class="form_column"> <%= f.text_field :google_profile_id, :label => 'Google Analytics Profile ID' -%> <%= f.text_field :google_webmaster_code -%> <%= f.text_field :yahoo_webmaster_code -%> <%= f.text_field :bing_webmaster_code -%> <%= f.text_field :netinsert_code -%> </div> <br style="clear: both;" /> <div class="link_block"> <%= f.submit 'Save', :class => 'link_button' -%> <%= link_to 'Cancel', admin_sites_path, :class => 'link_button' -%> </div> </fieldset> <br style="clear: both;" /> <script type="text/javascript"> Event.observe($('site_state'), 'change', function (){ if ($('site_state').value == 'Active') { $('redirect_field').hide(); $('site_redirect_to').value = ""; } else { $('redirect_field').show(); } }); </script>
Version data entries
16 entries across 16 versions & 1 rubygems