Used Turbo Frames/Streams for adding/deleting tasks without refresh entire browser
This commit is contained in:
13
app/views/tasks/_form.html.erb
Normal file
13
app/views/tasks/_form.html.erb
Normal file
@@ -0,0 +1,13 @@
|
||||
<%= form_with model: [project, task], local: false do |f| %>
|
||||
<p>
|
||||
<%= f.label :title %><br>
|
||||
<%= f.text_field :title %>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<%= f.label :status %><br>
|
||||
<%= f.select :status, Task.statuses.keys %>
|
||||
</p>
|
||||
|
||||
<%= f.submit "Create Task" %>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user