2018-01-01 13:52:15 +00:00
|
|
|
<!-- academic type -->
|
|
|
|
<div class="form-group">
|
2018-01-07 18:22:57 +00:00
|
|
|
<%= f.label :academic_type, t("recruitment.academictype"), :class => "col-sm-2 control-label" %>
|
2018-01-01 13:52:15 +00:00
|
|
|
<div class="col-sm-5">
|
|
|
|
<%= f.select :academic_type, @academic_types, {}, {:class => "form-control"} %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- start date -->
|
|
|
|
<div class="form-group">
|
2018-01-07 18:22:57 +00:00
|
|
|
<%= f.label :start_date, t("recruitment.start_date"), :class => "col-sm-2 control-label" %>
|
2018-01-01 13:52:15 +00:00
|
|
|
<div class="col-sm-5">
|
|
|
|
<%= f.datetime_picker :start_date, :no_label => true, :new_record => @academic.new_record?, :data=>{"picker-type" => "range", "range" => "start"} %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- end date -->
|
|
|
|
<div class="form-group">
|
2018-01-07 18:22:57 +00:00
|
|
|
<%= f.label :end_date, t("recruitment.end_date"), :class => "col-sm-2 control-label" %>
|
2018-01-01 13:52:15 +00:00
|
|
|
<div class="col-sm-5">
|
|
|
|
<%= f.datetime_picker :end_date, :no_label => true, :new_record => @academic.new_record?, :data=>{"picker-type" => "range", "range" => "end"} %>
|
|
|
|
</div>
|
|
|
|
</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" : '' %>">
|
|
|
|
<!-- degree name -->
|
|
|
|
<%= f.fields_for :degree_name_translations do |fe| %>
|
|
|
|
<div class="form-group">
|
2018-01-07 18:22:57 +00:00
|
|
|
<%= fe.label locale, t("recruitment.degree_name"), :class => "col-sm-2 control-label" %>
|
2018-01-01 13:52:15 +00:00
|
|
|
<div class="col-sm-5">
|
|
|
|
<%= fe.text_field locale, :class => "form-control", :value => @academic.degree_name_translations[locale] %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<!-- notes -->
|
|
|
|
<%= f.fields_for :note_translations do |fe| %>
|
|
|
|
<div class="form-group">
|
2018-01-07 18:22:57 +00:00
|
|
|
<%= fe.label locale, t("recruitment.note"), :class => "col-sm-2 control-label" %>
|
2018-01-01 13:52:15 +00:00
|
|
|
<div class="col-sm-5">
|
|
|
|
<%= fe.text_area locale, :rows => 10, :class => "form-control", :value => @academic.note_translations[locale] %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|