OSDN Git Service

e1ae5ad9c78911d25f98c6c5e2a89d0c8f7b7e58
[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.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 -%>">
9       </div>
10     <% end %>
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 -%>
17           </div>
18         <% end %>
19       </div>
20     <% end %>
21   <% end %>
22 </div>
23 <span>
24 Comic:<%= @panel.comic_id %>
25 </span>
26 <span>
27 resource_picture:<%= @panel.resource_picture_id %>
28 </span>
29 <span>
30 Width:<%= @panel.width %>
31 </span>
32 <span>
33 Height:<%= @panel.height %>
34 </span>
35 <%= form_for(@panel) do |f| %>
36     <%= f.submit 'move to' %>
37      <%= f.number_field :t %>
38 <% end %>
39 <%= button_to 'Destroy', @panel, confirm: 'Are you sure?', method: :delete %>
40