4 <div class="panel" style="width:<%= @panel.width %>px;height:<%= @panel.height %>px;overflow:hidden; border:solid black <%= @panel.border %>px; background:white;">
5 <% @panel.each_element do |elm| %>
6 <% if elm.kind_of?(PanelPicture) %>
7 <div id="vPicture<%= elm.id -%>" class="panel_picture" style="position:relative; top:<%= elm.y -%>px; left:<%= elm.x -%>px; z-index:<%= elm.z -%>; ">
8 <img style=" position:absolute; width:<%= elm.width -%>px; height:<%= elm.height -%>px; " src="<%= elm.url -%>">
11 <% if elm.kind_of?(Balloon) %>
12 <div id="vballoon<%= elm.id -%>" class="balloon" style="position:relative; top:<%= elm.y -%>px; left:<%= elm.x -%>px; z-index:<%= elm.z -%>; ">
13 <img style=" position:absolute; width:<%= elm.width -%>px; height:<%= elm.height -%>px; " src="<%= elm.system_picture.url -%>">
14 <% elm.speeches.each do |speech| %>
15 <div style="position:relative; top:<%= speech.y -%>px; left:<%= speech.x -%>px;width:<%= speech.width -%>px; height:<%= speech.height -%>px; top:1px; left:1px; z-index:1; ">
16 <%= h speech.content -%>
24 Comic:<%= @panel.comic_id %>
27 resource_picture:<%= @panel.resource_picture_id %>
30 Width:<%= @panel.width %>
33 Height:<%= @panel.height %>
35 <%= form_for(@panel) do |f| %>
36 <%= f.submit 'move to' %>
37 <%= f.number_field :t %>
39 <%= button_to 'Destroy', @panel, confirm: 'Are you sure?', method: :delete %>