Files
fetsite/app/views/documents/edit.html.erb
Andreas Stephanides bac4c5f924 document toolbar sticky
2015-05-13 11:21:42 +02:00

19 lines
803 B
Plaintext
Executable File

<div style="background:white; border: thin #ccc solid; padding: 15px;-webkit-box-shadow: 10px 10px 10px 0px rgba(0,0,0,0.5); -moz-box-shadow: 10px 10px 10px 0px rgba(0,0,0,0.5); box-shadow: 10px 10px 10px 0px rgba(0,0,0,0.5);">
<div id="toolBar" style="z-index:100"></div>
<h1 class="editable_simple" data-target="#document_name"><%= @document.name %></h1>
<div class="editable" data-target="#document_text">
<%= raw(@document.text) %>
</div>
</div>
<%= semantic_form_for @document, :html=>{:class=>""} do |f| %>
<%= f.input :name , :as=>:hidden %>
<%= f.input :text, :as=>:hidden %>
<%= f.action :submit, :as => :input_ %>
<% end %>
<%= tinymce :inline_div %>
<%= tinymce :inline_simple %>
<%= link_to 'Show', @document %>
<script>
$(function(){$('#toolBar').stick_in_parent();})</script>