This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/app/views/admin/sites/site_info.html.erb

129 lines
6.0 KiB
Plaintext
Raw Permalink Normal View History

2012-07-26 08:39:29 +00:00
<% # encoding: utf-8 %>
2012-05-08 12:06:56 +00:00
<% 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'} %>
2012-05-08 12:06:56 +00:00
<% end %>
2013-08-30 01:56:34 +00:00
<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>
<%= form_for @site, :url => admin_site_path(@site), :html => {:class => "form-horizontal main-forms"} do |f| %>
<fieldset>
<!-- Input Area -->
<div class="input-area">
<!-- Language Tabs -->
<div class="nav-name"><strong>Language</strong></div>
<ul class="nav nav-pills language-nav">
<% @site_in_use_locales.each do |locale|%>
2013-08-30 01:56:34 +00:00
<%= content_tag :li, link_to(I18nVariable.from_locale(locale), ".#{locale}", :data => {:toggle => "tab"}), :class => (active_when_current_locale_eq locale) %>
<% end %>
</ul>
<!-- Language -->
<div class="tab-content language-area">
<% @site_in_use_locales.each do |locale|%>
2013-08-30 01:56:34 +00:00
<%= content_tag :div, :class => "tab-pane fade #{active_when_current_locale_eq locale} #{locale}" do %>
<div class="control-group input-title">
<label class="control-label muted"><%= t 'site.title' %></label>
<div class="controls">
<%= f.fields_for :title_translations do |f| %>
<%= f.text_field locale, :class => "input-xxlarge", :value => (@site.title_translations[locale] rescue nil) %>
<% end %>
</div>
</div>
<% end %>
<% end %>
<!-- Always show in the title bar -->
2013-08-30 01:56:34 +00:00
<div class="control-group">
<label class="control-label muted"><%= t :always_display_title %>
2013-08-30 01:56:34 +00:00
</label>
<div class="controls">
<%= f.check_box :title_always_on, :class => "toggle-check", :data => { :title => t('site_title_always_display') } %>
2013-08-30 01:56:34 +00:00
</div>
</div>
<hr>
<!-- CKeditor Site Header -->
<% @site_in_use_locales.each do |locale|%>
<%= content_tag :div, :class => "tab-pane fade #{active_when_current_locale_eq locale} #{locale}" do %>
2013-08-30 10:17:27 +00:00
<label class="control-label muted"><%= t('site.header')%></label>
2013-08-30 01:56:34 +00:00
<div class="controls">
<div class="textarea">
2013-08-30 10:17:27 +00:00
<%= f.fields_for :sub_menu_translations do |f| %>
<%= f.text_area locale, :class => "ckeditor input-block-level", :value => (@site.sub_menu_translations[locale] rescue nil) %>
<% end %>
2013-08-30 01:56:34 +00:00
</div>
</div>
<%end%>
<%end%>
2013-08-30 01:56:34 +00:00
<!-- Sitemap menu in Header -->
<div class="control-group">
<label class="control-label muted"><%= t :sitemap_menu_in_header %>
</label>
<div class="controls">
<%= f.check_box :sitemap_menu_in_header, :class => "toggle-check" %>
</div>
</div>
<hr>
<!-- CKeditor Site Footer -->
<% @site_in_use_locales.each do |locale|%>
<%= content_tag :div, :class => "tab-pane fade #{active_when_current_locale_eq locale} #{locale}" do %>
<label class="control-label muted"><%= t('site.footer')%></label>
<div class="controls">
<div class="textarea">
<%= f.fields_for :footer_translations do |f| %>
<%= f.text_area locale, :class => "ckeditor input-block-level", :value => (@site.footer_translations[locale] rescue nil) %>
<% end %>
</div>
</div>
<%end%>
<%end%>
2013-08-30 01:56:34 +00:00
<hr>
<!-- Terms of Use -->
<div class="control-group">
<label class="control-label muted"><%= t('site.terms_of_use')%></label>
2013-08-30 01:56:34 +00:00
<div class="controls">
<%= f.check_box :enable_terms_of_use, :class => "toggle-check", :data => { :title => t('site.terms_display_in_footer') } %>
2013-08-30 01:56:34 +00:00
</div>
</div>
<!-- CKeditor Site Footer -->
<% @site_in_use_locales.each do |locale|%>
<%= content_tag :div, :class => "tab-pane fade #{active_when_current_locale_eq locale} #{locale}" do %>
<label class="control-label muted"><%= t('site.terms_of_use_content')%></label>
2013-08-30 01:56:34 +00:00
<div class="controls">
<div class="textarea">
<%= f.fields_for :terms_of_use_translations do |f| %>
<%= f.text_area locale, :class => "ckeditor input-block-level", :value => (@site.terms_of_use_translations[locale] rescue nil) %>
<% end %>
2013-08-30 01:56:34 +00:00
</div>
</div>
<%end%>
<%end%>
2013-08-30 01:56:34 +00:00
<!-- Form Actions -->
<div class="form-actions">
<%= f.submit t("submit"), :class => "btn btn-primary" %>
<%= f.submit t("cancel"), :class => "btn ", :type => 'reset' %>
2013-08-30 01:56:34 +00:00
</div>
</div>
</fieldset>
<% end %>