Skip to content

Commit

Permalink
Create view for new Group (or Category)
Browse files Browse the repository at this point in the history
  • Loading branch information
Diegogagan2587 committed Oct 26, 2023
1 parent 7532d73 commit aae091b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion app/views/groups/new.html.erb
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
Placeholder for the new group form.
Placeholder for the new group form.
<%= form_with( model:@group, url: { action:"create" }, html: { class: 'new-group' } ) do |f|%>
<div>
<%= f.label :name %>
<%= f.text_field :name %>
</div>
<div>
<%= f.label :icon %>
<%= f.text_field :icon%>
</div>
<%= link_to '❮', groups_path, class: 'btn btn-danger'%>
<%= f.submit "Save", calss:'btn' %>
<%end%>

0 comments on commit aae091b

Please sign in to comment.