Move templates to components
This commit is contained in:
parent
4fb1e200f1
commit
cd1e5887c5
12 changed files with 15 additions and 14 deletions
|
@ -1,7 +1,7 @@
|
|||
defmodule NullaWeb.UserHTML do
|
||||
use NullaWeb, :html
|
||||
|
||||
embed_templates "user_html/*"
|
||||
embed_templates "templates/user/*"
|
||||
|
||||
@doc """
|
||||
Renders a user form.
|
||||
|
@ -84,3 +84,17 @@ defmodule NullaWeb.UserHTML do
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
defmodule NullaWeb.NoteHTML do
|
||||
use NullaWeb, :html
|
||||
|
||||
embed_templates "templates/note/*"
|
||||
|
||||
@doc """
|
||||
Renders a note form.
|
||||
"""
|
||||
attr :changeset, Ecto.Changeset, required: true
|
||||
attr :action, :string, required: true
|
||||
|
||||
def note_form(assigns)
|
||||
end
|
|
@ -1,13 +0,0 @@
|
|||
defmodule NullaWeb.NoteHTML do
|
||||
use NullaWeb, :html
|
||||
|
||||
embed_templates "note_html/*"
|
||||
|
||||
@doc """
|
||||
Renders a note form.
|
||||
"""
|
||||
attr :changeset, Ecto.Changeset, required: true
|
||||
attr :action, :string, required: true
|
||||
|
||||
def note_form(assigns)
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue