Todo App

<%= text_input :task, :title, placeholder: "What do you want to get done?" %> <%= submit "Add", phx_disable_with: "Adding..." %>

Existing tasks

    <%= for task <- @all_tasks do %>
    <%= checkbox(:task, :is_completed, phx_click: "toggle_completed", phx_value_id: task.id,value: task.is_completed) %> <%= task.title %>
    <% end %>