orbit-4-2/app/views/admin/designs/_tab_form.html.erb

8 lines
447 B
Plaintext
Raw Permalink Normal View History

<%= form_for :file, :url => update_file_admin_design_path(:type => type, :object_id => object.id), :remote => true, :method => :post do |f| %>
<div id='post-body-content'>
<%= f.text_area :content, :class => 'code middle', :value => object.file.read.force_encoding('UTF-8'), :name=>"html_code"%>
</div>
<div class="form-actions form-fixed pagination-right">
<button class="btn btn-primary"><%= t(:save) %></button>
</div>
<% end %>