Move templates to components

This commit is contained in:
Mirai Kumiko 2025-06-08 13:32:58 +02:00
parent 4fb1e200f1
commit cd1e5887c5
Signed by: miraikumiko
GPG key ID: 3F178B1B5E0CB278
12 changed files with 15 additions and 14 deletions

View file

@ -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

View file

@ -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