From 075665c588989ed0decdfb20d83f32b33eed4639 Mon Sep 17 00:00:00 2001 From: Marius Peter Date: Fri, 29 Aug 2025 14:22:37 +0200 Subject: Properly implement bed and raft management logic. --- app/views/rafts/_form.html.erb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 app/views/rafts/_form.html.erb (limited to 'app/views/rafts/_form.html.erb') diff --git a/app/views/rafts/_form.html.erb b/app/views/rafts/_form.html.erb new file mode 100644 index 0000000..7b5d382 --- /dev/null +++ b/app/views/rafts/_form.html.erb @@ -0,0 +1,23 @@ +<%= form_with(model: raft) do |form| %> + <% if raft.errors.any? %> +
+

<%= pluralize(bed.errors.count, "error") %> prohibited this raft from being saved:

+ + +
+ <% end %> + +
+ + <%= form.collection_select :crop_id, @crops, :id, :name, + { include_blank: "Unassigned" }, { class: "form-select" } %> +
+ +
+ <%= form.submit class: "btn btn-primary" %> +
+<% end %> -- cgit v1.2.3