56 lines
2.1 KiB
Plaintext
56 lines
2.1 KiB
Plaintext
|
<!-- academic type -->
|
||
|
<div class="form-group">
|
||
|
<%= f.label :academic_type, "Academic Type", :class => "col-sm-2 control-label" %>
|
||
|
<div class="col-sm-5">
|
||
|
<%= f.select :academic_type, @academic_types, {}, {:class => "form-control"} %>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<!-- start date -->
|
||
|
<div class="form-group">
|
||
|
<%= f.label :start_date, "Start Date", :class => "col-sm-2 control-label" %>
|
||
|
<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">
|
||
|
<%= f.label :end_date, "End Date", :class => "col-sm-2 control-label" %>
|
||
|
<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">
|
||
|
<%= fe.label locale, "Degree Name", :class => "col-sm-2 control-label" %>
|
||
|
<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">
|
||
|
<%= fe.label locale, "Note", :class => "col-sm-2 control-label" %>
|
||
|
<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>
|