OSDN Git Service

import all source code
[pettanr/pettanr.git] / app / views / panels / show.html.erb
diff --git a/app/views/panels/show.html.erb b/app/views/panels/show.html.erb
new file mode 100644 (file)
index 0000000..df3247a
--- /dev/null
@@ -0,0 +1,15 @@
+  <% if @panel.errors.any? %>
+    <div id="error_explanation">
+      <h2><%= pluralize(@panel.errors.count, "error") %> prohibited this panel from being saved:</h2>
+
+      <ul>
+      <% @panel.errors.full_messages.each do |msg| %>
+        <li><%= msg %></li>
+      <% end %>
+      </ul>
+    </div>
+  <% end %>
+<p id="notice"><%= notice %></p>
+<%= render 'standard' %>
+
+<%= link_to 'Back', panels_path %>