teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

コード追記しました

2020/06/16 05:30

投稿

akikko
akikko

スコア32

title CHANGED
File without changes
body CHANGED
@@ -18,10 +18,16 @@
18
18
  ### 該当のソースコード
19
19
 
20
20
  ```ここに言語名を入力
21
+ <%= form_with url: '/events/:id/reports', local: true, method: :post, model:@report do |f| %>
21
- <div class="CheckBox" style="text-align: right;">
22
+ <div class="CheckBox" style="text-align: right;">
22
-  <%= f.check_box :completed, {}, :as => :boolean, unchecked:false, required: true %>
23
+   <%= f.check_box :completed, {}, :as => :boolean, unchecked:false, required: true %>
23
-  <%= f.label :completed, "完了報告の注意を確認" %>
24
+   <%= f.label :completed, "注意を確認" %>
24
- </div>
25
+ </div>
26
+
27
+ <div class="event_new_submit">
28
+ <%= f.submit '投稿する', style: 'margin-right:0px;', data: { disable_with: '保存中...' } %>
29
+ </div>
30
+ <% end %>
25
31
 
26
32
  ```
27
33