OSDN Git Service

t#32046:
[pettanr/pettanr.git] / app / views / sheet_panels / _play_header.html.erb
1 <% if sheet.own? author -%>
2   <%= form_for(sheet) do |f| %>
3     <div class="field">
4       <%= f.label :caption %><br />
5       <%= f.text_field :caption %>
6     </div>
7     <div class="field">
8       <%= f.label :visible %><br />
9       <%= f.collection_select :visible, t_select_items(MagicNumber['sheet_visible_items']), :last, :first, :html => {:selected => @sheet.visible} %>
10     </div>
11     <div class="actions">
12       <%= f.submit %>
13     </div>
14   <% end %>
15 <% else %>
16 <% end %>
17
18 <div>
19   <%= link_to author_icon(:object => sheet.author, :size => 25), author_path(sheet.author) %>
20   <%= link_to h(truncate(sheet.author.name, :length => 12)), author_path(sheet.author) %>
21 </div>