OSDN Git Service

today's work. songs new, create, edit
[praisedb/praisedb.git] / app / views / songs / edit.html.erb
1 <% content_for :head do -%>
2   <title>Praise DATABASE</title>
3   <%= javascript_include_tag "prototype" %>
4   <%= javascript_include_tag "roman" %>
5 <% end -%>
6 <h1>歌詞の編集 (edit this song)</h1>
7
8 <% form_for @song, song_path(@song), :method => :put do |f| -%>
9   <%= render :partial => 'form', :locals => {:f => f} %>
10   <%= f.text_area :kana, :style => "display:none" %>
11 <% end -%>
12
13 <% form_for @song, song_path, :method => :delete do |f| -%> 
14   <p>このデータを<%= f.submit "削除する" %></p>
15 <% end -%>
16 [<%= link_to "表示", song_path(@song) %>]
17 [<%= link_to "印刷用画面", print_song_path(@song) %>]
18 [<%= link_to "トップに戻る", song_path %>]
19 [<%= link_to_function "ローマ字", "toRoman()" %>]
20 [<%= link_to_function "リセット", "reset()" %>]
21 <hr />
22