3 <%= render :partial => 'navi',
4 :locals => {:item => @section}
12 <%= link_to(h('編集へ'), :action => :edit, :id => @section.id) %>
16 <%= simple_format(@section.disp_source) %>
19 <div class="japanese">
20 <%= srb(@section.disp_japanese) %>
24 <%= simple_format(@section.disp_myself) %>
28 <%= simple_format(ennote(enlink(@section.disp_note))) %>
32 <%= h(@section.etc) %>
35 <div class="thema-list">
36 <% @sec_themas.each do |st| -%>
38 <%= link_to(h(st.thema.caption),
39 :controller => '/thema', :action => :show, :id => st.thema.id
43 <% form_tag :controller => '/section', :action => :link_thema, :id => @section.id do -%>
44 <%= select 'thema_section', 'thema_id', @themas %>
45 <%= submit_tag "この章と関連付ける" %>
47 <% form_tag :controller => '/thema', :action => 'create', :id => @section.id do -%>
48 <%= text_field 'thema', 'caption', :size => 40 %>
49 <%= submit_tag "テーマを新規登録" %>
54 <% @hint_letters.each do |hl| -%>
56 <%= link_to(h(hl.letter.letter),
57 :controller => '/letter', :action => :show, :id => hl.letter.id
59 (<%= h(hl.letter.yomi) %>)
61 <div class="hint-letter">
62 <%= simple_format(enlink(hl.letter.disp_detail)) %>
65 <% @hint_words.each do |hw| -%>
67 <%= link_to(h(hw.word.letter),
68 :controller => '/words', :action => :show, :id => hw.word.id
70 (<%= h(hw.word.yomi) %>)
72 <div class="hint-word">
73 <%= simple_format(enlink(hw.word.disp_detail)) %>
78 <%= link_to(h('編集へ'), :action => :edit, :id => @section.id) %>
81 <%= render :partial => '/hateda/section_show' %>
85 <%= h(@section.trans) %>
89 <%= h(@section.english) %>
95 <% form_tag :controller => '/words', :action => 'create' do -%>
96 <%= text_field 'word', 'letter', :size => 8 %>
97 <%= submit_tag "登録" %>
101 <%= h(@word_count) %>種/
104 <% form_tag :controller => '/section', :action => :word_checks, :id => @section.id do -%>
105 <% if @sec_words.empty? -%>
107 <%= submit_tag "更新" %>
108 <div class="word-list">
109 <% @sec_words.each do |sw| -%>
112 <%= link_to(h(sw.word.letter),
113 {:controller => '/words', :action => :show, :id => sw.word.id},
114 {:class => (sw.chk == 0 ? 'unchecked' : 'checked')}
117 <span><%= check_box_tag(sw.id, '1', sw.bchk) %></span>
121 <%= submit_tag "更新" %>
128 <%= h(@letter_count) %>種/
129 <%= h(@letter_sum) %>語
131 <% form_tag :controller => '/section', :action => :letter_checks, :id => @section.id do -%>
132 <% if @sec_letters.empty? -%>
134 <%= submit_tag "更新" %>
135 <div class="letter-list">
136 <% @sec_letters.each do |sl| -%>
139 <%= link_to(h(sl.letter.letter),
140 {:controller => '/letter', :action => :show, :id => sl.letter.id},
141 {:class => (sl.chk == 0 ? 'unchecked' : 'checked')}
144 <span><%= check_box_tag(sl.id, '1', sl.bchk) %></span>
148 <%= submit_tag "更新" %>
155 <%= render :partial => 'navi',
156 :locals => {:item => @section}