OSDN Git Service

左ペインの表示を実装
[praisedb/praisedb.git] / app / views / songs / edit.html.erb
1 <% content_for :head do -%>
2   <title>Praise DATABASE</title>
3   <%= javascript_include_tag :defaults %>
4   <%= javascript_include_tag "roman" %>
5 <% end -%>
6 <h1>歌詞の編集 (edit this song)</h1>
7
8 <% form_for @song do |f| -%>
9   <%= render :partial => 'form', :locals => {:f => f} %>
10 <% end -%>
11 <div id="song_kana" style="display:none;"><%=h @song.kana %></div>
12
13 <%= button_to "このデータを削除する", @song, :confirm => '本当に削除しますか?', :method => :delete %>
14 [<%= link_to "表示", @song %>]
15 [<%= link_to "印刷用画面", print_song_path(@song) %>]
16 [<%= link_to "トップに戻る", songs_path %>]
17 [<%= link_to_function "ローマ字", "toRoman()" %>]
18 [<%= link_to_function "リセット", "reset()" %>]
19
20 <hr />
21 <div id="song_preview" style="font-size:18pt; width:20em; border:solid gray 1px">
22 <%= format_words(@song.ruby) %>
23 </div>