-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create view for new Group (or Category)
- Loading branch information
1 parent
7532d73
commit aae091b
Showing
1 changed file
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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%> |