IMP: task crud (#6)

This commit is contained in:
Matthew Ryan Dillon 2020-06-21 16:09:24 -07:00 committed by GitHub
parent 2b8a6a1927
commit 673d096f53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 260 additions and 33 deletions

View file

@ -18,14 +18,14 @@ defmodule PlannerWeb.LandingLive do
def render(assigns) do
~L"""
<div class="box">
<%= f = form_for(@new_task_changeset, "#", [phx_submit: :save_new_task]) %>
<div class="field">
<div class="control">
<%= text_input f, :value, placeholder: "add new task", class: "input" %>
<%= f = form_for(@new_task_changeset, "#", [phx_submit: :save_new_task]) %>
<div class="field">
<div class="control">
<%= text_input f, :value, placeholder: "add new task", class: "input" %>
</div>
<%= error_tag f, :value %>
</div>
<%= error_tag f, :value %>
</div>
</form>
</form>
</div>
"""
end