Move templates to components
This commit is contained in:
parent
4fb1e200f1
commit
cd1e5887c5
12 changed files with 15 additions and 14 deletions
15
lib/nulla_web/components/templates/note/show.html.heex
Normal file
15
lib/nulla_web/components/templates/note/show.html.heex
Normal file
|
@ -0,0 +1,15 @@
|
|||
<.header>
|
||||
Note {@note.id}
|
||||
<:subtitle>This is a note record from your database.</:subtitle>
|
||||
<:actions>
|
||||
<.link href={~p"/notes/#{@note}/edit"}>
|
||||
<.button>Edit note</.button>
|
||||
</.link>
|
||||
</:actions>
|
||||
</.header>
|
||||
|
||||
<.list>
|
||||
<:item title="Content">{@note.content}</:item>
|
||||
</.list>
|
||||
|
||||
<.back navigate={~p"/notes"}>Back to notes</.back>
|
Loading…
Add table
Add a link
Reference in a new issue