2013-09-02 03:20:39 +00:00
|
|
|
<% # encoding: utf-8 %>
|
|
|
|
|
|
|
|
<% content_for :side_bar do %>
|
|
|
|
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t('site.settings'), :link_url => admin_site_site_info_path(@site), :icon => 'icons-cog', :side_bar_content => 'admin/sites/side_bar'} %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<%= stylesheet_link_tag "lib/wrap-nav"%>
|
|
|
|
<%= stylesheet_link_tag "lib/main-forms"%>
|
|
|
|
<%= stylesheet_link_tag "lib/togglebox"%>
|
|
|
|
|
|
|
|
<%= javascript_include_tag 'lib/ckeditor/ckeditor' %>
|
|
|
|
<%= javascript_include_tag 'lib/ckeditor/replace/site_info' %>
|
|
|
|
<%= javascript_include_tag 'lib/site_set' %>
|
|
|
|
</head>
|
|
|
|
|
2013-09-02 09:31:34 +00:00
|
|
|
<%= form_for @site, :url => admin_site_path(@site), :html => {:class => "form-horizontal main-forms"} do |f| %>
|
2013-09-02 03:20:39 +00:00
|
|
|
|
|
|
|
<fieldset>
|
2013-09-02 09:31:34 +00:00
|
|
|
|
|
|
|
|
2013-09-02 03:20:39 +00:00
|
|
|
<!-- Input Area -->
|
|
|
|
<div class="input-area">
|
|
|
|
|
|
|
|
|
2013-09-02 09:31:34 +00:00
|
|
|
<!-- Title-->
|
|
|
|
<div class="control-group input-title">
|
2013-12-24 04:01:40 +00:00
|
|
|
<label class="control-label muted"><%= t("search_engine.syntax") %></label>
|
2013-09-02 09:31:34 +00:00
|
|
|
<div class="controls">
|
|
|
|
<%= text_field_tag 'site[search][sitesearch]',(@site.search["sitesearch"] rescue nil),{ :class => "input-block-level" ,:placeholder => t("search.sitesearch") }%>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- CKeditor Site Header -->
|
|
|
|
<div class="control-group input-content">
|
2013-12-24 04:01:40 +00:00
|
|
|
<label class="control-label muted"><%= t("search_engine.anaytics_code") %></label>
|
2013-09-02 09:31:34 +00:00
|
|
|
<div class="controls">
|
|
|
|
<div class="textarea">
|
|
|
|
<%= f.text_area :google_analytics, :class => "input-block-level"%>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
2013-10-02 07:21:48 +00:00
|
|
|
<!-- Description -->
|
|
|
|
<div class="control-group">
|
2013-12-24 04:01:40 +00:00
|
|
|
<label class="control-label muted"><%= t("search_engine.keywords") %></label>
|
2013-10-02 07:21:48 +00:00
|
|
|
<div class="controls">
|
|
|
|
<div class="tab-content textarea-lang">
|
|
|
|
<div class="btn-group" data-toggle="buttons-radio">
|
2013-11-27 09:50:33 +00:00
|
|
|
<% @site_in_use_locales.each_with_index do |locale, i| %>
|
2013-10-02 07:21:48 +00:00
|
|
|
<a class="btn <%= ( i == 0 ) ? "active" : '' %>" href="#textarea_<%= locale %>_0" data-toggle="tab"><%= I18nVariable.from_locale(locale) %></a>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2013-11-27 09:50:33 +00:00
|
|
|
<% @site_in_use_locales.each_with_index do |locale, i| %>
|
2013-10-02 07:21:48 +00:00
|
|
|
<div class="tab-pane fade in <%= ( i == 0 ) ? "active" : '' %>" id="textarea_<%= locale %>_0">
|
|
|
|
<%= f.fields_for :keywords do |f| %>
|
|
|
|
<%= f.text_area locale, :class=>'resizable', :value => (@site.keywords(locale) rescue nil), :placeholder => I18nVariable.from_locale(locale), :rows=>"3" %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-09-02 09:31:34 +00:00
|
|
|
|
2013-10-02 07:21:48 +00:00
|
|
|
<div class="control-group">
|
2013-12-24 04:01:40 +00:00
|
|
|
<label class="control-label muted"><%= t("search_engine.description") %></label>
|
2013-10-02 07:21:48 +00:00
|
|
|
<div class="controls">
|
|
|
|
<div class="tab-content textarea-lang">
|
|
|
|
<div class="btn-group" data-toggle="buttons-radio">
|
2013-11-27 09:50:33 +00:00
|
|
|
<% @site_in_use_locales.each_with_index do |locale, i| %>
|
2013-10-02 07:21:48 +00:00
|
|
|
<a class="btn <%= ( i == 0 ) ? "active" : '' %>" href="#textarea_<%= locale %>_0" data-toggle="tab"><%= I18nVariable.from_locale(locale) %></a>
|
|
|
|
<% end %>
|
2013-09-02 09:31:34 +00:00
|
|
|
</div>
|
2013-11-27 09:50:33 +00:00
|
|
|
<% @site_in_use_locales.each_with_index do |locale, i| %>
|
2013-10-02 07:21:48 +00:00
|
|
|
<div class="tab-pane fade in <%= ( i == 0 ) ? "active" : '' %>" id="textarea_<%= locale %>_0">
|
|
|
|
<%= f.fields_for :description do |f| %>
|
|
|
|
<%= f.text_area locale, :class=>'resizable', :value => (@site.description(locale) rescue nil), :placeholder => I18nVariable.from_locale(locale), :rows=>"3" %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2013-09-02 09:31:34 +00:00
|
|
|
</div>
|
|
|
|
<!-- Form Actions -->
|
|
|
|
<div class="form-actions">
|
|
|
|
<%= f.submit t("submit"), :class => "btn btn-primary" %>
|
|
|
|
<%= f.submit t("cancel"), :class => "btn ", :type => 'reset' %>
|
2013-09-02 03:20:39 +00:00
|
|
|
</div>
|
|
|
|
|
2013-09-02 09:31:34 +00:00
|
|
|
</fieldset>
|
|
|
|
<% end %>
|