2022-11-26 21:26:21 -05:00
|
|
|
<div class="h-full flex flex-col justify-start items-stretch space-y-4">
|
|
|
|
<.form
|
|
|
|
:let={f}
|
|
|
|
for={@changeset}
|
|
|
|
id="step-form"
|
|
|
|
phx-target={@myself}
|
|
|
|
phx-change="validate"
|
|
|
|
phx-submit="save"
|
2023-11-04 22:40:56 -04:00
|
|
|
phx-hook="CtrlEnter"
|
2022-11-26 21:26:21 -05:00
|
|
|
class="flex flex-col justify-start items-stretch space-y-4"
|
|
|
|
>
|
|
|
|
<%= text_input(f, :title,
|
2023-11-04 21:54:40 -04:00
|
|
|
aria_label: gettext("title"),
|
2024-02-23 22:31:15 -05:00
|
|
|
class: "input input-primary",
|
|
|
|
phx_debounce: 300,
|
|
|
|
phx_hook: "SanitizeTitles",
|
|
|
|
placeholder: gettext("title")
|
2022-11-26 21:26:21 -05:00
|
|
|
) %>
|
|
|
|
<%= error_tag(f, :title) %>
|
|
|
|
|
|
|
|
<%= textarea(f, :content,
|
|
|
|
id: "step-form-content",
|
|
|
|
class: "input input-primary h-64 min-h-64",
|
|
|
|
phx_update: "ignore",
|
2023-11-04 23:27:00 -04:00
|
|
|
placeholder:
|
|
|
|
gettext(
|
|
|
|
"use [[[note-slug]]] to link to a note or use [[context-slug]] to link to a context or [pipeline-slug] to link to a pipeline"
|
|
|
|
),
|
|
|
|
aria_label:
|
|
|
|
gettext(
|
|
|
|
"use [[[note-slug]]] to link to a note or use [[context-slug]] to link to a context or [pipeline-slug] to link to a pipeline"
|
|
|
|
),
|
2023-11-04 21:54:40 -04:00
|
|
|
phx_debounce: 300
|
2022-11-26 21:26:21 -05:00
|
|
|
) %>
|
|
|
|
<%= error_tag(f, :content) %>
|
|
|
|
|
|
|
|
<div class="flex justify-center items-stretch space-x-4">
|
|
|
|
<%= submit(dgettext("actions", "save"),
|
|
|
|
phx_disable_with: gettext("saving..."),
|
|
|
|
class: "mx-auto btn btn-primary"
|
|
|
|
) %>
|
|
|
|
</div>
|
|
|
|
</.form>
|
|
|
|
</div>
|