From 6b1a1834ad1715145f047790c8391b8a5558bece Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 20 Dec 2023 20:34:25 +0000 Subject: Created new Operation model and fixed Event associations with it --- app/views/operations/_form.html.erb | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 app/views/operations/_form.html.erb (limited to 'app/views/operations/_form.html.erb') diff --git a/app/views/operations/_form.html.erb b/app/views/operations/_form.html.erb new file mode 100644 index 0000000..adadad8 --- /dev/null +++ b/app/views/operations/_form.html.erb @@ -0,0 +1,22 @@ +<%= form_with(model: operation) do |form| %> + <% if operation.errors.any? %> +
+

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

+ + +
+ <% end %> + +
+ <%= form.label :name, style: "display: block" %> + <%= form.text_field :name %> +
+ +
+ <%= form.submit %> +
+<% end %> -- cgit v1.2.3