render NitroKit::FieldGroup.new(html: { id: "gallery-field-hostile-text-group" }) do
render NitroKit::Field.new(
nil,
:email,
as: :email,
id: "gallery-field-hostile-email",
name: "hostile[email]",
value: Gallery::Hostile::LONG_EMAIL,
label: Gallery::Hostile::LONG_LABEL,
description: Gallery::Hostile::LONG_PARAGRAPH,
errors: [ Gallery::Hostile::LONG_ERROR ],
required: true,
html: { id: "gallery-field-hostile-email-wrapper" }
)
render NitroKit::Field.new(
nil,
:slug,
id: "gallery-field-hostile-locked",
name: "hostile[slug]",
value: Gallery::Hostile::LONG_WORD,
label: Gallery::Hostile::LONG_WORD,
description: Gallery::Hostile::LONG_SENTENCE,
errors: [ Gallery::Hostile::LONG_ERROR ],
required: true,
disabled: true,
html: { id: "gallery-field-hostile-locked-wrapper" }
)
render NitroKit::Field.new(
nil,
:webhook,
as: :url,
id: "gallery-field-hostile-url",
name: "hostile[webhook]",
value: Gallery::Hostile::LONG_URL,
label: Gallery::Hostile::RTL_NAME,
description: Gallery::Hostile::CJK_NAME,
html: { id: "gallery-field-hostile-url-wrapper" }
)
render NitroKit::Field.new(
nil,
:notes,
as: :textarea,
id: "gallery-field-hostile-textarea",
name: "hostile[notes]",
value: Gallery::Hostile::LONG_PARAGRAPH,
label: Gallery::Hostile::EMOJI_NAME,
description: Gallery::Hostile::LONG_URL,
errors: [ Gallery::Hostile::LONG_ERROR, Gallery::Hostile::LONG_WORD ],
rows: 3,
html: { id: "gallery-field-hostile-textarea-wrapper" }
)
end