OSDN Git Service

t#31566:add form sb
[pettanr/pettanr.git] / app / views / speech_balloons / _form.html.erb
diff --git a/app/views/speech_balloons/_form.html.erb b/app/views/speech_balloons/_form.html.erb
new file mode 100644 (file)
index 0000000..8f128f9
--- /dev/null
@@ -0,0 +1,21 @@
+<%= form_for(@speech_balloon) do |f| %>
+  <%= render 'system/error_explanation', :obj => @speech_balloon %>
+
+  <div class="field">
+    <%= f.label :z %><br />
+    <%= f.number_field :z %>
+  </div>
+  <div class="field">
+    <%= f.label :t %><br />
+    <%= f.number_field :t %>
+  </div>
+  
+<%= fields_for(:balloon) do |balloon| %>
+<% end %>
+
+  <%= f.hidden_field :panel_id %>
+
+  <div class="actions">
+    <%= f.submit %>
+  </div>
+<% end %>