devel #123
3 changed files with 6 additions and 15 deletions
|
@ -166,12 +166,7 @@ defmodule ChiyaWeb.PublicComponents do
|
|||
|
||||
def comment_form(assigns) do
|
||||
~H"""
|
||||
<.simple_form
|
||||
:let={f}
|
||||
for={@changeset}
|
||||
action={~p"/note/#{assigns.note.slug}/comment"}
|
||||
class="bg-theme-background -m-3"
|
||||
>
|
||||
<.simple_form :let={f} for={@changeset} action="" class="bg-theme-background -m-3">
|
||||
<.error :if={@changeset.action}>
|
||||
Oops, something went wrong! Please check the errors below.
|
||||
</.error>
|
||||
|
|
|
@ -14,16 +14,12 @@
|
|||
<.input field={f[:user_agent]} type="text" label="User agent" />
|
||||
<.input field={f[:custom_css]} type="textarea" label="Custom css" class="font-mono" />
|
||||
<.input field={f[:custom_html]} type="textarea" label="Custom html" class="font-mono" />
|
||||
<.input
|
||||
field={f[:home_channel_id]}
|
||||
type="select"
|
||||
label="Home Channel"
|
||||
options={@channels}
|
||||
/>
|
||||
<.input field={f[:home_channel_id]} type="select" label="Home Channel" options={@channels} />
|
||||
<.input
|
||||
field={f[:micropub_channel_id]}
|
||||
type="select"
|
||||
label="Micropub Channel" options={@channels}
|
||||
label="Micropub Channel"
|
||||
options={@channels}
|
||||
/>
|
||||
<.input
|
||||
field={f[:default_channel_id]}
|
||||
|
|
Loading…
Reference in a new issue