aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/categories/new.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/categories/new.html.erb')
-rw-r--r--app/views/categories/new.html.erb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/categories/new.html.erb b/app/views/categories/new.html.erb
new file mode 100644
index 0000000..fae8770
--- /dev/null
+++ b/app/views/categories/new.html.erb
@@ -0,0 +1,7 @@
+<div class="mx-auto md:w-2/3 w-full">
+ <h1 class="font-bold text-4xl">New category</h1>
+
+ <%= render "form", category: @category %>
+
+ <%= link_to "Back to categories", categories_path, class: "ml-2 rounded-lg py-3 px-5 bg-gray-100 inline-block font-medium" %>
+</div>