OSDN Git Service

0cf3c243f53ae95855d93a575d7dd8d60554df0c
[pettanr/pettanr.git] / app / views / panels / _standard.html.erb
1 <span>
2 t:<%= @panel.t %>
3 </span>
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.panel_pictures.each do |panel_picture| %>
6     <div id="vPicture<%= panel_picture.id -%>" class="panel_picture" style="position:relative;  top:<%= panel_picture.y -%>px; left:<%= panel_picture.x -%>px; z-index:<%= panel_picture.z -%>; ">
7       <img style=" position:absolute; width:<%= panel_picture.width -%>px; height:<%= panel_picture.height -%>px; " src="<%= panel_picture.url -%>">
8     </div>
9   <% end %>
10   <% @panel.balloons.each do |balloon| %>
11     <div id="vballoon<%= balloon.id -%>" class="balloon" style="position:relative;  top:<%= balloon.y -%>px; left:<%= balloon.x -%>px; z-index:<%= balloon.z -%>; ">
12       <img style=" position:absolute; width:<%= balloon.width -%>px; height:<%= balloon.height -%>px; " src="<%= balloon.system_picture.url -%>">
13       <% balloon.speaches.each do |speach| %>
14         <div style="position:relative; top:<%= speach.y -%>px; left:<%= speach.x -%>px;width:<%= speach.width -%>px; height:<%= speach.height -%>px; top:1px; left:1px; z-index:1; ">
15           <%= h speach.content -%>
16         </div>
17       <% end %>
18     </div>
19   <% end %>
20 </div>
21 <span>
22 Comic:<%= @panel.comic_id %>
23 </span>
24 <span>
25 resource_picture:<%= @panel.resource_picture_id %>
26 </span>
27 <span>
28 Width:<%= @panel.width %>
29 </span>
30 <span>
31 Height:<%= @panel.height %>
32 </span>
33 <%= form_for(@panel) do |f| %>
34     <%= f.submit 'move to' %>
35      <%= f.number_field :t %>
36 <% end %>
37 <%= button_to 'Destroy', @panel, confirm: 'Are you sure?', method: :delete %>
38