24 lines
945 B
Plaintext
24 lines
945 B
Plaintext
|
<%= form_for(@course_semester, :html =>{:class=>"form-horizontal", :style=>"margin: 0;"}, :remote => true, :url => @url ) do |f| %>
|
|||
|
<div class="modal-header">
|
|||
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|||
|
<h3 id="myModalLabel"><%= t("personal_course.course_semester") %></h3>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="modal-body">
|
|||
|
<%= f.fields_for :title_translations do |f| %>
|
|||
|
<% @site_in_use_locales.each do |locale| %>
|
|||
|
<div class="control-group">
|
|||
|
<%= label_tag t(locale), t(locale), :class => 'control-label' %>
|
|||
|
<div class="controls">
|
|||
|
<%= f.text_field locale, :value => (@course_semester.title_translations[locale] rescue nil) %>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<% end %>
|
|||
|
<% end %>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="modal-footer">
|
|||
|
<%= f.submit t('submit'), :class=>'btn btn-primary' %>
|
|||
|
<a class="btn" data-dismiss="modal"><%= t('cancel')%></a>
|
|||
|
</div>
|
|||
|
<% end %>
|