View Source FranklinWeb.Admin.Articles.ArticleForm (Franklin v0.1.0)

Defines the structure of the article editor form.

Link to this section Summary

Link to this section Types

@type t() :: %FranklinWeb.Admin.Articles.ArticleForm{
  body: String.t(),
  id: Ecto.UUID.t(),
  published_at: DateTime.t(),
  slug: String.t(),
  slug_autogenerate: boolean(),
  title: String.t()
}

Link to this section Functions

@spec changeset(
  %FranklinWeb.Admin.Articles.ArticleForm{
    body: term(),
    id: term(),
    published_at: term(),
    slug: term(),
    slug_autogenerate: term(),
    title: term()
  },
  map()
) :: Ecto.Changeset.t()
@spec new(Franklin.Articles.Article.t()) :: %FranklinWeb.Admin.Articles.ArticleForm{
  body: term(),
  id: term(),
  published_at: term(),
  slug: term(),
  slug_autogenerate: term(),
  title: term()
}