OSDN Git Service

t#32046:
[pettanr/pettanr.git] / app / views / sheet_panels / _play_header.html.erb
diff --git a/app/views/sheet_panels/_play_header.html.erb b/app/views/sheet_panels/_play_header.html.erb
new file mode 100644 (file)
index 0000000..09251ee
--- /dev/null
@@ -0,0 +1,21 @@
+<% if sheet.own? author -%>
+  <%= form_for(sheet) do |f| %>
+    <div class="field">
+      <%= f.label :caption %><br />
+      <%= f.text_field :caption %>
+    </div>
+    <div class="field">
+      <%= f.label :visible %><br />
+      <%= f.collection_select :visible, t_select_items(MagicNumber['sheet_visible_items']), :last, :first, :html => {:selected => @sheet.visible} %>
+    </div>
+    <div class="actions">
+      <%= f.submit %>
+    </div>
+  <% end %>
+<% else %>
+<% end %>
+
+<div>
+  <%= link_to author_icon(:object => sheet.author, :size => 25), author_path(sheet.author) %>
+  <%= link_to h(truncate(sheet.author.name, :length => 12)), author_path(sheet.author) %>
+</div>