diff --git a/app/views/sakes/_form.html.erb b/app/views/sakes/_form.html.erb index c60c829b..0544f5fb 100644 --- a/app/views/sakes/_form.html.erb +++ b/app/views/sakes/_form.html.erb @@ -7,5 +7,6 @@ <%= render(partial: "form_abstract", locals: { sake:, form: }) %> <%= render(partial: "form_detail", locals: { sake:, form: }) %> <%= render(partial: "form_review", locals: { sake:, form: }) %> + <%= render(partial: "form_note", locals: { sake:, form: }) %> <% end %> diff --git a/app/views/sakes/_form_note.html.erb b/app/views/sakes/_form_note.html.erb new file mode 100644 index 00000000..4214bb8f --- /dev/null +++ b/app/views/sakes/_form_note.html.erb @@ -0,0 +1,23 @@ +
+

+ +

+
+
+
+
+
+
+ <%= form.text_area(:note, class: "form-control", data: { testid: "sake_note" }) %> +
+
+
+
+
+
+
diff --git a/app/views/sakes/_form_review.html.erb b/app/views/sakes/_form_review.html.erb index 6d83cbab..8baccc2c 100644 --- a/app/views/sakes/_form_review.html.erb +++ b/app/views/sakes/_form_review.html.erb @@ -96,14 +96,6 @@ testid: "sake_rating", }) %> -
-
-
- <%= form.label(:note, class: "form-label") %> - <%= form.text_area(:note, class: "form-control", data: { testid: "sake_note" }) %> -
-
-
diff --git a/config/locales/views/sake.ja.yml b/config/locales/views/sake.ja.yml index 1a96a04c..f590eb44 100644 --- a/config/locales/views/sake.ja.yml +++ b/config/locales/views/sake.ja.yml @@ -63,6 +63,8 @@ ja: measurement: :sakes.show_detail.measurement form_review: review: :sakes.show_review.review + form_note: + note: :sakes.show_note.note float_button: edit: :sakes.sake.edit copy: 複製