Fix bug.
This commit is contained in:
parent
ca5cfb6560
commit
08e062e0ab
|
@ -43,7 +43,7 @@
|
||||||
<!-- selected_course title-->
|
<!-- selected_course title-->
|
||||||
<div class="control-group input-title">
|
<div class="control-group input-title">
|
||||||
<label class="control-label muted"><%= t("personal_selected_course.course_title") %></label>
|
<label class="control-label muted"><%= t("personal_selected_course.course_title") %></label>
|
||||||
<div class="controls larger course_title <%=locale%>">
|
<div class="controls larger">
|
||||||
<% if @selected_course.course.nil? %>
|
<% if @selected_course.course.nil? %>
|
||||||
<!-- Select Course -->
|
<!-- Select Course -->
|
||||||
<% if i == 0%>
|
<% if i == 0%>
|
||||||
|
@ -55,7 +55,7 @@
|
||||||
<%= f.text_field locale, class: "input-block-level other_course_title #{locale}", placeholder: t("personal_selected_course.course_title"), value: (@selected_course.course_title_translations[locale] rescue nil) %>
|
<%= f.text_field locale, class: "input-block-level other_course_title #{locale}", placeholder: t("personal_selected_course.course_title"), value: (@selected_course.course_title_translations[locale] rescue nil) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<span id="selected_course_<%=locale.to_s%>"></span>
|
<span id="selected_course_<%=locale.to_s%>" class="course_title <%=locale%>"></span>
|
||||||
<%= f.fields_for :course_title_translations do |f| %>
|
<%= f.fields_for :course_title_translations do |f| %>
|
||||||
<%= f.text_field locale, class: "input-block-level other_course_title #{locale}", placeholder: t("personal_selected_course.course_title"), value: (@selected_course.course_title_translations[locale] rescue nil) %>
|
<%= f.text_field locale, class: "input-block-level other_course_title #{locale}", placeholder: t("personal_selected_course.course_title"), value: (@selected_course.course_title_translations[locale] rescue nil) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Reference in New Issue