<% @i = 0 %> <%=form_for @file_to_show ,:url=>{:controller=>"patchfiles" ,:action=>"edit"} do |file|%> <%= file.fields_for :file_show do |filefield|%> <% @file_to_show.file_show.each do |show| %> <%if show[1] == 1%> <%=filefield.check_box "file_show"+@i.to_s,{:checked=>true,:id=>"checkbox"+@i.to_s,:style=>"float:left;"}%> <%else%> <%=filefield.check_box "file_show"+@i.to_s,{:checked=>false,:id=>"checkbox"+@i.to_s,:style=>"float:left;"}%> <%end%> <% @i = @i+1 %> <%=show[0]%>
<%end%> <%end%> <%=file.submit "#{t(:updatefont)}"%> <%end%>
  • CKEDITOR現有字形 <% @ckicktosee_str = (I18n.locale.to_s == "en") ? "click me to see all font which CKEDITOR have now" : "點擊我來查看編輯器所有目前擁有的字形" %> <%= @ckicktosee_str %>