<%=form_for @font_settings,{:class=>"form-horizontal",:url=>{:controller=>"patchfiles" ,:action=>"editfontfile",:font=>"#{params[:font]}"}} do |f|%> <%=f.text_field :title,{:value=>@font_settings.title,:id=>"fontname"}%>
<%=f.text_field :font_link,{:id=>"fonturl"}%>
<% if @font_settings.font_file_name != ""%> <%= @font_settings.font_file_name %>
edit
delete
<%=f.text_field :is_delete_font_file, {:id=>"hidden-file",:type => "hidden",:value=>@font_settings.is_delete_font_file} %> <%=f.file_field :font_file,{:id=>"fontfile",:value=>@font_settings.font_file_name,:style=>"display:none;"}%> <% else %> <%=f.file_field :font_file,{:id=>"fontfile",:value=>@font_settings.font_file_name}%> <% end %>
<%=f.submit "#{t(:updatefont)}"%> <%end%>