プラグインハンズオン サンプル » 履歴 » バージョン 2
Haru Iida, 2011/01/22 15:19
1 | 1 | Haru Iida | h1. プラグインハンズオン サンプル |
---|---|---|---|
2 | |||
3 | <pre> |
||
4 | |||
5 | <h2>テンプレートの作成</h2> |
||
6 | |||
7 | 2 | Haru Iida | create.html.erb のサンプル |
8 | 1 | Haru Iida | |
9 | <% labelled_tabular_form_for :issue_template, @issue_template, :action => 'update' do |f|%> |
||
10 | <p> |
||
11 | <%= f.text_field :title, :size => 50, :required => true %> |
||
12 | </p> |
||
13 | <p> |
||
14 | <%= f.text_field :note, :size => 80, :label => l(:issue_template_note) %> |
||
15 | </p> |
||
16 | <p><%= f.text_area :description, :rows => 8, :cols=>60, :accesskey => accesskey(:edit), :class => 'wiki-edit' ,:required => true %></p> |
||
17 | <%= submit_tag l(:button_apply) %> |
||
18 | <% end %> |
||
19 | </pre> |