60 lines
2.6 KiB
Plaintext
60 lines
2.6 KiB
Plaintext
|
<% content_for :page_specific_css do %>
|
||
|
<%= stylesheet_link_tag "lib/main-forms" %>
|
||
|
<% end %>
|
||
|
|
||
|
<div class="input-area">
|
||
|
<div class="nav-name"><strong><%= t(:language) %></strong></div>
|
||
|
<ul class="nav nav-pills language-nav">
|
||
|
<% @site_in_use_locales.each_with_index do |locale, i| %>
|
||
|
<li <%= (i == 0 ? 'class=active' : '') %>>
|
||
|
<a href=".<%= locale %>" data-toggle="tab"><%= t(locale.to_s) %></a>
|
||
|
</li>
|
||
|
<% end %>
|
||
|
</ul>
|
||
|
<div class="tab-content language-area">
|
||
|
<!-- Language Tabs -->
|
||
|
<% @site_in_use_locales.each_with_index do |locale, i| %>
|
||
|
<div class="tab-pane fade in <%= (i == 0 ? 'active' : '') %> <%= locale %>">
|
||
|
<div class="control-group input-content">
|
||
|
<%= f.fields_for :title_translations do |con| %>
|
||
|
<%= label_tag(locale, t(:title), :class=>"control-label muted") %>
|
||
|
<div class="controls">
|
||
|
<%= con.text_field locale, :class => "input-block-level", :value => (@wiki.title_translations[locale] rescue nil)%>
|
||
|
</div>
|
||
|
<% end %>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="tab-pane fade in <%= (i == 0 ? 'active' : '') %> <%= locale %>">
|
||
|
<div class="control-group input-content">
|
||
|
<%= label_tag(locale, t("page_content.wiki_pages"), :class=>"control-label muted") %>
|
||
|
<div class="controls">
|
||
|
<%= select_tag "wikis[#{locale.to_s}]", options_for_select(@options[locale.to_s]), {:prompt => "----Select a WIKI----"} %>
|
||
|
<a href="#createWiki" class="btn btn-info" data-toggle="modal">Create</a>
|
||
|
<a href="" class="btn btn-primary insert_wiki_page <%= @options[locale.to_s].blank? ? "hide" : "" %>" >Insert</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="tab-pane fade in <%= (i == 0 ? 'active' : '') %> <%= locale %>">
|
||
|
<div class="control-group input-content">
|
||
|
<%= f.fields_for :content_translations do |con| %>
|
||
|
<%= label_tag(locale, t(:content), :class=>"control-label muted") %>
|
||
|
<div class="controls">
|
||
|
<div class="textarea">
|
||
|
<%= con.text_area locale, :class => "ckeditor input-block-level", :value => (@wiki.content_translations[locale] rescue nil)%>
|
||
|
</div>
|
||
|
</div>
|
||
|
<% end %>
|
||
|
</div>
|
||
|
</div>
|
||
|
<% end %>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="form-actions">
|
||
|
<%= f.hidden_field :update_user_id, :value=>current_user.id.to_s %>
|
||
|
<%= f.hidden_field :page_id, :value=>params[:page_id] %>
|
||
|
<input type="hidden" name="referer_url" value="<%= request.referer %>">
|
||
|
<%= f.submit t("page_content.save"), :class=> "btn btn-primary bt-form-save" %>
|
||
|
</div>
|