set content to textarea and remove from index pages

This commit is contained in:
Inhji 2023-03-05 23:51:08 +01:00
parent 127757b12a
commit fa866cc10e
4 changed files with 2 additions and 4 deletions

View File

@ -3,7 +3,7 @@
Oops, something went wrong! Please check the errors below.
</.error>
<.input field={f[:name]} type="text" label="Name" />
<.input field={f[:content]} type="text" label="Content" />
<.input field={f[:content]} type="textarea" label="Content" />
<.input
field={f[:visibility]}
type="select"

View File

@ -9,7 +9,6 @@
<.table id="channels" rows={@channels} row_click={&JS.navigate(~p"/channels/#{&1}")}>
<:col :let={channel} label="Name"><%= channel.name %></:col>
<:col :let={channel} label="Content"><%= channel.content %></:col>
<:col :let={channel} label="Visibility"><%= channel.visibility %></:col>
<:col :let={channel} label="Slug"><%= channel.slug %></:col>
<:action :let={channel}>

View File

@ -9,7 +9,6 @@
<.table id="notes" rows={@notes} row_click={&JS.navigate(~p"/notes/#{&1}")}>
<:col :let={note} label="Name"><%= note.name %></:col>
<:col :let={note} label="Content"><%= note.content %></:col>
<:col :let={note} label="Slug"><%= note.slug %></:col>
<:col :let={note} label="Published at"><%= note.published_at %></:col>
<:col :let={note} label="Kind"><%= note.kind %></:col>

View File

@ -3,7 +3,7 @@
Oops, something went wrong! Please check the errors below.
</.error>
<.input field={f[:name]} type="text" label="Name" />
<.input field={f[:content]} type="text" label="Content" />
<.input field={f[:content]} type="textarea" label="Content" />
<.input field={f[:slug]} type="text" label="Slug" />
<.input field={f[:published_at]} type="datetime-local" label="Published at" />
<.input field={f[:kind]} type="text" label="Kind" />