64 lines
1.9 KiB
Plaintext
64 lines
1.9 KiB
Plaintext
|
<% content_for :page_specific_css do %>
|
||
|
<%= stylesheet_link_tag "lib/main-forms" %>
|
||
|
<%= stylesheet_link_tag "lib/main-list" %>
|
||
|
<% end %>
|
||
|
<% content_for :page_specific_javascript do %>
|
||
|
<%= javascript_include_tag "lib/module-area" %>
|
||
|
<% end %>
|
||
|
|
||
|
<h2><%= t('seminar.seminar') %></h2>
|
||
|
|
||
|
<%= form_for @seminar_agreement, url: @url, html: {class: "form-horizontal main-forms"} do |f| %>
|
||
|
<fieldset>
|
||
|
|
||
|
<!-- Input Area -->
|
||
|
<div class="input-area">
|
||
|
|
||
|
<!-- Language Tabs -->
|
||
|
<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 class="<%= 'active' if i == 0 %>">
|
||
|
<a data-toggle="tab" href=".<%= locale %>"><%= t(locale) %></a>
|
||
|
</li>
|
||
|
<% end %>
|
||
|
</ul>
|
||
|
|
||
|
<!-- Language -->
|
||
|
<div class="tab-content language-area">
|
||
|
|
||
|
<% @site_in_use_locales.each_with_index do |locale, i| %>
|
||
|
|
||
|
<div class="<%= locale %> tab-pane fade <%= ( i == 0 ) ? "in active" : '' %>">
|
||
|
|
||
|
<div class="control-group input-content">
|
||
|
<label class="control-label muted"><%= t('seminar.seminar_agreements_content') %></label>
|
||
|
<div class="controls">
|
||
|
<div class="textarea">
|
||
|
<%= f.fields_for :content_translations do |f| %>
|
||
|
<%= f.cktext_area locale, rows: 5, class: "input-block-level", :value => (@seminar_agreement.content_translations[locale] rescue nil) %>
|
||
|
<% end %>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<% end %>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<!-- Form Actions -->
|
||
|
<div class="form-actions">
|
||
|
<%= get_referer_url[:action] rescue "" %>
|
||
|
<%= f.submit t('submit'), class: 'btn btn-primary' %>
|
||
|
<input type="hidden" name="referer_url" value="<%= get_referer_url %>">
|
||
|
<%= link_to t('cancel'), admin_seminars_path, :class=>"btn" %>
|
||
|
</div>
|
||
|
|
||
|
</fieldset>
|
||
|
|
||
|
<% end %>
|