Files
PMS/app/views/tasks/edit.html.erb
2026-01-28 09:53:14 +06:30

16 lines
408 B
Plaintext

<h1>Edit Task</h1>
<% if flash[:notice] %>
<div class="notice"><%= flash[:notice] %></div>
<% end %>
<div class="edit-task">
<%= form_with(model: @task, local: true, class: "task-form edit-form") do |form| %>
<%= render 'form', task: @task, form: form %>
<% end %>
</div>
<div class="back-link">
<%= link_to '← Back to Task', @task %> |
<%= link_to '← Back to List', tasks_path %>
</div>